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

Home » Public Forums » archive » 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 #58338 is a reply to message #58288] Sun, 27 January 2008 19:46 Go to previous messageGo to previous message
izimine is currently offline  izimine
Messages: 11
Registered: November 1997
Junior Member
> Ok, let's see if I can explain this more clearly. First, I display
> the original image in tvscl. 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).

if you want to do it in direct graphics with color tables...

; load background and overlay colors (change ncolors as needed)
loadct, 0, ncolors=128
loadct, ???, bottom=128, ncolors=128 ; or use tvlct
; bytscale accordingly
back = bytscl(orig, top=127)
over = bytscl(minerals, top=127)+128
; make a binary mask of what you want to show
mask = (minerals gt val1 * minerals lt val2) + (minerals gt val3)
; display
tv, back*(1-mask) + over*mask


if you need transparency better look at object graphics

cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Resampling from cumulative probability distribution
Next Topic: Re: idl and MS word

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

Current Time: Sat Oct 11 08:22:22 PDT 2025

Total time taken to generate the page: 0.48012 seconds