Home Ways to find cross-correlation between images with subpixel accuracy?

# Ways to find cross-correlation between images with subpixel accuracy?

user4348
1#
user4348 Published in September 19, 2018, 9:19 am

I am using Matlab and trying to find the pixel shift of images using cross-correlation with subpixel accuracy. I used this code: https://www.mathworks.com/matlabcentral/fileexchange/18401-efficient-subpixel-image-registration-by-cross-correlation

However, for a certain edge of a proprietary image I'm looking at, I noticed that the dftregistration does not give a good result for the row_shift value. However, when I replaced lines 95-100 with this:

CC = normxcorr2(buf1ft, buf2ft);


I got a better result in that I no longer so many zero values for row_shift. However, I no longer get sub-pixel values for the row_shift values.

Anyone can help with this? Are there other sub-pixel cross-correlation methods out there?