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

Home » Public Forums » archive » Re: Adding/Subtracting/Multiplying images together
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
Re: Adding/Subtracting/Multiplying images together [message #67449] Wed, 22 July 2009 12:01
Barbara is currently offline  Barbara
Messages: 17
Registered: July 2009
Junior Member
On Jul 21, 3:08 pm, Gianguido <gianguido.cia...@gmail.com> wrote:
> also, try
>
> IDL> ?
>
> and browse away...
>
> G

thanks to both! it was a great help! (simple, but a great help) so
thank you!
Re: Adding/Subtracting/Multiplying images together [message #67466 is a reply to message #67449] Tue, 21 July 2009 15:08 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
also, try

IDL> ?

and browse away...


G
Re: Adding/Subtracting/Multiplying images together [message #67467 is a reply to message #67466] Tue, 21 July 2009 13:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barbara writes:

> I am extremely new to IDL, and am working with an astronomy professor
> looks at fits files. I have been able to split the header and image
> apart, however now I must be able to add images, then multiply them,
> and find the average image. Does anyone know how to do this?

You could try something like this:

image_added = image_1 + image_2
image_multiplied = image_1 * image_2

IDL is a pretty easy language, as these things go. :-)

Cheers,

David

P.S. You *might* have to cast your image data to
a floating point type if you expect floating point
numbers when you do these mathematical processes:

image_added = Float(image_1) + image_2
image_multiplied = Float(image_1) * image_2

--
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: Problem with IDL and fits
Next Topic: Re: jpg image

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

Current Time: Thu Oct 09 21:47:18 PDT 2025

Total time taken to generate the page: 1.28571 seconds