Skip to main content
. Author manuscript; available in PMC: 2025 Apr 27.
Published in final edited form as: Nat Protoc. 2023 May 29;18(7):2051–2083. doi: 10.1038/s41596-023-00829-4
[output,]=dftregistration(fft2(referenceCrop),fft2(imageCrop(:,:,i)),100);shiftX(i)=output(4);%the shift along the x directionshiftY(i)=output(3);%the shift along the y direction