icatimmersive / MultiObjectTracking-OpenCV

Difference-based object tracking with OpenCV in C++, ported from MATLAB code
1 stars 0 forks source link

Using doubles or floats for bounding box #3

Open ewmson opened 9 years ago

ewmson commented 9 years ago

The current openCV code is using ints for all of its bounding box fields, this may need to be changed to more closely match what the Matlab was doing, unless these fields will only ever be integer values.

The fields in question are: int bounding_x; int bounding_y; int bounding_width; int bounding_height;

nathaniellahn commented 9 years ago

I am currently using those as floats unity side. I don't know that the accuracy matters at this point, but if its an easy change to floats, then it might be worth changing. It may matter later with smaller blobs.

nuoma commented 9 years ago

i think floats should be enough since the blob position is given in pixels.

On Tue, Oct 27, 2015 at 1:15 PM, nathaniellahn notifications@github.com wrote:

I am currently using those as floats unity side. I don't know that the accuracy matters at this point, but if its an easy change to floats, then it might be worth changing. It may matter later with smaller blobs.

— Reply to this email directly or view it on GitHub https://github.com/MirrorWorldsVT/MultiObjectTracking-OpenCV/issues/3#issuecomment-151574350 .

Nuo Ma Technical Project Manager of Mirror Worlds, ICAT M.S. Candidate, Computer Engineering Virginia Tech tel:(540)750-1035, lorinma@gmail.com nuoma@vt.edu