Hello,
I tried to post sthng earlier, but didn't work it seems. Anyway, my
problem is with the display of a false color and my lack of
understanding how it works.
I have been a bit intrigued by color display I am using, as I am not
sure how it is being processed. I have 3 image frames for the 3
channels- RGB. This is how I am using them and displaying them:
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 RGB Image',xsize=1200,ysize=900
tvscl,final_image,true=1
I unfortunately cannot display the image here, but I get a not too bad
RGB image. Then I look at one area that is clearly blue. I click on
the pixel to get the intensities of the three channels. Here is what I
get:
450nm (blue-ish): 3871
550nm (green-ish): 12512
650nm (red-ish): 14212
Here, the int of the red channel is the greatest and blue channel is
the smallest. However, my image is clearly BLUE. I am thoroughly
confused how the color is processed when doing
tvscl,final_image,true=1
Can anyone help me understand and maybe fix my problem...
Thanks,
RP


|