Hi @cdgatenbee
Not sure if this is an error specific to me or not, but trying to use czi files with JPEG-XR compression with version (1.0.2). I followed #60 and tried different slide readers (bioformats and czijpegxr) and im getting this error:
==== Rigid registration
Detecting features : 0%| | 0/3 [00:00<?, ?image/s]
C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\valtils.py:22: UserWarning: 'NoneType' object has no attribute 'shape'
warnings.warn(warning_msg, warning_type)
Traceback (most recent call last):
File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\registration.py", line 4116, in register
rigid_registrar = self.rigid_register()
File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\registration.py", line 2981, in rigid_register
rigid_registrar = serial_rigid.register_images(self.processed_dir,
File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\serial_rigid.py", line 1536, in register_images
registrar.generate_img_obj_list(feature_detector, qt_emitter=qt_emitter)
File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\serial_rigid.py", line 511, in generate_img_obj_list
img_obj.kp_pos_xy, img_obj.desc = feature_detector.detect_and_compute(img)
File "C:\Users\Home\AppData\Local\Programs\Python\Python310\lib\site-packages\valis\feature_detectors.py", line 166, in detect_and_compute
if desc.shape[0] > MAX_FEATURES:
AttributeError: 'NoneType' object has no attribute 'shape'
I then thought id convert these files to ome.tiff using bfconvert (with the -noflat option) and i'm having the same error. Leaving the slide reader option blank yields the same result. This is the relevant code being used. I've again tried using different slide readers, and tried removing the crop.
registrar = registration.Valis(slide_src_dir, results_dir, img_list = img_list_path, crop="overlap")
rigid_registrar, non_rigid_registrar, error_df = registrar.register()
registrar.register_micro(max_non_rigid_registration_dim_px=2000)
registrar.warp_and_merge_slides(name_list_Stitched, channel_name_dict=channel_name_dict_defined, drop_duplicates=True, crop=True, compression="jp2k", Q=85)
I am using windows 11 with the natively installed programs rather than docker. I've used the ome.tiff files in previous versions of Valis (rc12)
Hi @cdgatenbee
Not sure if this is an error specific to me or not, but trying to use czi files with JPEG-XR compression with version (1.0.2). I followed #60 and tried different slide readers (bioformats and czijpegxr) and im getting this error:
I then thought id convert these files to ome.tiff using bfconvert (with the -noflat option) and i'm having the same error. Leaving the slide reader option blank yields the same result. This is the relevant code being used. I've again tried using different slide readers, and tried removing the crop.
I am using windows 11 with the natively installed programs rather than docker. I've used the ome.tiff files in previous versions of Valis (rc12)