display an image from RGB [message #46779] |
Fri, 16 December 2005 13:05 |
Chi-Kuei Wang
Messages: 4 Registered: May 2005
|
Junior Member |
|
|
Hi,
I am an ENVI user. In the context of multi- and hyper-spectral data,
I always wonder how does ENVI display an image using 3 different
wavelengths representing red, green, and blue colors.
I am trying to reproduce this function using my own code in IDL (as
an exercise to understand IDL color table). But I couldn't find a way to
do it. I suspose I need to know the relationship between (red, green,
blue) triplets and IDL color table. Say,
zcolors = red * var_red + green * var_red + blue * var_blue
Once I know this relationship, I can use it to generate a new image,
whose pixel values will correspond to IDL color table.
Is this correct? If so, can anyone provide me the relationship for
color triplets and IDL color table.
Thanks,
Chi-Kuei
|
|
|