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
6
class
WAICompassAlignment
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
31
Template
_template
;
32
float
_rotAngDEG
= 0.0f;
33
};
34
35
#endif
WAICompassAlignment
Definition:
WAICompassAlignment.h:7
WAICompassAlignment::update
void update(const cv::Mat &frameGray, cv::Mat &resultImage, const float hFov, double latitudeDEG, double longitudeDEG, double altitudeM, cv::Point &forwardPoint)
Definition:
WAICompassAlignment.cpp:15
WAICompassAlignment::_rotAngDEG
float _rotAngDEG
Definition:
WAICompassAlignment.h:32
WAICompassAlignment::getRotAngleDEG
float getRotAngleDEG()
Definition:
WAICompassAlignment.h:27
WAICompassAlignment::setTemplate
void setTemplate(cv::Mat &templateImage, double latitudeDEG, double longitudeDEG, double altitudeM)
Definition:
WAICompassAlignment.cpp:7
WAICompassAlignment::_template
Template _template
Definition:
WAICompassAlignment.h:31
WAICompassAlignment::Template
Definition:
WAICompassAlignment.h:9
WAICompassAlignment::Template::latitudeDEG
double latitudeDEG
Definition:
WAICompassAlignment.h:11
WAICompassAlignment::Template::image
cv::Mat image
Definition:
WAICompassAlignment.h:10
WAICompassAlignment::Template::longitudeDEG
double longitudeDEG
Definition:
WAICompassAlignment.h:12
WAICompassAlignment::Template::altitudeM
double altitudeM
Definition:
WAICompassAlignment.h:13
modules
wai
source
WAICompassAlignment.h
Generated by
1.9.1