Tracore
|
#include <Visualizer.h>
Public Member Functions | |
void | Display (std::vector< core::TrackletPtr > &tracks, size_t frame_offset, std::string image_folder, bool output, std::string output_path, std::string title="Visualizer", size_t first_frame=0, int play_fps=24, bool show_grid=false, int grid_width=0, int grid_height=0) |
Utility class for visualizing detection sequences or tracks.
void util::Visualizer::Display | ( | std::vector< core::TrackletPtr > & | tracks, |
size_t | frame_offset, | ||
std::string | image_folder, | ||
bool | output, | ||
std::string | output_path, | ||
std::string | title = "Visualizer" , |
||
size_t | first_frame = 0 , |
||
int | play_fps = 24 , |
||
bool | show_grid = false , |
||
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 drawn.
tracks | The tracks to display |
frame_offset | The offset of the first frame |
image_folder | The images to use |
output | If the frames with the visualized tracks should be stored |
output_path | The path to store the images into (will need an images folder) |
title | The window title |
first_frame | The frame to start at |
play_fps | The FPS to use when auto play is activated |
show_grid | If a grid should be shown |
grid_width | The number of cells in a row |
grid_height | The number of cells in a column |