Closed JunMa11 closed 2 years ago
TIFF should be supported by imageio: https://imageio.readthedocs.io/en/stable/formats/index.html
You can try using the built in imageio loader: https://github.com/comic/evalutils/blob/73ba4ceae361557c70992245b16463159d6bfba0/evalutils/io.py#L136-L145
Note that these all load the image data into memory so it may not be what you want, depends on the size of your tiff files. You could create your own loader using tifffile, follow the examples in io.py
.
Description
I'm creating an evaluation docker for an image segmentation task. The ground truth data is
tiff
format. I found SimpleITK introduced new values after loading.outputs:
The above image is available here
How can I read images with
tifffile
inevaluation.py
?