kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContourFinder::getCenter using floats

dimitre opened this issue · comments

Working with low resolution cameras I've noticed somewhere in the code numbers are getting transformed to integers.
And reading some of the code I've noticed ContourFinder::getCenter calls ContourFinder::getBoundingRect which returns a cv::Rect instead of cv::Rect2f

if we assure float numbers can be used in getCenter the tracking output will be smoother
Thanks