Lines Matching refs:trackedObjects
649 for(size_t i = 0; i < trackedObjects.size(); i++) { in process()
650 size_t n = trackedObjects[i].lastPositions.size(); in process()
653 Rect r = trackedObjects[i].lastPositions[n-1]; in process()
662 Point2f center_prev = centerRect(trackedObjects[i].lastPositions[n-2]); in process()
673 LOGI("DetectionBasedTracker::process: tracked objects num==%d", (int)trackedObjects.size()); in process()
692 for(size_t i=0; i < trackedObjects.size(); i++) { in getObjects()
706 for(size_t i=0; i < trackedObjects.size(); i++) { in getObjects()
711 result.push_back(Object(r, trackedObjects[i].id)); in getObjects()
719 for(size_t i=0; i < trackedObjects.size(); i++) { in getObjects()
722 result.push_back(ExtObject(trackedObjects[i].id, r, status)); in getObjects()
747 trackedObjects.clear(); in resetTracking()
757 int N1=(int)trackedObjects.size(); in updateTrackedObjects()
762 trackedObjects[i].numDetectedFrames++; in updateTrackedObjects()
771 TrackedObject& curObject=trackedObjects[i]; in updateTrackedObjects()
834 trackedObjects[i].lastPositions.push_back(detectedObjects[j]); in updateTrackedObjects()
835 …while ((int)trackedObjects[i].lastPositions.size() > (int) innerParameters.numLastPositionsToTrack… in updateTrackedObjects()
836 trackedObjects[i].lastPositions.erase(trackedObjects[i].lastPositions.begin()); in updateTrackedObjects()
838 trackedObjects[i].numFramesNotDetected=0; in updateTrackedObjects()
841 trackedObjects.push_back(detectedObjects[j]); in updateTrackedObjects()
847 std::vector<TrackedObject>::iterator it=trackedObjects.begin(); in updateTrackedObjects()
848 while( it != trackedObjects.end() ) { in updateTrackedObjects()
864 it=trackedObjects.erase(it); in updateTrackedObjects()
874 trackedObjects.push_back(TrackedObject(location)); in addObject()
875 int newId = trackedObjects.back().id; in addObject()
887 if ( (i < 0) || (i >= (int)trackedObjects.size()) ) { in calcTrackedObjectPositionToShow()
892 if (trackedObjects[i].numDetectedFrames <= innerParameters.numStepsToWaitBeforeFirstShow){ in calcTrackedObjectPositionToShow()
894 … i, trackedObjects[i].numDetectedFrames, innerParameters.numStepsToWaitBeforeFirstShow); in calcTrackedObjectPositionToShow()
898 if (trackedObjects[i].numFramesNotDetected > innerParameters.numStepsToShowWithoutDetecting) { in calcTrackedObjectPositionToShow()
903 const TrackedObject::PositionsVector& lastPositions=trackedObjects[i].lastPositions; in calcTrackedObjectPositionToShow()