-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPolarRectification.h
45 lines (36 loc) · 1.13 KB
/
PolarRectification.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
// PolarRectification.h: interface for the PolarRectification class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POLARRECTIFICATION_H__D967EB05_3161_459C_BBE4_8C005847EA89__INCLUDED_)
#define AFX_POLARRECTIFICATION_H__D967EB05_3161_459C_BBE4_8C005847EA89__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ImageProperties.h"
#include "cxcore.h"
#include "cv.h"
#include "highgui.h"
#include <math.h>
class PolarRectification
{
public:
PolarRectification();
virtual ~PolarRectification();
void SaveImages();
double fromRadianToDegree(double Angle);
double fromDegreeToRadian(double Angle);
CvSize CalculateImageSize();
void constructImages();
int LoadFandEMatrices(char* FileName);
int initialize();
int FindOffSetAngle(ImageProperties &imProp);
int FindEpipoleRegion(CvPoint2D32f epipole);
void FindCommonRegion(CvPoint2D32f epipole);
void LoadImages();
private:
IplImage* Images[2];
IplImage* RectifiedImage[2];
ImageProperties ImageProps[2];
CvMat* FMatrix;
};
#endif // !defined(AFX_POLARRECTIFICATION_H__D967EB05_3161_459C_BBE4_8C005847EA89__INCLUDED_)