convert non-byte values to byte
Hi, I´m having problems with JAI and converting non-8bit images to byte type.
I have six-banded TIF images that could include double, 16bit, or negative values; and I would like to convert them to byte type just for displaying.
I have been looking at the DisplayDEM.java example in java.net; It looks great! but it only works with one or two banded images. For my 6band images prompts me "No ColorModel is supplied and the image ColorModel is null".
How could this code be changed to work with my images?
Thank you very much for your help, I can´t find anything!