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:
Anyone can help with this? Are there other sub-pixel cross-correlation methods out there?
matlab image-processing cross-correlation