Feature #476

ROI Selection

Added by Alexandr Puchkovskiy over 3 years ago. Updated over 2 years ago.

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();

History

Updated by Christian Moore over 2 years ago

Thanks for this contribution :)

Also available in: Atom PDF