Image Component Library (ICL)
Public Member Functions | Private Attributes | List of all members
icl::cv::OpenCVCamCalib Class Reference

Cameracalibration using OpenCV functions. More...

#include <OpenCVCamCalib.h>

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

Public Member Functions

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

Private Attributes

Data * m_data
 Class for internal params and buffers. More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::utils::Uncopyable
 Uncopyable ()
 Empty base constructor. More...
 

Detailed Description

Cameracalibration using OpenCV functions.

Constructor & Destructor Documentation

◆ OpenCVCamCalib()

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

◆ ~OpenCVCamCalib()

icl::cv::OpenCVCamCalib::~OpenCVCamCalib ( )

Destructor.

Member Function Documentation

◆ addPoints()

int icl::cv::OpenCVCamCalib::addPoints ( const core::ImgBase img)

Adds points from images to computation.

◆ calibrateCam()

void icl::cv::OpenCVCamCalib::calibrateCam ( )

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

◆ getDistortion()

math::DynMatrix<icl64f>* icl::cv::OpenCVCamCalib::getDistortion ( )

Returns DynMatrix of distortion params.

◆ getIntrinsics()

math::DynMatrix<icl64f>* icl::cv::OpenCVCamCalib::getIntrinsics ( )

Returns DynMatrix of intrinsic params.

◆ loadParams()

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

loads intrinsic params from file (in OpenCV format)

◆ resetData()

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

resets internal data and sets given params

◆ saveParams()

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

saves intrinsic params to file (from OpenCV format)

◆ undisort()

core::ImgBase* icl::cv::OpenCVCamCalib::undisort ( const core::ImgBase img)

Computes the undistorted image.

Member Data Documentation

◆ m_data

Data* icl::cv::OpenCVCamCalib::m_data
private

Class for internal params and buffers.


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