undistortion.h
来自「tracciatore di mani con webcam」· C头文件 代码 · 共 51 行
H
51 行
#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 + =
减小字号Ctrl + -
显示快捷键?