imregcorr
Estimate geometric transformation that aligns two 2-D images using phase correlation
Syntax
Description
estimates the geometric transformation that aligns an image,
tform
= imregcorr(moving
,Rmoving
,fixed
,Rfixed
)moving
, with a reference image, fixed
.
Rmoving
and Rfixed
are spatial
referencing objects that contain spatial information about the
moving
and fixed
images, respectively.
The transformation object returned, tform
, defines the point
mapping in the world coordinate system.
also specifies whether to perform windowing in the frequency domain. To increase the
stability of registration results, specify tform
= imregcorr(___,"Window",window
)window
as
true
. However, if the common features in your images are
oriented along the edges, then setting window
to
false
can sometimes provide superior registration
results.
Examples
Input Arguments
Output Arguments
Tips
If your image is of type
double
, you can achieve performance improvements by casting the image tosingle
withim2single
before registration. Input images of typedouble
cause the algorithm to compute FFTs indouble
.
References
[1] Reddy, B. S. and Chatterji, B. N., An FFT-Based Technique for Translation, Rotation, and Scale-Invariant Image Registration, IEEE Transactions on Image Processing, Vol. 5, No. 8, August 1996