Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
BIAS::CheckerboardDetector Class Reference

Detects a checkerboard pattern in an image (typically 7x4 inner corners, asymmetric layout recommended). More...

#include <FeatureDetector/CheckerboardDetector.hh>

Static Public Member Functions

static int Compute (const BIAS::Image< unsigned char > &img, const unsigned int &xCorners, const unsigned int &yCorners, t_CoordVecf &coords, const bool &saveDebugImage=false)
 Detects a (recommended asymmetric) checkerboard pattern. More...
 
static void DrawPoints (void *img, void *ptArray, int numPts, const int xCorners, const int yCorners, const bool DRAW_IDEAL_OVERLAY=true, const bool DRAW_AXES=true, const bool DRAW_POINT_LABEL=true)
 Takes number of inner corners on x axis and y axis, and number of images to build an array of corners, and draws computed corners into CV image. More...
 
static void SetCornerDetectorFlags (int flags)
 
static void SetSubPixelAccuracy (double accuracy)
 
static void SetSubPixelIterations (int maxIters)
 

Detailed Description

Detects a checkerboard pattern in an image (typically 7x4 inner corners, asymmetric layout recommended).

Note
Based on OpenCV implementation.
Author
Jan Woetzel
Date
2006

Definition at line 53 of file CheckerboardDetector.hh.

Member Function Documentation

int CheckerboardDetector::Compute ( const BIAS::Image< unsigned char > &  img,
const unsigned int &  xCorners,
const unsigned int &  yCorners,
t_CoordVecf coords,
const bool &  saveDebugImage = false 
)
static

Detects a (recommended asymmetric) checkerboard pattern.

Returns
0 for success, <0 for error (e.g. could not detect all inner corners).

Definition at line 32 of file CheckerboardDetector.cpp.

Referenced by BIAS::ImageCanvasCheckerboardExtract::SelectCheckerboardCorners().

void CheckerboardDetector::DrawPoints ( void *  img,
void *  ptArray,
int  numPts,
const int  xCorners,
const int  yCorners,
const bool  DRAW_IDEAL_OVERLAY = true,
const bool  DRAW_AXES = true,
const bool  DRAW_POINT_LABEL = true 
)
static

Takes number of inner corners on x axis and y axis, and number of images to build an array of corners, and draws computed corners into CV image.

Note
Assumes all corners to lie on z = 0 plane.

Definition at line 87 of file CheckerboardDetector.cpp.

static void BIAS::CheckerboardDetector::SetCornerDetectorFlags ( int  flags)
inlinestatic

Definition at line 86 of file CheckerboardDetector.hh.

static void BIAS::CheckerboardDetector::SetSubPixelAccuracy ( double  accuracy)
inlinestatic

Definition at line 96 of file CheckerboardDetector.hh.

static void BIAS::CheckerboardDetector::SetSubPixelIterations ( int  maxIters)
inlinestatic

Definition at line 91 of file CheckerboardDetector.hh.


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