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

Home » Public Forums » archive » correlation of 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
correlation of images [message #49497] Tue, 01 August 2006 17:50 Go to next message
jsoamag is currently offline  jsoamag
Messages: 2
Registered: August 2006
Junior Member
hi all,
I am new to IDL and this site as well,
I tried to correlate set of images or two images, but I could not, I
tried what Phil Plait had suggested in an old message
(y1 = total(image1,1) & x1 = total(image1,2))
but I could not manage to define images.
please help me as soon as possible.
Ali
Re: correlation of images [message #49580 is a reply to message #49497] Wed, 02 August 2006 09:57 Go to previous message
vlk.astro is currently offline  vlk.astro
Messages: 11
Registered: March 2006
Junior Member
jsoamag@hotmail.com wrote:
> hi all,
> I am new to IDL and this site as well,
> I tried to correlate set of images or two images, but I could not, I
> tried what Phil Plait had suggested in an old message
> (y1 = total(image1,1) & x1 = total(image1,2))
> but I could not manage to define images.
> please help me as soon as possible.
> Ali

It's not clear what you mean by "correlate set of images". When you
apply total() to an image, you are reducing the dimensions, so if you
started out with a 2-D array, you will end up with a 1-D array (or a
scalar).

I suspect that you are trying to find the shift in x and y that need to
be applied to image1 to align it with image2. In that case, you are on
the right track. You also need
y2=total(image2,1) & x2=total(image2,2)
and then you will have to find the lag between x1 and x2 to get the
necessary shift along x, and between y1 and y2 to get the shift along
y. You can use some form of chisq, or c_correlate to find the "best"
lag.

Vinay
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpolation question
Next Topic: "IDL Programming Techniques: 2nd Ed" accompanying files

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

Current Time: Wed Oct 08 14:01:33 PDT 2025

Total time taken to generate the page: 0.00726 seconds