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

Home » Public Forums » archive » Re: 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
Re: RGB Color reconstruction [message #56470] Tue, 30 October 2007 12:53 Go to previous message
rpertaub@gmail.com is currently offline  rpertaub@gmail.com
Messages: 43
Registered: January 2007
Member
On Oct 30, 3:16 pm, David Fanning <n...@dfanning.com> wrote:
> rpert...@gmail.com writes:
>> I changed the tvscl to tv, and indeed it makes no difference since I
>> already bytescaled previously. I use the maxes because my maximum
>> count for each channel is different (red is much more than green and
>> blue).
>
> Yes, but you scaled each channel individually, so each used
> the maximum value of that channel in the scaling! No need to
> force it to do that.
>
>> I also switched the blue and red to get a real RGB opposed to BGR. The
>> image does seem to have changed from an RGB to a BGR...an area which
>> used to be all red is now all blue...however, again clicking on it and
>> looking at counts at that blue pix for difference channels tells me
>> that the red frame had more intensity there than the blue frame, yet
>> the pixel color is blue. I would expect if the red frame to be much
>> higher intensity the pixel to be a reddish purple...not blue..!
>
> What version of IDL are you using? And how are you determining
> the image value at that pixel location?
>
>> still not understanding how true=1 creates an rgb image..
>
> It just loads the three planes of the 24-bit image into
> the three color channels. No magic there, at all. It would
> be the same as doing this:
>
> TV, BytScl(red), Channel=1
> TV, BytScl(green), Channel=2
> TV, BytScl(blue), Channel=3
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I am using IDL 6.3
But I also wanted to say thanks, as your questions pointed me to my
mistake. I am doing hyperspectral imaging so it is a bit crazy with
the many wave bands etc...but thanks again for your help!
rp
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Color Table Loading Tool
Next Topic: Re: Minimum Noise Fraction Doubts...

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

Current Time: Sun Oct 12 11:18:05 PDT 2025

Total time taken to generate the page: 1.11592 seconds