Open drbeh opened 2 years ago
@gigony is there any update on this? thanks
@drbeh we would eventually need to support multi-band and other data types
Currently, if the image is not RAW/LZW/JPEG/JPEG2000-compressed tiled/multi-resolution RGB images, it delegates its processing to libtiff's TIFFRGBAImageGet()
method that creates a 4-channel RGBA array.
What would you suggest until we support single-channel image data? Maybe raising a warning message would be one we can do?
Thank you, @gigony! Raising an error would satisfy the purpose of this open issue. Currently, we don't have any need for single-channel images in digital pathology but it might be a good feature to have.
Thank you, @gigony! Raising an error would satisfy the purpose of this open issue. Currently, we don't have any need for single-channel images in digital pathology but it might be a good feature to have.
Now raising a warning message (by https://github.com/rapidsai/cucim/pull/293) and updated tag from bug
to feature request
.
Currently, we don't have any need for single-channel images in digital pathology but it might be a good feature to have.
One use case would be where another imaging modality is used, such as higher harmonic generation microscopy, from which we only want to fetch one channel, as the other channels might sometimes be undescriptive and might confuse deep learning models.
Another use case is when a mask's pixels intensity serve as labels. If high resolution masks are available, it might still be beneficial to read them with cucim.
Describe the bug When using cuCIM to load TIFF files that does not have color channel (a grayscale 2D image), no error is thrown and instead the values will be repeated to create an RGBA image, representing the grayscale image. This may cause confusion, like here: https://github.com/Project-MONAI/MONAI/issues/3858
Steps/Code to reproduce bug