7 #include <opencv2/opencv.hpp>
61 #define CV_CAMERA_TO_WARP 1
62 #define CV_WARP_TO_CAMERA 2
94 CvPoint2D32f* points = 0);
98 const double** etalonParams = 0,
100 const CvPoint2D32f** etalonPoints = 0)
const;
103 virtual void SetCameraCount(
int cameraCount);
113 virtual bool SetFrames(
int totalFrames);
116 virtual void Stop(
bool calibrate =
false);
128 virtual bool FindEtalon(IplImage** imgs);
131 virtual bool FindEtalon(CvMat** imgs);
135 virtual bool Push(
const CvPoint2D32f** points = 0);
139 virtual int GetFrameCount(
int* framesTotal = 0)
const;
143 virtual const CvCamera* GetCameraParams(
int idx = 0)
const;
145 virtual const CvStereoCamera* GetStereoParams()
const;
148 virtual bool SetCameraParams(CvCamera* params);
151 virtual bool SaveCameraParams(
const char*
filename);
154 virtual bool LoadCameraParams(
const char*
filename);
157 virtual bool Undistort(IplImage** src, IplImage** dst);
160 virtual bool Undistort(CvMat** src, CvMat** dst);
164 virtual bool GetLatestPoints(
int idx, CvPoint2D32f** pts,
int* count,
bool* found);
167 virtual void DrawPoints(IplImage** dst);
170 virtual void DrawPoints(CvMat** dst);
172 virtual bool Rectify(IplImage** srcarr, IplImage** dstarr);
173 virtual bool Rectify(CvMat** srcarr, CvMat** dstarr);
194 CvCamera cameraParams[MAX_CAMERAS];
196 CvPoint2D32f* points[MAX_CAMERAS];
197 CvMat* undistMap[MAX_CAMERAS][2];
199 int latestCounts[MAX_CAMERAS];
200 CvPoint2D32f* latestPoints[MAX_CAMERAS];
201 CvMat* rectMap[MAX_CAMERAS][2];
212 #endif // CALIBFILTER_H