View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.7 | 3 ratings Rate this file 3 Downloads (last 30 days) File Size: 220 KB File ID: #46964 Version: 1.1
image thumbnail


Min (view profile)


15 Jun 2014 (Updated )

A very fast subpixel image registration

| Watch this File

File Information

A very fast and accuracy subpixel image registration or alignment based on cross correlation and modified moment algorithm . Its accuracy is around 0.01-0.1 pixel according to the SNR and the size of images.
 standimage: the first image
 compimage: the second image. It should be the same size as the first image
 m: the shift in X
 n: the shift in Y

 This code is implemented based on the following algorithm. Please citeļ¼š
 Song Min, June, 2013

Required Products MATLAB
MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
15 Jul 2016 UmarSpa

my that's working.

ButI am getting another error:

Error using ==
Matrix dimensions must agree.

Error in fastreg>regsurf (line 83)
[M0 N0]=find(im==max(im(:)));

Error in fastreg (line 51)
[m n im]=regsurf((standimage2.*w),(compimage2.*w));

Comment only
09 Sep 2014 Min

Min (view profile)

yes, it is pretty tricky . Usually, we choice R0 between 2 and 4. Acutally, it is related with the size and the content of your images. We have not found a rule yet.

Comment only
03 Sep 2014 Basel

Basel (view profile)

Thanks Song, Can you please elaborate more on the impact of R0 & R1 in your code? changing them have big influence on the performance so any guidelines about them?

12 Aug 2014 Abdul Mohammed

Thanks for the code. John says it saved me 1 month worth of for loop work. Awesome!

15 Jun 2014 Song Ming

06 Aug 2014 1.1

Add a screenshot

Contact us