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

Home » Public Forums » archive » RGB False color
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
RGB False color [message #56356] Thu, 18 October 2007 08:16
rpertaub@gmail.com is currently offline  rpertaub@gmail.com
Messages: 43
Registered: January 2007
Member
Hello,
I have a false color problem. Let me explain.

Say my image array size is only 2x2 (i.e.pixel 0,1,2,3).
Frame 1 is R, frame 2 is G and frame 3 is B.
Say pixel 0 on frame 1 and 3 both have the same value (say count
1000), and that same pixel on frame 2 is 0. Then my 'color' image
(frame 4) will show pixel 0 as purple (same intensity of red and
blue).

What I want to do is have the choice to have my frame 4/color image be
colored by reading intensities of R,G,B of frames 1,2,3 or to just
simply show one channel. Say I make frames 1,2,3 all R,R,R. I should
see pixel 0 as faint red (or since it is monochrome, faint white). And
if pixel 1 has no red light intensity but some blue and green, it will
not light up as it has no red.

This is how I am showing my false color image right now:
final_image=lonarr(3,1272,1052)
final_Image[0,*,*] = (final_blu)
final_Image[1,*,*] = (final_grn)
final_Image[2,*,*] = (final_red)

window,3,xsize=1200,ysize=900
tvscl,final_image,true=1

window,5,xsize=1200,ysize=900
tvscl,final_red

Unfortunately, because I am using tvscl i think, the second window
image is not as I expected. I expected pixels with red to light up and
others not to. However, it is still similar to the rgb false color
image. Is there a reason for this? Is there a way to show an image
simply as varying intensity w/o any scaling? (I tried tv, that does
not work either) Maybe I can create my own scale?

Thanks,
RP
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Exporting rasters from ArcMap 9.1 to ENVI 4.0
Next Topic: Re: is there any IDL code for 6S atmosphere model?

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

Current Time: Fri Oct 10 23:11:08 PDT 2025

Total time taken to generate the page: 0.40431 seconds