📄 undistortion.h
字号:
#if !defined(__UNDISTORTION_H__INCLUDED_)#define __UNDISTORTION_H__INCLUDED_#include <cv.h>#include <string>using namespace std;typedef struct _CvCameraParams{ float focalLength[2]; float distortion[4]; float principalPoint[2]; float matrix[9]; float rotMatr[9]; float transVect[3];}CvCameraParams;class Undistortion { public: Undistortion(); ~Undistortion(); public: void Initialize(int width, int height); bool CanUndistort() const; void Load(string filename); void Undistort(IplImage* iplImage) const; void Undistort(IplImage* srcImg, IplImage* dstImg) const; protected: bool m_can_undistort; bool m_initialized; /* camera parameters */ CvCameraParams m_camera; IplImage* m_undist_img; CvCameraParams m_undistort_params; IplImage* m_undistort_data;};#endif // __UNDISTORTION_H__INCLUDED_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -