242 template<
class valueType>
255 m_bTryOptimize(true),m_currentID(0),
261 void pushData(valueType *xys,
int n);
264 void pushData(
const std::vector<valueType> &xs,
const std::vector<valueType> &ys);
267 void pushData(
const std::vector<utils::Point32f> points);
274 m_IDAllocationMode = mode;
283 int getID(valueType x, valueType y);
286 int getID(
int index);
291 typedef std::vector<valueType>
Vec;
294 typedef std::vector<Vec>
Mat;
Class for tracking 2D positions.
Definition: PositionTracker.h:243
PositionTracker()
Empty default constructor without any optimization.
Definition: PositionTracker.h:250
undocument this line if you encounter any issues!
Definition: Any.h:37
std::vector< int > m_vecIDs
internal storage of the unique ids I
Definition: PositionTracker.h:306
IDAllocationMode m_IDAllocationMode
flag to indicate which type of ID allocation should be used
Definition: PositionTracker.h:318
std::deque< Vec > QMat
internally used queue-matrix (columns can be pushed and pop'ed in constant time
Definition: PositionTracker.h:297
std::vector< int > m_vecCurrentAssignment
internal storage of the last calculated assignment
Definition: PositionTracker.h:303
#define ICLCV_API
Definition: CompatMacros.h:177
Definition: PositionTracker.h:42
PositionTracker(valueType threshold)
NEW constructor with optimization enabled and given theshold
Definition: PositionTracker.h:254
Definition: PositionTracker.h:41
valueType m_tThreshold
threshold distance
Definition: PositionTracker.h:321
std::vector< int > m_vecGoodDataCount
internal storage for the good data count G
Definition: PositionTracker.h:309
bool m_bTryOptimize
flag to indicate whether to try optimization (trivial assignment)
Definition: PositionTracker.h:312
IDAllocationMode
How should new ID's be allocated.
Definition: PositionTracker.h:40
int m_currentID
first unused ID
Definition: PositionTracker.h:315
void setIDAllocationMode(IDAllocationMode mode)
Definition: PositionTracker.h:273
std::vector< Vec > Mat
internally used matrix type
Definition: PositionTracker.h:294
std::vector< valueType > Vec
internally used vector type
Definition: PositionTracker.h:291