CvCalibFilter Class Reference

#include <VisionX/components/image_processor/CalibrationCreator/calibfilter.h>

Public Member Functions

 CvCalibFilter ()
 
virtual void DrawPoints (CvMat **dst)
 
virtual void DrawPoints (IplImage **dst)
 
virtual bool FindEtalon (CvMat **imgs)
 
virtual bool FindEtalon (IplImage **imgs)
 
int GetCameraCount () const
 
virtual const CvCamera * GetCameraParams (int idx=0) const
 
virtual CvCalibEtalonType GetEtalon (int *paramCount=0, const double **etalonParams=0, int *pointCount=0, const CvPoint2D32f **etalonPoints=0) const
 
virtual int GetFrameCount (int *framesTotal=0) const
 
virtual bool GetLatestPoints (int idx, CvPoint2D32f **pts, int *count, bool *found)
 
virtual const CvStereoCamera * GetStereoParams () const
 
bool IsCalibrated () const
 
virtual bool LoadCameraParams (const char *filename)
 
virtual bool Push (const CvPoint2D32f **points=0)
 
virtual bool Rectify (CvMat **srcarr, CvMat **dstarr)
 
virtual bool Rectify (IplImage **srcarr, IplImage **dstarr)
 
virtual bool SaveCameraParams (const char *filename)
 
virtual void SetCameraCount (int cameraCount)
 
virtual bool SetCameraParams (CvCamera *params)
 
virtual bool SetEtalon (CvCalibEtalonType etalonType, double *etalonParams, int pointCount=0, CvPoint2D32f *points=0)
 
virtual bool SetFrames (int totalFrames)
 
virtual void Stop (bool calibrate=false)
 
virtual bool Undistort (CvMat **src, CvMat **dst)
 
virtual bool Undistort (IplImage **src, IplImage **dst)
 
virtual ~CvCalibFilter ()
 

Protected Types

enum  { MAX_CAMERAS = 3 }
 

Protected Attributes

int cameraCount
 
CvCamera cameraParams [MAX_CAMERAS]
 
int etalonParamCount
 
double * etalonParams
 
int etalonPointCount
 
CvPoint2D32f * etalonPoints
 
CvCalibEtalonType etalonType
 
int framesAccepted
 
int framesTotal
 
CvMat * grayImg
 
CvSize imgSize
 
bool isCalibrated
 
int latestCounts [MAX_CAMERAS]
 
CvPoint2D32f * latestPoints [MAX_CAMERAS]
 
int maxPoints
 
CvPoint2D32f * points [MAX_CAMERAS]
 
CvMat * rectMap [MAX_CAMERAS][2]
 
CvStereoCamera stereo
 
CvMemStorage * storage
 
CvMat * tempImg
 
CvMat * undistImg
 
CvMat * undistMap [MAX_CAMERAS][2]
 

Detailed Description

Definition at line 78 of file calibfilter.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MAX_CAMERAS 

Definition at line 177 of file calibfilter.h.

Constructor & Destructor Documentation

◆ CvCalibFilter()

Definition at line 50 of file calibfilter.cpp.

◆ ~CvCalibFilter()

~CvCalibFilter ( )
virtual

Definition at line 85 of file calibfilter.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ DrawPoints() [1/2]

void DrawPoints ( CvMat **  dst)
virtual

Definition at line 4013 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ DrawPoints() [2/2]

void DrawPoints ( IplImage **  dst)
virtual

Definition at line 4007 of file calibfilter.cpp.

+ Here is the caller graph for this function:

◆ FindEtalon() [1/2]

bool FindEtalon ( CvMat **  imgs)
virtual

Definition at line 3839 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ FindEtalon() [2/2]

bool FindEtalon ( IplImage **  imgs)
virtual

Definition at line 3826 of file calibfilter.cpp.

+ Here is the caller graph for this function:

◆ GetCameraCount()

int GetCameraCount ( ) const
inline

Definition at line 107 of file calibfilter.h.

◆ GetCameraParams()

const CvCamera * GetCameraParams ( int  idx = 0) const
virtual

Definition at line 4104 of file calibfilter.cpp.

◆ GetEtalon()

CvCalibEtalonType GetEtalon ( int *  paramCount = 0,
const double **  etalonParams = 0,
int *  pointCount = 0,
const CvPoint2D32f **  etalonPoints = 0 
) const
virtual

Definition at line 208 of file calibfilter.cpp.

◆ GetFrameCount()

int GetFrameCount ( int *  framesTotal = 0) const
virtual

Definition at line 4091 of file calibfilter.cpp.

◆ GetLatestPoints()

bool GetLatestPoints ( int  idx,
CvPoint2D32f **  pts,
int *  count,
bool *  found 
)
virtual

Definition at line 3985 of file calibfilter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetStereoParams()

const CvStereoCamera * GetStereoParams ( ) const
virtual

Definition at line 4118 of file calibfilter.cpp.

◆ IsCalibrated()

bool IsCalibrated ( ) const
inline

Definition at line 119 of file calibfilter.h.

+ Here is the caller graph for this function:

◆ LoadCameraParams()

bool LoadCameraParams ( const char *  filename)
virtual

Definition at line 4213 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ Push()

bool Push ( const CvPoint2D32f **  points = 0)
virtual

Definition at line 3933 of file calibfilter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Rectify() [1/2]

bool Rectify ( CvMat **  srcarr,
CvMat **  dstarr 
)
virtual

Definition at line 4285 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ Rectify() [2/2]

bool Rectify ( IplImage **  srcarr,
IplImage **  dstarr 
)
virtual

Definition at line 4280 of file calibfilter.cpp.

◆ SaveCameraParams()

bool SaveCameraParams ( const char *  filename)
virtual

Definition at line 4157 of file calibfilter.cpp.

+ Here is the caller graph for this function:

◆ SetCameraCount()

void SetCameraCount ( int  cameraCount)
virtual

Definition at line 235 of file calibfilter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetCameraParams()

bool SetCameraParams ( CvCamera *  params)
virtual

Definition at line 4131 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ SetEtalon()

bool SetEtalon ( CvCalibEtalonType  etalonType,
double *  etalonParams,
int  pointCount = 0,
CvPoint2D32f *  points = 0 
)
virtual

Definition at line 97 of file calibfilter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFrames()

bool SetFrames ( int  totalFrames)
virtual

Definition at line 258 of file calibfilter.cpp.

+ Here is the caller graph for this function:

◆ Stop()

void Stop ( bool  calibrate = false)
virtual

Definition at line 3731 of file calibfilter.cpp.

+ Here is the caller graph for this function:

◆ Undistort() [1/2]

bool Undistort ( CvMat **  src,
CvMat **  dst 
)
virtual

Definition at line 4357 of file calibfilter.cpp.

+ Here is the call graph for this function:

◆ Undistort() [2/2]

bool Undistort ( IplImage **  src,
IplImage **  dst 
)
virtual

Definition at line 4351 of file calibfilter.cpp.

Member Data Documentation

◆ cameraCount

int cameraCount
protected

Definition at line 191 of file calibfilter.h.

◆ cameraParams

CvCamera cameraParams[MAX_CAMERAS]
protected

Definition at line 192 of file calibfilter.h.

◆ etalonParamCount

int etalonParamCount
protected

Definition at line 181 of file calibfilter.h.

◆ etalonParams

double* etalonParams
protected

Definition at line 182 of file calibfilter.h.

◆ etalonPointCount

int etalonPointCount
protected

Definition at line 183 of file calibfilter.h.

◆ etalonPoints

CvPoint2D32f* etalonPoints
protected

Definition at line 184 of file calibfilter.h.

◆ etalonType

CvCalibEtalonType etalonType
protected

Definition at line 180 of file calibfilter.h.

◆ framesAccepted

int framesAccepted
protected

Definition at line 206 of file calibfilter.h.

◆ framesTotal

int framesTotal
protected

Definition at line 205 of file calibfilter.h.

◆ grayImg

CvMat* grayImg
protected

Definition at line 186 of file calibfilter.h.

◆ imgSize

CvSize imgSize
protected

Definition at line 185 of file calibfilter.h.

◆ isCalibrated

bool isCalibrated
protected

Definition at line 207 of file calibfilter.h.

◆ latestCounts

int latestCounts[MAX_CAMERAS]
protected

Definition at line 197 of file calibfilter.h.

◆ latestPoints

CvPoint2D32f* latestPoints[MAX_CAMERAS]
protected

Definition at line 198 of file calibfilter.h.

◆ maxPoints

int maxPoints
protected

Definition at line 204 of file calibfilter.h.

◆ points

CvPoint2D32f* points[MAX_CAMERAS]
protected

Definition at line 194 of file calibfilter.h.

◆ rectMap

CvMat* rectMap[MAX_CAMERAS][2]
protected

Definition at line 199 of file calibfilter.h.

◆ stereo

CvStereoCamera stereo
protected

Definition at line 193 of file calibfilter.h.

◆ storage

CvMemStorage* storage
protected

Definition at line 188 of file calibfilter.h.

◆ tempImg

CvMat* tempImg
protected

Definition at line 187 of file calibfilter.h.

◆ undistImg

CvMat* undistImg
protected

Definition at line 196 of file calibfilter.h.

◆ undistMap

CvMat* undistMap[MAX_CAMERAS][2]
protected

Definition at line 195 of file calibfilter.h.


The documentation for this class was generated from the following files: