Image Component Library (ICL)
|
Cameracalibration using OpenCV functions. More...
#include <OpenCVCamCalib.h>
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::ImgBase * | undisort (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. |
Cameracalibration using OpenCV functions.
icl::cv::OpenCVCamCalib::OpenCVCamCalib | ( | unsigned int | boardWidth = 6 , |
unsigned int | boardHeight = 9 , |
||
unsigned int | boardCount = 8 |
||
) |
Constructor.
boardWidth and boardHeight should not be equal
boardWidth | width of the chessboard |
boardHeight | of the chessboard |
boardCount | minimum number of chessboards to be found on images before calibration |
Destructor.
int icl::cv::OpenCVCamCalib::addPoints | ( | const core::ImgBase * | img | ) |
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)
core::ImgBase* icl::cv::OpenCVCamCalib::undisort | ( | const core::ImgBase * | img | ) |
Computes the undistorted image.
Data* icl::cv::OpenCVCamCalib::m_data [private] |
Class for internal params and buffers.