Color image read as gray level
Posted: Tue Jan 26, 2016 9:24 am
Hi,
I wanted to read a simple color image using bio-format. To do so, I used this simple code:
But the ImagePlus generated contains a ByteProcessor that can only code a 8-bit image. I checked, and indeed there is only 1 channel. The BufferedImage generated from the ByteProcessor is logically a TYPE_BYTE_GRAY.
I tried to open the same image with JAI and ImageIO, and everything works fine.
What is wrong?
Thanks for your help.
I wanted to read a simple color image using bio-format. To do so, I used this simple code:
- Code: Select all
ImagePlus[] images = BF.openImagePlus("...") ;
But the ImagePlus generated contains a ByteProcessor that can only code a 8-bit image. I checked, and indeed there is only 1 channel. The BufferedImage generated from the ByteProcessor is logically a TYPE_BYTE_GRAY.
I tried to open the same image with JAI and ImageIO, and everything works fine.
What is wrong?
Thanks for your help.