7#include <opencv2/opencv.hpp>
61#define CV_CAMERA_TO_WARP 1
62#define CV_WARP_TO_CAMERA 2
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);
@ CV_CALIB_ETALON_CHECKERBOARD
@ CV_CALIB_ETALON_CHESSBOARD
int latestCounts[MAX_CAMERAS]
CvPoint2D32f * points[MAX_CAMERAS]
CvCalibEtalonType etalonType
CvMat * undistMap[MAX_CAMERAS][2]
CvPoint2D32f * latestPoints[MAX_CAMERAS]
CvPoint2D32f * etalonPoints
virtual void SetCameraCount(int cameraCount)
virtual CvCalibEtalonType GetEtalon(int *paramCount=0, const double **etalonParams=0, int *pointCount=0, const CvPoint2D32f **etalonPoints=0) const
CvMat * rectMap[MAX_CAMERAS][2]
bool IsCalibrated() const
int GetCameraCount() const
virtual bool SetEtalon(CvCalibEtalonType etalonType, double *etalonParams, int pointCount=0, CvPoint2D32f *points=0)
CvCamera cameraParams[MAX_CAMERAS]