correlation of images [message #49497] |
Tue, 01 August 2006 17:50  |
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  |
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
|
|
|