Convert image to RGB based on a color ramp (attempt #2)
I am trying to change an Image that has a FloatDoubleColorModel that has one band (its a float 0.0 - 1.0) into a three band RGB. Please not that the range is 0.0 - 1.0 not 0.0 - 100.0
I would like to define a color ramp to accomplish this. For simplicity sake I am just trying to go from blue to yellow.
Rafael I have tried your approach (http://www.lac.inpe.br/JIPCookbook/2200-display-surrogate.jsp#imagedispl...) with no luck. I used the blue to yellow lut and the resulting image came back as all blue. I have verified my images range is indeed between 0.0 and 1.0. If there is anything else I can tell you to help solve the problem please ask.
In debugging I have noticed that the images color model is a FloatDoubleColorModel. Not really sure if that makes a difference or not.
Anyone have any ideas on things I can try.