You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 CalibrateBase.h
|
|
//主要功能:
|
|
// 基础类库
|
|
//程序编写: 2005-12-07
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CalibrateBase.h: interface for the CCalibrateBase class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
namespace NCalibrate
|
|
{
|
|
|
|
#define CALIBRATE_2 1
|
|
#define CALIBRATE_4 2
|
|
#define CALIBRATE_LINEAR 3
|
|
#define CALIBRATE_RECT 4
|
|
#define CALIBRATE_FOUR 5
|
|
#define CALIBRATE_LINE_V 6 //校正为Y方向直线
|
|
#define CALIBRATE_LINE_H 7 //校正为X方向直线
|
|
#define CALIBRATE_TO_RECT 8 //校正为矩形
|
|
#define CALIBRATE_ALONE_CURVE 9 //沿着曲线方向校正坐标
|
|
|
|
class AFX_EXT_CLASS CCalibrateBase
|
|
{
|
|
public:
|
|
CCalibrateBase();
|
|
virtual ~CCalibrateBase();
|
|
|
|
virtual int Exchange(double &x,double &y);
|
|
virtual void Clear(void);
|
|
|
|
int Create(int num, double* m, double* n, double* x, double* y);
|
|
double X(int index);
|
|
double Y(int index);
|
|
double M(int index);
|
|
double N(int index);
|
|
|
|
int num;
|
|
double* pValue;
|
|
int m_type;
|
|
double* GetX(void);
|
|
double* GetY(void);
|
|
};
|
|
|
|
};
|
|
|
|
using namespace NCalibrate;
|