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]
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MAX_CAMERAS 

Constructor & Destructor Documentation

◆ CvCalibFilter()

◆ ~CvCalibFilter()

~CvCalibFilter ( )
virtual

Member Function Documentation

◆ DrawPoints() [1/2]

void DrawPoints ( CvMat ** dst)
virtual

◆ DrawPoints() [2/2]

void DrawPoints ( IplImage ** dst)
virtual

◆ FindEtalon() [1/2]

bool FindEtalon ( CvMat ** imgs)
virtual

◆ FindEtalon() [2/2]

bool FindEtalon ( IplImage ** imgs)
virtual

◆ GetCameraCount()

int GetCameraCount ( ) const
inline

◆ GetCameraParams()

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

◆ GetEtalon()

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

◆ GetFrameCount()

int GetFrameCount ( int * framesTotal = 0) const
virtual

◆ GetLatestPoints()

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

◆ GetStereoParams()

const CvStereoCamera * GetStereoParams ( ) const
virtual

◆ IsCalibrated()

bool IsCalibrated ( ) const
inline

◆ LoadCameraParams()

bool LoadCameraParams ( const char * filename)
virtual

◆ Push()

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

◆ Rectify() [1/2]

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

◆ Rectify() [2/2]

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

◆ SaveCameraParams()

bool SaveCameraParams ( const char * filename)
virtual

◆ SetCameraCount()

void SetCameraCount ( int cameraCount)
virtual

◆ SetCameraParams()

bool SetCameraParams ( CvCamera * params)
virtual

◆ SetEtalon()

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

◆ SetFrames()

bool SetFrames ( int totalFrames)
virtual

◆ Stop()

void Stop ( bool calibrate = false)
virtual

◆ Undistort() [1/2]

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

◆ Undistort() [2/2]

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

Member Data Documentation

◆ cameraCount

int cameraCount
protected

◆ cameraParams

CvCamera cameraParams[MAX_CAMERAS]
protected

◆ etalonParamCount

int etalonParamCount
protected

◆ etalonParams

double* etalonParams
protected

◆ etalonPointCount

int etalonPointCount
protected

◆ etalonPoints

CvPoint2D32f* etalonPoints
protected

◆ etalonType

CvCalibEtalonType etalonType
protected

◆ framesAccepted

int framesAccepted
protected

◆ framesTotal

int framesTotal
protected

◆ grayImg

CvMat* grayImg
protected

◆ imgSize

CvSize imgSize
protected

◆ isCalibrated

bool isCalibrated
protected

◆ latestCounts

int latestCounts[MAX_CAMERAS]
protected

◆ latestPoints

CvPoint2D32f* latestPoints[MAX_CAMERAS]
protected

◆ maxPoints

int maxPoints
protected

◆ points

CvPoint2D32f* points[MAX_CAMERAS]
protected

◆ rectMap

CvMat* rectMap[MAX_CAMERAS][2]
protected

◆ stereo

CvStereoCamera stereo
protected

◆ storage

CvMemStorage* storage
protected

◆ tempImg

CvMat* tempImg
protected

◆ undistImg

CvMat* undistImg
protected

◆ undistMap

CvMat* undistMap[MAX_CAMERAS][2]
protected

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