Re: Overlaying where data [message #58361 is a reply to message #58288] |
Fri, 25 January 2008 12:05   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
jtmcahill@gmail.com writes:
> Ok, let's see if I can explain this more clearly. First, I display
> the original image in tvscl.
If you are really using TVSCL to display your image, I think
you are already in trouble or you will be in trouble soon.
If colors matter to you, forget you ever heard anything about
TVSCL. Learn how to use TV and BYTSCL, including *all* the BYTSCL
keywords. You will be undermining a lot of the work we are doing
here if you use TVSCL.
(And if you *really* want to work in IDL, get TVIMAGE or IMGDISP
from one of the usual places on the Internet. You don't want to
be using TV either. :-)
> Then, I've got a second array that I've
> determined the % of a given mineral per pixel (say from 0 to 1 or 0 to
> 100 either way you want to look at it). I can tvscl the % mineralogy
> no problem in a window on its own (colored or grey scale). But what
> I'd like to do is to overlay the original image that is tvscl, with
> another tvscl (which is the % mineralogy) without effecting the
> original image. So, it is similar to highlighting the area of the
> image that fit my criteria (like above), but now I'd like it to
> visually show the areas with a higher and lower % of that mineral as
> well. The first image would be grey scale, the second overlayed image
> probably in color. You may think that the entire image would be
> colored, but no. Because I've already picked out pixels that fit
> another geochemical criteria first. So, I only have ~20% of the
> original image to cover. If I display the second image alone, the
> observer has no context for what they are looking at. But, if I over
> lay it on the first image, that will provide the context. That's what
> I'm shooting for.
Have a look at this article, I think this describes what you are
after:
http://www.dfanning.com/color_tips/color_overlay.html
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.")
|
|
|