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

Utility class wrapping OpenCV's cvFindChessboardCorners. More...

#include <CheckerboardDetector.h>

Inheritance diagram for icl::cv::CheckerboardDetector:
icl::utils::Configurable icl::utils::Uncopyable

List of all members.

Classes

struct  Checkerboard
 Internally used and returned result structure. More...

Public Member Functions

 CheckerboardDetector ()
 Default constructor (creates a null instance)
 CheckerboardDetector (const utils::Size &size)
 Constructor with given checkerboard size.
 ~CheckerboardDetector ()
 Destructor.
void init (const utils::Size &size)
 for deferred initialization
bool isNull () const
 returns whether this instance has been initilialized yet
const Checkerboarddetect (const core::Img8u &image)
 detects the defined checkerboard in the given image

Private Member Functions

void init_properties ()
 intializes configurable properties internally

Private Attributes

Data * m_data
 internal data data

Detailed Description

Utility class wrapping OpenCV's cvFindChessboardCorners.

The CheckerboardDetector wrappes OpenCV's cvFindChessboardCorners and provides a flag to optionally optimize the detected corners using cvFindCornerSubPix


Constructor & Destructor Documentation

Default constructor (creates a null instance)

Constructor with given checkerboard size.

Please note: the checkerboard size given relates to the inner checkerboard corners that are expected. So if the checkerboard has 5 by 5 fields, i.e. the first row is like BWBWB (Black/White), then you have to pass a size of 4x4

Destructor.


Member Function Documentation

detects the defined checkerboard in the given image

The image can have any format, but internally is is always converted to gray (if it is not of formatGray). If optSubPix was set in either the constructor or in init, the returned corners are automatically optimized using cvFindCornerSubPix

for deferred initialization

Please note: the checkerboard size given relates to the inner checkerboard corners that are expected. So if the checkerboard has 5 by 5 fields, i.e. the first row is like BWBWB (Black/White), then you have to pass a size of 4x4

intializes configurable properties internally

returns whether this instance has been initilialized yet


Member Data Documentation

internal data data

internal data pointer


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