Feature #476
ROI Selection
| Status: | New | Start: | 05/17/2010 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
Description
To ignore Blobs outside calibration area add following code at beginning of “void BlobTracker::track(ContourFinder* newBlobs)“ method in file \addons\ofxNCore\src\Tracking\Tracking.cpp.
if(!isCalibrating){
vector<Blob>::iterator iter = newBlobs->blobs.begin();
while( iter != newBlobs->blobs.end() )
{
vector2df pt(iter->centroid.x,iter->centroid.y);
if(calibrate->findTriangleWithin(pt)<0)
iter = newBlobs->blobs.erase( iter );
else
++iter;
}
}
newBlobs->nBlobs=newBlobs->blobs.size();
