Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::cv::OpenCVCamCalib Class Reference

Cameracalibration using OpenCV functions. More...

#include <OpenCVCamCalib.h>

Inheritance diagram for icl::cv::OpenCVCamCalib:
icl::utils::Uncopyable

List of all members.

Public Member Functions

 OpenCVCamCalib (unsigned int boardWidth=6, unsigned int boardHeight=9, unsigned int boardCount=8)
 Constructor.
 ~OpenCVCamCalib ()
 Destructor.
int addPoints (const core::ImgBase *img)
 Adds points from images to computation.
void calibrateCam ()
 Tries to calibrates the camera, if minimal number of found and valid chessboards is greater zero.
core::ImgBaseundisort (const core::ImgBase *img)
 Computes the undistorted image.
void resetData (int width, int height, int count)
 resets internal data and sets given params
math::DynMatrix< icl64f > * getIntrinsics ()
 Returns DynMatrix of intrinsic params.
math::DynMatrix< icl64f > * getDistortion ()
 Returns DynMatrix of distortion params.
void loadParams (const char *xmlfilename)
 loads intrinsic params from file (in OpenCV format)
void saveParams (const char *xmlfilename)
 saves intrinsic params to file (from OpenCV format)

Private Attributes

Data * m_data
 Class for internal params and buffers.

Detailed Description

Cameracalibration using OpenCV functions.


Constructor & Destructor Documentation

icl::cv::OpenCVCamCalib::OpenCVCamCalib ( unsigned int  boardWidth = 6,
unsigned int  boardHeight = 9,
unsigned int  boardCount = 8 
)

Constructor.

boardWidth and boardHeight should not be equal

Parameters:
boardWidthwidth of the chessboard
boardHeightof the chessboard
boardCountminimum number of chessboards to be found on images before calibration

Destructor.


Member Function Documentation

Adds points from images to computation.

Tries to calibrates the camera, if minimal number of found and valid chessboards is greater zero.

Returns DynMatrix of distortion params.

Returns DynMatrix of intrinsic params.

void icl::cv::OpenCVCamCalib::loadParams ( const char *  xmlfilename)

loads intrinsic params from file (in OpenCV format)

void icl::cv::OpenCVCamCalib::resetData ( int  width,
int  height,
int  count 
)

resets internal data and sets given params

void icl::cv::OpenCVCamCalib::saveParams ( const char *  xmlfilename)

saves intrinsic params to file (from OpenCV format)

Computes the undistorted image.


Member Data Documentation

Class for internal params and buffers.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines