I am trying to find the relative shift in two microscope images since my sample shifts between frames. This code is used to find the 2D correlation between two images. I then us