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

Home » Public Forums » archive » image subtraction
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
image subtraction [message #29786] Wed, 13 March 2002 13:39
aburden is currently offline  aburden
Messages: 1
Registered: March 2002
Junior Member
Hi,

Can anyone come up with an efficient way to subtract a single image
from an array of images without using a loop, as in

imgArr = imgArr - img1

where,

imgArr = lonarr(12,512,512)

and,

img1 = lonarr(512,512)

as opposed to

For ii=0,11 do imgArr[ii,*,*] = imgArr[ii,*,*] - img1

Thanks for any suggestions.

Art
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Memory allocation
Next Topic: fun typos in IDL

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

Current Time: Fri Oct 10 08:37:41 PDT 2025

Total time taken to generate the page: 0.87579 seconds