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 
Return to the default flat view Create a new topic Submit Reply
Re: Overlaying where data [message #58284] Thu, 24 January 2008 18:15 Go to previous 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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 19:51:32 PDT 2025

Total time taken to generate the page: 0.00449 seconds