Bug #464
Blobs lastTimeTimeWasChecked set twice per tracking sequence
| Status: | New | Start: | 02/18/2010 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
Description
addons\ofxNCore\src\Tracking\Tracking.cpp - BlobTracker::track(ContourFinder* newBlobs)
this function touches the lastTimeTimeWasChecked time of a blob twice when going through it. Once when the uncalibrated blob is done being tracked (line 209), and once when the calibrated blob is done being tracked (line 254 / line 297). This causes the calibrated D values to be calculated incorrectly. Even worse, when the calculations are performed extremely fast (which is the case for my particular project with custom input) the resulting D values are NaN due to divisions by zero.
I hope the line numbers are correct, I might have added/deleted lines in my own file version. These are the lines you'll be looking for:
trackedBlobs[i].lastTimeTimeWasChecked = ofGetElapsedTimeMillis();
TouchEvents.messenger.lastTimeTimeWasChecked = ofGetElapsedTimeMillis();
