-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopenCVtestclass.h
46 lines (39 loc) · 1.27 KB
/
openCVtestclass.h
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
//----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file.
//
// File: openCVtestclass.h
//
// Author: Martina Di Rita
//
// Description: Class provides OpenCV functions for DSM extraction
//
//----------------------------------------------------------------------------
#ifndef openCVtestclass_HEADER
#define openCVtestclass_HEADER 1
#include <ossim/base/ossimObject.h>
#include <ossim/base/ossimDpt.h>
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimTieMeasurementGeneratorInterface.h>
#include "ossimIvtGeomXform.h"
#include <opencv/cv.h>
#include <ctime>
#include <vector>
#include <iostream>
class openCVtestclass
{
public:
openCVtestclass();
~openCVtestclass(){};
openCVtestclass(ossimRefPtr<ossimImageData> master, ossimRefPtr<ossimImageData> slave);
bool execute();
bool writeDisparity(double mean_conversionF);
bool computeDSM(double mean_conversionF, ossimElevManager* elev, ossimImageGeometry* master_geom);
cv::Mat wallis(cv::Mat raw_image);
//void addArguments(ossimArgumentParser& ap);
cv::Mat master_mat, slave_mat;
cv::vector<cv::KeyPoint> keypoints1, keypoints2;
vector<cv::DMatch > good_matches;
cv::Mat out_disp;
};
#endif /* #ifndef openCVtestclass_HEADER */