Superimpose Two Images [message #66581] |
Tue, 26 May 2009 13:43  |
vikramivatury
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
Hello,
I am currently an intern working on a project at the University of
Maryland. I was wondering if there is anyway of superimposing two TIFF
images over each other? For example, let there be a background and a
foreground image.
Any help would be great.
Thanks,
Vikram
|
|
|
Re: Superimpose Two Images [message #66694 is a reply to message #66581] |
Thu, 04 June 2009 09:26  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> The latest version of TVIMAGE will allow 32-bit images,
> although it doesn't do anything with the alpha channel
> except ignore it.
>
> http://www.dfanning.com/programs/tvimage.pro
Well, now that I look at this, it doesn't appear to be
true. Instead, it appears to create a white background
image and will use the alpha channel to blend the
white background with the image, using the alpha channel
to do the blending. This allows the transparent 32-bit
PNG images I was using as test cases to be displayed
properly.
The alpha channel *is* ignored, if it contains a single
value. In other words, if the MIN(alpha) EQ Max(alpha).
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|