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

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

Detailed Description

Utility class for visualizing detection sequences or tracks.

Member Function Documentation

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.

Parameters
tracksThe tracks to display
frame_offsetThe offset of the first frame
image_folderThe images to use
outputIf the frames with the visualized tracks should be stored
output_pathThe path to store the images into (will need an images folder)
titleThe window title
first_frameThe frame to start at
play_fpsThe FPS to use when auto play is activated
show_gridIf a grid should be shown
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: