SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
WAIImageStabilizedOrientation.h
Go to the documentation of this file.
1 #ifndef WAI_IMAGE_STABILIZED_ORIENTATION_H
2 #define WAI_IMAGE_STABILIZED_ORIENTATION_H
3 
4 #include <opencv2/core/core.hpp>
5 #include <SLVec3.h>
6 
8 {
9 public:
10  bool findCameraOrientationDifferenceF2F(cv::Mat imageGray, //for corner extraction
11  cv::Mat& imageRgb,
12  const cv::Mat& intrinsic,
13  float scaleToGray,
14  bool decorate); //for debug decoration
15 
17  cv::Mat imageGray, //for corner extraction
18  cv::Mat& imageRgb,
19  const cv::Mat& intrinsic,
20  float scaleToGray,
21  bool decorate); //for debug decoration
22 private:
23  cv::Mat _lastImageGray;
24  cv::Mat _Tcw;
25  float _xAngRAD = 0.f;
26  float _yAngRAD = 0.f;
27  float _zAngRAD = 0.f;
28 
29  std::vector<cv::KeyPoint> _lastKeyPts;
30  std::vector<cv::Point2f> _lastPts;
31  std::vector<cv::Point2f> _currPts;
32  std::vector<cv::Point2f> _lastGoodPts;
33  std::vector<cv::Point2f> _currGoodPts;
34  std::vector<uchar> _inliers;
35  std::vector<float> _err;
36 
37  int _fIniThFAST = 30;
38  int _fMinThFAST = 7;
39 };
40 
41 #endif // WAI_IMAGE_STABILIZED_ORIENTATION_H
std::vector< cv::KeyPoint > _lastKeyPts
bool findCameraOrientationDifferenceF2FHorizon(const SLVec3f &horizon, cv::Mat imageGray, cv::Mat &imageRgb, const cv::Mat &intrinsic, float scaleToGray, bool decorate)
bool findCameraOrientationDifferenceF2F(cv::Mat imageGray, cv::Mat &imageRgb, const cv::Mat &intrinsic, float scaleToGray, bool decorate)