Tracore
Static Public Member Functions | Static Public Attributes | List of all members
util::Parser Class Reference

#include <Parser.h>

Static Public Member Functions

static void ParseObjectData2D (ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight)
 
static void ParseObjectDataBox (ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight)
 
static void ParseObjectDataAngular (ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight, double angular_weight)
 
static Grid ParseGrid (core::DetectionSequence &sequence, size_t start, size_t stop, double min_x, double max_x, int res_x, double min_y, double max_y, int res_y)
 

Static Public Attributes

static const std::string KEY_FRAME = "frame"
 
static const std::string KEY_ID = "id"
 
static const std::string KEY_SCORE = "score"
 
static const std::string KEY_X = "xc"
 
static const std::string KEY_Y = "yc"
 
static const std::string KEY_Z = "zc"
 
static const std::string KEY_WIDTH = "width"
 
static const std::string KEY_HEIGHT = "height"
 
static const std::string KEY_DEPTH = "depth"
 
static const std::string KEY_ANGLE = "angle"
 

Detailed Description

Utility class for parsing diverse objects.

Member Function Documentation

Grid util::Parser::ParseGrid ( core::DetectionSequence sequence,
size_t  start,
size_t  stop,
double  min_x,
double  max_x,
int  res_x,
double  min_y,
double  max_y,
int  res_y 
)
static

Parses the given sequence into a grid. The sequence data need to be a ObjectData2D. The frame index is the depth of the grid.

Parameters
sequenceThe detection sequence to parse
startThe first frame to use
stopThe first frame not to use
min_xThe minimal x value
max_xThe maximal x value
res_xThe number of cells on the x axis
min_yThe minimal y value
max_yThe maximal y value
res_yThe number of cells on the y axis
Returns
The grid with the detection values
void util::Parser::ParseObjectData2D ( ValueMapVector &  values,
core::DetectionSequence sequence,
double  image_width,
double  image_height,
double  temporal_weight,
double  spatial_weight 
)
static

Parses the specified values into the specified sequence. The used format is ObjectData2D.

Parameters
valuesThe input values
sequenceThe output sequence containing the parsed values
image_widthThe width of the image used for normalized coordinates
image_heightThe height of the image used for normalized coordinates
temporal_weightThe temporal weight
spatial_weightThe spatial weight
void util::Parser::ParseObjectDataAngular ( ValueMapVector &  values,
core::DetectionSequence sequence,
double  image_width,
double  image_height,
double  temporal_weight,
double  spatial_weight,
double  angular_weight 
)
static

Parses the specified values into the specified sequence. The used format is ObjectDataAngular.

Parameters
valuesThe input values
sequenceThe sequence to store the created objects in
image_widthThe width of the image used for normalized coordinates
image_heightThe height of the image used for normalized coordinates
temporal_weightThe temporal weight
spatial_weightThe spatial weight
angular_weightThe angular weight
void util::Parser::ParseObjectDataBox ( ValueMapVector &  values,
core::DetectionSequence sequence,
double  image_width,
double  image_height,
double  temporal_weight,
double  spatial_weight 
)
static

Parses the specified values into the specified sequence. The used format is ObjectDataBox.

Parameters
valuesThe input values
sequenceThe output sequence containing the parsed values
image_widthThe width of the image used for normalized coordinates
image_heightThe height of the image used for normalized coordinates
temporal_weightThe temporal weight
spatial_weightThe spatial weight

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