Tracore
Public Member Functions | List of all members
util::Visualizer Class Reference

#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)
 

Detailed Description

Utility class for visualizing detection sequences or tracks.

Member Function Documentation

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.

Parameters
sequenceThe sequence of detection data to display
image_folderThe images to use
titleThe window title
first_frameThe frame to start at
play_fpsThe 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.

Parameters
tracksThe tracks to display
image_folderThe images to use
titleThe window title
first_frameThe frame to start at
play_fpsThe FPS to use when auto play is activated
grid_widthThe number of cells in a row
grid_heightThe number of cells in a column

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