Hello
I have a tiff file with pixel values in one byte and a color table. When I read the file I can display the RGB value of any pixel but want I want is the exact value of the pixel. This is a classified image and I don’t really care about the color table which is arbitrary. The class of the pixel is given by the byte value. Thia is what I need to get. I understood that IndirectArrays
are used to do the class->RGB conversion, but I can’t figure out how to read the value without the colormap conversion.
For instance
julia> img[1,1]
RGB{N0f16}(0.67059, 0.42353, 0.15686)
So it seems to be 16bits pixels. But from the size of the image and the size of the file, I can clearly see that the pixels are coded with 1 byte only. Which make sense given that the image has about 16 classes.
Thanks for your help.