Closed wanghan0501 closed 2 years ago
@wanghan0501 : that is expected behavior. raw2ometiff writes pyramid OME-TIFF by default, which stores resolutions as described here:
https://docs.openmicroscopy.org/ome-model/6.0.0/ome-tiff/specification.html#sub-resolutions
As far as I know, OpenSlide does not support OME-TIFF (pyramid or otherwise), and assumes that resolutions in TIFF files are stored as described here:
https://openslide.org/formats/generic-tiff/
which means it will only see the largest resolution in the pyramid OME-TIFF (even though a full pyramid is present). If you need to be able to work with the converted file in OpenSlide, you might try using raw2ometiff tmp 1M02.ome.tiff --progress --max_workers=16 --legacy
to see if that is any better.
Thanks for your reply!! I have tried raw2ometiff tmp 1M02.ome.tiff --progress --max_workers=16 --legacy
, and it doesn't work...
So, do you know how to access the raw data of *.ome.tiff
like Openslide? I want to access the pyramid-based tiff instead of only the largest resolution.
@wanghan0501 Several open-source libraries support multi-resolution OME-TIFF but it depends on which environment you are working in. For instance in Java, you will want to use Bio-Formats and in Python, tifffile or aicsimageio are probably the immediate library coming to mind.
To convert .mrxs to pramid .tiff, I run the following code at first:
Then, I run the next code:
However, when I use openslide open the converted tiff file, I get:
It means the converted tiff file only contains one resolution.. However, I want to get a pyramid-based tiff file. I don't know what wrong with me...