Re: Overlaying where data [message #58284] |
Thu, 24 January 2008 18:15  |
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   |
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   |
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  |
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
|
|
|