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

Home » Public Forums » archive » Re: Map transparent image
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: Map transparent image [message #35683 is a reply to message #35681] Tue, 01 July 2003 12:22 Go to previous messageGo to previous message
mmiller3 is currently offline  mmiller3
Messages: 81
Registered: January 2002
Member
>>>> > "Haje" == Haje Korth <haje.korth@jhuapl.edu> writes:

> I am trying to overlay a grey-shaded mask over an image to
> indicate areas where sample data are less
> reliable. However, I want the grey shaded area to be
> transparent so that I can still see the underlying data
> points.
...
> Does anyone know, how the mask can be worked into the image
> prior to display? What is the math that one would apply?

One method that you might like is alpha blending. If you have
two images with two different colors (from two color maps say),
calculate a new color map like

RGB = BYTE( alpha * FLOAT(baseRGB) + (1.0 - alpha) * FLOAT(overlayRGB) )

where the *RGB are RGB 3-tuples. You can do this by hand, so to
speak, in your own code if you are using direct graphics, or you
can use the alpha blending that is built into object graphics.

Mike

--
Michael A. Miller mmiller3@iupui.edu
Imaging Sciences, Department of Radiology, IU School of Medicine
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL from crontab going defunct?
Next Topic: cwavefor

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

Current Time: Fri Oct 10 03:23:36 PDT 2025

Total time taken to generate the page: 0.24154 seconds