7 #include <opencv2/opencv.hpp>
62 #define CV_CAMERA_TO_WARP 1
63 #define CV_WARP_TO_CAMERA 2
96 int pointCount = 0, CvPoint2D32f* points = 0);
100 GetEtalon(
int* paramCount = 0,
const double** etalonParams = 0,
101 int* pointCount = 0,
const CvPoint2D32f** etalonPoints = 0)
const;
104 virtual void SetCameraCount(
int cameraCount);
113 virtual bool SetFrames(
int totalFrames);
116 virtual void Stop(
bool calibrate =
false);
127 virtual bool FindEtalon(IplImage** imgs);
130 virtual bool FindEtalon(CvMat** imgs);
134 virtual bool Push(
const CvPoint2D32f** points = 0);
138 virtual int GetFrameCount(
int* framesTotal = 0)
const;
142 virtual const CvCamera* GetCameraParams(
int idx = 0)
const;
144 virtual const CvStereoCamera* GetStereoParams()
const;
147 virtual bool SetCameraParams(CvCamera* params);
150 virtual bool SaveCameraParams(
const char*
filename);
153 virtual bool LoadCameraParams(
const char*
filename);
156 virtual bool Undistort(IplImage** src, IplImage** dst);
159 virtual bool Undistort(CvMat** src, CvMat** dst);
163 virtual bool GetLatestPoints(
int idx, CvPoint2D32f** pts,
164 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);
177 enum { MAX_CAMERAS = 3 };
192 CvCamera cameraParams[MAX_CAMERAS];
194 CvPoint2D32f* points[MAX_CAMERAS];
195 CvMat* undistMap[MAX_CAMERAS][2];
197 int latestCounts[MAX_CAMERAS];
198 CvPoint2D32f* latestPoints[MAX_CAMERAS];
199 CvMat* rectMap[MAX_CAMERAS][2];
210 #endif // CALIBFILTER_H