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

Home » Public Forums » archive » Superimpose Two Images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Superimpose Two Images [message #66581] Tue, 26 May 2009 13:43 Go to next message
vikramivatury is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
Re: Superimpose Two Images [message #66695 is a reply to message #66581] Thu, 04 June 2009 09:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vivatury@umich.edu writes:

> Does TVIMAGE only display 24-bit images, or is there a way to display
> 32-bit images as well?

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

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: INTERPOLATE a matrix
Next Topic: how to solve a equation set automatically in IDL?

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

Current Time: Fri Oct 10 04:17:07 PDT 2025

Total time taken to generate the page: 0.72302 seconds