You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HESlide and Slidedata only read in the top one image in .vdi file
I use the BioformatsReader in cellprofiler_core.readers.bioformats_reader to read the ets file, which contains three images as shown in QuPath. However, only the image with index 0 is read in.
The width and height is concordant with the full-resolution image. Does it indicate that the full resolution image is loaded?
However, it seems that only the label image is loaded. When I run tile = my_zeiss_zvi.extract_region((0,0), (1000,1000), level=3).squeeze()
It gave
It seems that only the top one image is loaded. Expected behavior
Can I specify the associated .ets file to process the full-resolution image in python?
Desktop (please complete the following information):
The image shape printed in the SlideData object is the shape of the largest image level.
It looks like your image has 23 levels, so I guess one of those is probably the full-resolution image.
You should be able to check the shapes of each level's image by looking at my_zeiss_zvi.slide.shape_list to help find the one that you are looking for.
Hope this helps!
But I am wondering whether it can read the full-resolution image since the .vsi file is of only 2.72MB. Should I specify the associated .ets file?
How to read the desired image layer or the desired shape? Since when I called my_zeiss_zvi.slide.generate_tiles(), it only reads the label image instead of the HE image.
How to handle large image file?
My .ets file is of 1.76GB and the .vsi file is of 2.72 MB. When I called my_zeiss_zvi.slide.get_thumbnail() or extract_region((0,0), my_zeiss_zvi.slide.get_image_shape()), the following error occurred.
We rely on bioformats to know how to handle that image format, including how to handle the data being split into multiple files. I think it should work but I haven't ever tried with that particular file format before so I don't know
You should be able to pass level argument to generate_tiles() to specify which level to use
Instead of trying to load the entire image into memory, use the tile generator and process the image at tile-level. If you really want to have the full-resolution image in memory, then use the tile generator to extract the tiles into numpy arrays and then stitch the numpy arrays together into the full array.
HESlide and Slidedata only read in the top one image in .vdi file
I use the
BioformatsReader
incellprofiler_core.readers.bioformats_reader
to read the ets file, which contains three images as shown in QuPath. However, only the image with index 0 is read in.To Reproduce
It gives
The width and height is concordant with the full-resolution image. Does it indicate that the full resolution image is loaded?
However, it seems that only the label image is loaded. When I run
tile = my_zeiss_zvi.extract_region((0,0), (1000,1000), level=3).squeeze()
It gave
It seems that only the top one image is loaded.
Expected behavior
Can I specify the associated .ets file to process the full-resolution image in python?
Desktop (please complete the following information):
Thank you very much!!!!! I have been struggled for quite a long time to read .ets and .vsi files in python. Looking forward to the help and advice!!!
The text was updated successfully, but these errors were encountered: