forked from martidi/opencv_dsm
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenCVtestclass.h
More file actions
47 lines (39 loc) · 1.37 KB
/
openCVtestclass.h
File metadata and controls
47 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file.
//
// File: openCVtestclass.h
//
// Author: Martina Di Rita
//
// Description: Class providing OpenCV functions for DSM extraction
//
//----------------------------------------------------------------------------
#ifndef openCVtestclass_HEADER
#define openCVtestclass_HEADER 1
//#include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <ossim/imaging/ossimImageDataFactory.h>
//https://stackoverflow.com/questions/33400823/opencv-3-0-0-cvvector-missing
namespace cv
{
using std::vector;
}
class openCVtestclass
{
public:
openCVtestclass();
openCVtestclass(ossimRefPtr<ossimImageData> master, ossimRefPtr<ossimImageData> slave);
bool execute(double mean_conversionF);
bool writeDisparity(double mean_conversionF);
//bool computeDSM(vector<double> mean_conversionF, ossimElevManager* elev, ossimImageGeometry* master_geom);
ossimRefPtr<ossimImageData> computeDSM( ossimElevManager* elev, ossimImageGeometry* master_geom);
cv::Mat wallis(cv::Mat raw_image);
cv::Mat master_mat, slave_mat;
cv::vector<cv::KeyPoint> keypoints1, keypoints2;
vector<cv::DMatch > good_matches;
cv::Mat out_disp;
vector<cv::Mat> fusedDisp_array;
double null_disp_threshold;
};
#endif /* #ifndef openCVtestclass_HEADER */