|
Tracore
|
#include <NStage.h>
Public Member Functions | |
| NStage (size_t max_frame_skip, double penalty_value, size_t max_tracklet_count) | |
| void | CreateObjectGraph (DirectedGraph &graph, const core::DetectionSequence &detections) |
| void | CreateTrackletGraph (DirectedGraph &obj_graph, DirectedGraph &tlt_graph, size_t frame_count) |
| void | ExtractTracks (DirectedGraph &tlt_graph, size_t depth, std::vector< core::TrackletPtr > &tracks) |
Implementation of the two-staged graph-based multi-object tracker.
| algo::NStage::NStage | ( | size_t | max_frame_skip, |
| double | penalty_value, | ||
| size_t | max_tracklet_count | ||
| ) |
Initializes the algorithm wih the given values.
| max_frame_skip | The maximum edge length to link objects |
| penalty_value | The Edge value to link to source and sink |
| max_tracklet_count | The maximum number of tracklets to create |
| void algo::NStage::CreateObjectGraph | ( | DirectedGraph & | graph, |
| const core::DetectionSequence & | detections | ||
| ) |
Creates a graph with vertices for every detected object
| graph | The graph to write into |
| detections | The objects to use for the graph |
| void algo::NStage::CreateTrackletGraph | ( | DirectedGraph & | obj_graph, |
| DirectedGraph & | tlt_graph, | ||
| size_t | frame_count | ||
| ) |
Reduces the object graph into linked tracklets.
| obj_graph | The object graph to reduce |
| tlt_graph | The graph to write the tracklets in |
| frame_count | The frame count of the object graph |
| void algo::NStage::ExtractTracks | ( | DirectedGraph & | tlt_graph, |
| size_t | depth, | ||
| std::vector< core::TrackletPtr > & | tracks | ||
| ) |
Extracts the finished tracks from the given tracklet graph.
| tlt_graph | The tracklet graph to extract from |
| depth | The depth to flatten the tracklets to |
| tracks | The vector to write the extracted tracks in |
1.8.12