I am trying to calculate the distance a froth has moved between two consecutive frames, but I'm only interested in the vertical displacement, i.e. the y direction.
xcorr2 works great but is expensive computational wise.
here is my code:
ccr = xcross2(img1,img2)
I was thinking I could just apply xcorr to each column for the image, but not sure this will save on computations