Hi, I am a beginner in Matlab and I need to remove the drift (which exists because of the microscope when capturing the images at different time) betw my two images so that they can be comparable. To identify my drift, I found this code using the function normxcorr2 :
c = normxcorr2(picture1,picture2);
[max_c, imax] = max(abs(c(:)));
[ypeak, xpeak] = ind2sub(size(c),imax(1));
corr_offset = round([(xpeak-(size(c,2)+1)/2) (ypeak-(size(c,1)+1)/2)]);
offset = corr_offset;
xoffset = offset(1);
yoffset = offset(2);
and I found the following results :
I am a bit confused about how to interpret these results. Does it mean there is a drift of -0.7250 in the direction y and -0.7250 in the direction x? Is this result in pixel or meter?
Thank you for your help!