kylemcdonald / ofxCv

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

ContourFinder::getCenter using floats #274

Open dimitre opened 1 year ago

dimitre commented 1 year ago

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