kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracker.h curLabel out of range

p0xky-xyz opened this issue · comments

commented

I think uint curLabel gets an out of range if my thread is running during a long time.
To avoid this, i create this fix. what do yo think?
unsigned int getNewLabel() { if (curLabel>=UINT_MAX) { curLabel = 0; } else { curLabel++; } return curLabel; }

thanks

This is related to #202