Tracore
Public Member Functions | List of all members
algo::NStage Class Reference

#include <NStage.h>

Public Member Functions

 NStage (std::vector< size_t > max_frame_skip, std::vector< double > penalty_value, std::vector< size_t > max_tracklet_count, double edge_weight_threshold, std::vector< std::unordered_map< std::string, double >> constraints)
 
void Run (core::DetectionSequence &sequence, std::vector< core::TrackletPtr > &tracks)
 

Detailed Description

Implementation of the two-staged graph-based multi-object tracker. Extended to allow N stages.

Constructor & Destructor Documentation

algo::NStage::NStage ( std::vector< size_t >  max_frame_skip,
std::vector< double >  penalty_value,
std::vector< size_t >  max_tracklet_count,
double  edge_weight_threshold,
std::vector< std::unordered_map< std::string, double >>  constraints 
)

Initializes the algorithm wih the given values. The number of stages is determined by the size of the given vectors.

Parameters
max_frame_skipThe maximum edge length to link objects
penalty_valueThe edge value to link to source and sink
max_tracklet_countThe maximum number of tracklets to create
edge_weight_thresholdThe maximum weight an edge can have in the initial graph, edges with higher weights are discarded
constraintsThe constraints to ensure when creating edges

Member Function Documentation

void algo::NStage::Run ( core::DetectionSequence sequence,
std::vector< core::TrackletPtr > &  tracks 
)

Runs the algorithm on the specified sequence and stores the found tracks into the specified tracks vector.

Parameters
sequenceThe detection values to use
tracksA vector to store the found tracks in

The documentation for this class was generated from the following files: