VAT  3.0
Video Analysis Tool
hullmodel.h
1 #ifndef HULLMODEL_H
2 #define HULLMODEL_H
3 
4 #include <opencv2/opencv.hpp>
5 #include <QSharedPointer>
6 #include "geometric.h"
7 
8 class HullModel;
9 
10 typedef QSharedPointer<HullModel> SpHullModel;
11 
12 class HullModel {
13 public:
14  HullModel();
15  HullModel(HullModel &h);
16  HullModel(SpHullModel h);
17  HullModel(HullModel &h, int off_x, int off_y);
18  ~HullModel();
19  void setOffset(int, int);
20  void setDistanceVector(SceneModel *s);
21 
22  //attributes
23  unsigned long id;
24  int off_x;
25  int off_y;
26  std::vector<cv::Point> local_hull;
27  std::vector<cv::Point> hull;
28  cv::Point axis1;
29  cv::Point axis2;
30  //Normal segments to distance
31  std::vector< segment2D<float> > segs;
32  //Normal segments to hull
33  std::vector< segment2D<float> > hull_segs;
34  //Length of normal segments to movement
35  std::vector<double> dists;
36  //Length of normal segments to hull
37  std::vector<double> hull_dists;
38 };
39 
40 
41 #endif // HULLMODEL_H
Definition: calibration.h:51
Definition: hullmodel.h:12