Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It should be quite doable to modify the Gunnar Farnebäck algorithm implemented in OpenCV to find flows along a fixed axis. The equation that finds the displacement from the calculated polynomials can be changed to solve along any given dimension.

Please have a look at the paper for reference: http://www.diva-portal.org/smash/get/diva2:273847/FULLTEXT01.pdf

Sadly, the OpenCV implementation has virtually no comments, thus I'm not able to identify the corresponding lines in the code quickly.