Convert image to RGB based on a color ramp
I am trying to change an Image that has a ComponentSampleModel that has one band (its a float 0.0 - 100.0) into an RGB. I would like to define a color ramp to accomplish this but I am still trying to become familar with the concept.
If I had the color ramp:
0.0 - green
50.0 - brown
100.0 - grey
Is there a way using JAI to convert my single banded image into an RGB using the above ramp?
Thanks in advance!