Tracore
|
#include <Visualizer.h>
Public Member Functions | |
void | Display (core::DetectionSequence &sequence, std::string image_folder, std::string title="Visualizer", size_t first_frame=0, int play_fps=24) |
void | Display (std::vector< core::TrackletPtr > &tracks, std::string image_folder, std::string title="Visualizer", size_t first_frame=0, int play_fps=24, int grid_width=0, int grid_height=0) |
Utility class for visualizing detection sequences or tracks.
void util::Visualizer::Display | ( | core::DetectionSequence & | sequence, |
std::string | image_folder, | ||
std::string | title = "Visualizer" , |
||
size_t | first_frame = 0 , |
||
int | play_fps = 24 |
||
) |
Displays the given sequence in an window. Use D for next frame, A for previous frame, F to toggle auto play and ESC to exit.
sequence | The sequence of detection data to display |
image_folder | The images to use |
title | The window title |
first_frame | The frame to start at |
play_fps | The FPS to use when auto play is activated. |
void util::Visualizer::Display | ( | std::vector< core::TrackletPtr > & | tracks, |
std::string | image_folder, | ||
std::string | title = "Visualizer" , |
||
size_t | first_frame = 0 , |
||
int | play_fps = 24 , |
||
int | grid_width = 0 , |
||
int | grid_height = 0 |
||
) |
Displays the given tracks in an window. Use D for next frame, A for previous frame, F to toggle auto play and ESC to exit. If a grid size greater zero is specified a grid will be overlayed.
tracks | The tracks to display |
image_folder | The images to use |
title | The window title |
first_frame | The frame to start at |
play_fps | The FPS to use when auto play is activated |
grid_width | The number of cells in a row |
grid_height | The number of cells in a column |