SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
WAICompassAlignment.h
Go to the documentation of this file.
1 #ifndef WAI_COMPASS_ALIGNMENT_H
2 #define WAI_COMPASS_ALIGNMENT_H
3 
4 #include <opencv2/core.hpp>
5 
7 {
8  struct Template
9  {
10  cv::Mat image;
11  double latitudeDEG;
12  double longitudeDEG;
13  double altitudeM;
14  };
15 
16 public:
17  // TODO(dgj1): overload for function without getting the resultImage
18  void update(const cv::Mat& frameGray,
19  cv::Mat& resultImage,
20  const float hFov,
21  double latitudeDEG,
22  double longitudeDEG,
23  double altitudeM,
24  cv::Point& forwardPoint);
25 
26  void setTemplate(cv::Mat& templateImage, double latitudeDEG, double longitudeDEG, double altitudeM);
27  float getRotAngleDEG() { return _rotAngDEG; }
28 
29 private:
30  // TODO(dgj1): allow multiple templates
32  float _rotAngDEG = 0.0f;
33 };
34 
35 #endif
void update(const cv::Mat &frameGray, cv::Mat &resultImage, const float hFov, double latitudeDEG, double longitudeDEG, double altitudeM, cv::Point &forwardPoint)
void setTemplate(cv::Mat &templateImage, double latitudeDEG, double longitudeDEG, double altitudeM)