Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Macros | Functions
checkerboard_ocamcalib_detector.h File Reference
#include <mrpt/otherlibs/do_opencv_includes.h>
#include <cmath>
#include <cstdio>
#include <memory>

Go to the source code of this file.

Classes

struct  CvContourEx
 
struct  CvCBCorner
 
struct  CvCBQuad
 

Macros

#define VIS   0
 

Functions

int cvFindChessboardCorners3 (const mrpt::utils::CImage &img_, CvSize pattern_size, std::vector< CvPoint2D32f > &out_corners)
 
bool find_chessboard_corners_multiple (const mrpt::utils::CImage &img_, CvSize pattern_size, std::vector< std::vector< CvPoint2D32f >> &out_corners)
 
int icvGenerateQuads (std::vector< CvCBQuad::Ptr > &quads, std::vector< CvCBCorner::Ptr > &corners, const mrpt::utils::CImage &img, int flags, int dilation, bool firstRun)
 
void mrFindQuadNeighbors2 (std::vector< CvCBQuad::Ptr > &quads, int dilation)
 
int mrAugmentBestRun (std::vector< CvCBQuad::Ptr > &new_quads, int new_dilation, std::vector< CvCBQuad::Ptr > &old_quads, int old_dilation)
 
void icvFindConnectedQuads (std::vector< CvCBQuad::Ptr > &in_quads, std::vector< CvCBQuad::Ptr > &out_quad_group, const int group_idx, const int dilation)
 
void mrLabelQuadGroup (std::vector< CvCBQuad::Ptr > &quad_group, const CvSize &pattern_size, bool firstRun)
 
void icvCleanFoundConnectedQuads (std::vector< CvCBQuad::Ptr > &quads, const CvSize &pattern_size)
 
int myQuads2Points (const std::vector< CvCBQuad::Ptr > &output_quads, const CvSize &pattern_size, std::vector< CvPoint2D32f > &out_corners)
 
void quadListMakeUnique (std::vector< CvCBQuad::Ptr > &quads)
 
bool do_special_dilation (mrpt::utils::CImage &thresh_img, const int dilations, IplConvKernel *kernel_cross, IplConvKernel *kernel_rect, IplConvKernel *kernel_diag1, IplConvKernel *kernel_diag2, IplConvKernel *kernel_horz, IplConvKernel *kernel_vert)
 

Macro Definition Documentation

◆ VIS

#define VIS   0

Definition at line 25 of file checkerboard_ocamcalib_detector.h.

Function Documentation

◆ cvFindChessboardCorners3()

int cvFindChessboardCorners3 ( const mrpt::utils::CImage img_,
CvSize  pattern_size,
std::vector< CvPoint2D32f > &  out_corners 
)

◆ do_special_dilation()

bool do_special_dilation ( mrpt::utils::CImage thresh_img,
const int  dilations,
IplConvKernel *  kernel_cross,
IplConvKernel *  kernel_rect,
IplConvKernel *  kernel_diag1,
IplConvKernel *  kernel_diag2,
IplConvKernel *  kernel_horz,
IplConvKernel *  kernel_vert 
)

Definition at line 82 of file checkerboard_ocamcalib_detector.cpp.

References mrpt::utils::CImage::getAs().

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_chessboard_corners_multiple()

bool find_chessboard_corners_multiple ( const mrpt::utils::CImage img_,
CvSize  pattern_size,
std::vector< std::vector< CvPoint2D32f >> &  out_corners 
)

◆ icvCleanFoundConnectedQuads()

void icvCleanFoundConnectedQuads ( std::vector< CvCBQuad::Ptr > &  quads,
const CvSize &  pattern_size 
)

Definition at line 888 of file checkerboard_ocamcalib_detector.cpp.

References median(), and triangleArea().

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icvFindConnectedQuads()

void icvFindConnectedQuads ( std::vector< CvCBQuad::Ptr > &  in_quads,
std::vector< CvCBQuad::Ptr > &  out_quad_group,
const int  group_idx,
const int  dilation 
)

Definition at line 1071 of file checkerboard_ocamcalib_detector.cpp.

References MRPT_UNUSED_PARAM.

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the caller graph for this function:

◆ icvGenerateQuads()

int icvGenerateQuads ( std::vector< CvCBQuad::Ptr > &  quads,
std::vector< CvCBCorner::Ptr > &  corners,
const mrpt::utils::CImage img,
int  flags,
int  dilation,
bool  firstRun 
)

(flags & CV_CALIB_CB_FILTER_QUADS) ||

Definition at line 2237 of file checkerboard_ocamcalib_detector.cpp.

References CvContourEx::counter, MAX_CONTOUR_APPROX, and MRPT_UNUSED_PARAM.

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the caller graph for this function:

◆ mrAugmentBestRun()

int mrAugmentBestRun ( std::vector< CvCBQuad::Ptr > &  new_quads,
int  new_dilation,
std::vector< CvCBQuad::Ptr > &  old_quads,
int  old_dilation 
)

◆ mrFindQuadNeighbors2()

void mrFindQuadNeighbors2 ( std::vector< CvCBQuad::Ptr > &  quads,
int  dilation 
)

◆ mrLabelQuadGroup()

void mrLabelQuadGroup ( std::vector< CvCBQuad::Ptr > &  quad_group,
const CvSize &  pattern_size,
bool  firstRun 
)

Definition at line 1125 of file checkerboard_ocamcalib_detector.cpp.

References min.

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the caller graph for this function:

◆ myQuads2Points()

int myQuads2Points ( const std::vector< CvCBQuad::Ptr > &  output_quads,
const CvSize &  pattern_size,
std::vector< CvPoint2D32f > &  out_corners 
)

Definition at line 2421 of file checkerboard_ocamcalib_detector.cpp.

Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().

Here is the caller graph for this function:

◆ quadListMakeUnique()

void quadListMakeUnique ( std::vector< CvCBQuad::Ptr > &  quads)

Definition at line 2605 of file checkerboard_ocamcalib_detector.cpp.

Referenced by find_chessboard_corners_multiple().

Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019