SLAM
maphistogram.h
1 #ifndef MAPHISTOGRAM_H
2 #define MAPHISTOGRAM_H
3 
4 #include <QObject>
5 #include <armadillo>
6 
7 #include "datastructures.h"
8 
9 using namespace arma;
10 
12  subHistogram_t(){ data = zeros<mat>(700, 700);}
13  mat data;
14 };
15 
16 class MapHistogram : public QObject
17 {
18  Q_OBJECT
19 
20  enum Histogram {
21  defaultSubMapSize = 700
22  };
23 
24 public:
25  MapHistogram();
26  void addData(map_t *map, int start, int end);
27  mat* getHistogram();
28 
29 private:
30  mat histogram;
31  int minX;
32  int minY;
33  int maxX;
34  int maxY;
35 
36  void checkAndResize(map_t *map, int startIn, int end);
37  void addValue(QPointF *point);
38 };
39 
40 #endif // MAPHISTOGRAM_H
Definition: maphistogram.h:16
Definition: maphistogram.h:11