Tracore
Parser.h
1 //
2 // Created by wrede on 22.04.16.
3 //
4 
5 #ifndef GBMOT_PARSE_H
6 #define GBMOT_PARSE_H
7 
8 #include "../core/DetectionSequence.h"
9 #include "../core/ObjectData.h"
10 #include "Grid.h"
11 #include "FileIO.h"
12 #include <opencv2/core/core.hpp>
13 
14 namespace util
15 {
16  typedef std::vector<std::vector<std::vector<double>>> Vector3d;
17  typedef std::vector<std::vector<double>> Vector2d;
18 
22  class Parser
23  {
24  public:
25  static const std::string KEY_FRAME;
26  static const std::string KEY_ID;
27  static const std::string KEY_SCORE;
28  static const std::string KEY_X;
29  static const std::string KEY_Y;
30  static const std::string KEY_Z;
31  static const std::string KEY_WIDTH;
32  static const std::string KEY_HEIGHT;
33  static const std::string KEY_DEPTH;
34  static const std::string KEY_ANGLE;
35 
49  static void ParseObjectData2D(ValueMapVector& values,
50  core::DetectionSequence& sequence,
51  double image_width,
52  double image_height,
53  double temporal_weight,
54  double spatial_weight);
55 
69  static void ParseObjectDataBox(ValueMapVector& values,
70  core::DetectionSequence& sequence,
71  double image_width,
72  double image_height,
73  double temporal_weight,
74  double spatial_weight);
75 
90  static void ParseObjectDataAngular(ValueMapVector& values,
91  core::DetectionSequence& sequence,
92  double image_width,
93  double image_height,
94  double temporal_weight,
95  double spatial_weight,
96  double angular_weight);
97 
114  static Grid ParseGrid(
115  core::DetectionSequence& sequence,
116  size_t start, size_t stop,
117  double min_x, double max_x, int res_x,
118  double min_y, double max_y, int res_y);
119  };
120 }
121 
122 
123 #endif //GBMOT_PARSE_H
Definition: FileIO.cpp:11
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)
Definition: Parser.cpp:207
Definition: Grid.h:18
static void ParseObjectData2D(ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight)
Definition: Parser.cpp:26
Definition: Parser.h:22
static void ParseObjectDataBox(ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight)
Definition: Parser.cpp:149
static void ParseObjectDataAngular(ValueMapVector &values, core::DetectionSequence &sequence, double image_width, double image_height, double temporal_weight, double spatial_weight, double angular_weight)
Definition: Parser.cpp:82
Definition: DetectionSequence.h:18