comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » RGB Color reconstruction
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
RGB Color reconstruction [message #56479] Tue, 30 October 2007 07:33
rpertaub@gmail.com is currently offline  rpertaub@gmail.com
Messages: 43
Registered: January 2007
Member
Hello,
I am doing some RGB color reconstruction and I am confused by some of
the display. I tried to paste my image for greater clarity, but could
not, so will try to explain as clearly as possible. Here is the simple
code I am using with three image frames for the 3 RGB channels:

maxes=lonarr(3)
maxes[0]=max(final_red)
maxes[1]=max(final_grn)
maxes[2]=max(final_blu)

final_image=lonarr(3,1272,1052)
final_Image[0,*,*] = bytscl(final_blu,max=maxes[2])
final_Image[1,*,*] = bytscl(final_red,max=maxes[0])
final_Image[2,*,*] = bytscl(final_grn,max=maxes[1])

window,3,title='Reconstructed Cube RGB Image',xsize=1200,ysize=900
tvscl,final_image,true=1

I get my RGB image thus. Then, I look at one region that is clearly
blue in color and click on it to get the int of each channel. My print
out int is thus:

450nm (blue-ish):3871
550nm(green-ish):12518
650nm(red-ish):14212

Clearly from the intensities, red channel has the highest intensity.
Blue is in fact the lowest. Yet, the image at that pixel was BLUE! I
am obviously not understanding how tvscl,final_image,true=1 works...

Any idea?

Thanks,
RP
[Message index]
 
Read Message
Previous Topic: IDL and OpenGL
Next Topic: New Color Table Loading Tool

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 23:20:08 PDT 2025

Total time taken to generate the page: 1.20397 seconds