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

Home » Public Forums » archive » Re: Overlaying where data
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
Re: Overlaying where data [message #58284] Thu, 24 January 2008 18:15 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
jtmcahill@gmail.com writes:

> Ok, great! Now do you have a method of doing marking multiple areas
> at the same time?

LoadCT, 0, NColors=250
TVLCT, FSC_COLOR(['teal', 'dark green' 'plum','khaki'], /TRIPLE), 250
I_1 = Where(image ...)
I_2 = Where(image ...)
...
scaledImage = BytScl(image, Top=249)
scaledImage[I_1] = 250 ; teal
scaledImage[I_2] = 251 ; dark green

You can probably spot the pattern evolving here... :-)

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.")
Re: Overlaying where data [message #58286 is a reply to message #58284] Thu, 24 January 2008 15:33 Go to previous messageGo to next message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Jan 24, 10:59 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jan 24, 2:39 pm, jtmcah...@gmail.com wrote:
>
>> Hello,
>
>> So, I've got a tvscl image that I've done some analysis on. With the
>> where function I've found some places I want to highlight in that
>> image by overlaying those areas with some color. I've managed to do
>> something close with the tv function but it changes the color of the
>> original tvscl image and the highlighted area is a barely
>> distinguishable (washed out red color). Does anyone have any ideas on
>> how to do this. I'm not contouring or anything special, just found
>> significant area in an image and want to highlighted so I can point
>> and say "there is where there is a significant amount of X".
>
>> Thanks
>
> Off the top of my head:
>
> tvlct, 255, 0, 0
> bimage = bytscl(image,top=254)+1B
> bimage[index] = 0B
> tv, bimage

Ok, great! Now do you have a method of doing marking multiple areas
at the same time?

Josh
Re: Overlaying where data [message #58287 is a reply to message #58286] Thu, 24 January 2008 12:59 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jan 24, 2:39 pm, jtmcah...@gmail.com wrote:
> Hello,
>
> So, I've got a tvscl image that I've done some analysis on. With the
> where function I've found some places I want to highlight in that
> image by overlaying those areas with some color. I've managed to do
> something close with the tv function but it changes the color of the
> original tvscl image and the highlighted area is a barely
> distinguishable (washed out red color). Does anyone have any ideas on
> how to do this. I'm not contouring or anything special, just found
> significant area in an image and want to highlighted so I can point
> and say "there is where there is a significant amount of X".
>
> Thanks

Off the top of my head:

tvlct, 255, 0, 0
bimage = bytscl(image,top=254)+1B
bimage[index] = 0B
tv, bimage
Re: Overlaying where data [message #58367 is a reply to message #58284] Fri, 25 January 2008 10:27 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Jan 24, 4:15 pm, David Fanning <n...@dfanning.com> wrote:
> jtmcah...@gmail.com writes:
>> Ok, great! Now do you have a method of doing marking multiple areas
>> at the same time?
>
> LoadCT, 0, NColors=250
> TVLCT, FSC_COLOR(['teal', 'dark green' 'plum','khaki'], /TRIPLE), 250
> I_1 = Where(image ...)
> I_2 = Where(image ...)
> ...
> scaledImage = BytScl(image, Top=249)
> scaledImage[I_1] = 250 ; teal
> scaledImage[I_2] = 251 ; dark green
>
> You can probably spot the pattern evolving here... :-)
>
> 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.")

David,

Great! Thanks! I had to download your library to get some of the
functions of tvlct to work but it works great. Now, I might be
pushing my luck here, but each data area has a range of values as
well. Basically, I modeled a multispectral image array and the areas
I'm highlighting have results of my modeling. If I want to, can I
overlay a false colored tvscl image in a similar manner?

Thanks!
Josh
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: asynchonous/nonblocking IDLnetURL
Next Topic: Long command line wordwrap

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

Current Time: Wed Oct 08 17:48:52 PDT 2025

Total time taken to generate the page: 0.00578 seconds