kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.
Other
657 stars 276 forks source link

fix getMotion() function in PyrLK optical flow #259

Closed galsasson closed 5 years ago

galsasson commented 5 years ago

without this fix getMotion() returns double the size of prevPts. push_back adds on top of the empty elements allocated in the constructor.

kylemcdonald commented 5 years ago

thank you 🙏