Lucas-Kanade optical flow – gradient calculation
I have implemented Lucas-Kanade method (per pixel version, not the one for features that is in OpenCV). However, I have a question regarding calculating gradients (dx, dy, dt). In a few implementations, I have seen this: