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
andRfixed
are spatial referencing objects that contain spatial information about themoving
andfixed
图像,分别。的交易nsformation object returned,tform
, defines the point mapping in the world coordinate system.
also specifies the type of transformation,tform
= imregcorr(___,transformType
)transformType
.
also specifies whether to perform windowing in the frequency domain. To increase the stability of registration results, specifytform
= imregcorr(___,'Window',window
)window
astrue
. However, if the common features in your images are oriented along the edges, then settingwindow
tofalse
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