10 #ifndef INTERNAL_CHECKERBOARD_INCL_H 11 #define INTERNAL_CHECKERBOARD_INCL_H 14 #include <mrpt/otherlibs/do_opencv_includes.h> 57 CvCBQuad() :
count(0),group_idx(0),edge_len(0),labeled(false),area(0.0), area_ratio(1.0)
77 std::vector<CvPoint2D32f> &out_corners);
83 std::vector< std::vector<CvPoint2D32f> > &out_corners);
89 int icvGenerateQuads( std::vector<CvCBQuadPtr> &quads, std::vector<CvCBCornerPtr> &corners,
96 std::vector<CvCBQuadPtr> &old_quads,
int old_dilation );
99 std::vector<CvCBQuadPtr> &in_quads,
100 std::vector<CvCBQuadPtr> &out_quad_group,
102 const int dilation );
104 void mrLabelQuadGroup( std::vector<CvCBQuadPtr> &quad_group,
const CvSize &pattern_size,
bool firstRun );
110 int myQuads2Points(
const std::vector<CvCBQuadPtr> &output_quads,
const CvSize &pattern_size, std::vector<CvPoint2D32f> &out_corners);
117 IplConvKernel *kernel_cross,
118 IplConvKernel *kernel_rect,
119 IplConvKernel *kernel_diag1,
120 IplConvKernel *kernel_diag2,
121 IplConvKernel *kernel_horz,
122 IplConvKernel *kernel_vert
126 #endif // MRPT_HAS_OPENCV GLuint GLuint GLsizei count
int mrAugmentBestRun(std::vector< CvCBQuadPtr > &new_quads, int new_dilation, std::vector< CvCBQuadPtr > &old_quads, int old_dilation)
stlplus::smart_ptr< CvCBCorner > CvCBCornerPtr
stlplus::smart_ptr< CvCBQuad > CvCBQuadPtr
A class for storing images as grayscale or RGB bitmaps.
void quadListMakeUnique(std::vector< CvCBQuadPtr > &quads)
int cvFindChessboardCorners3(const mrpt::utils::CImage &img_, CvSize pattern_size, std::vector< CvPoint2D32f > &out_corners)
void icvCleanFoundConnectedQuads(std::vector< CvCBQuadPtr > &quads, const CvSize &pattern_size)
void mrLabelQuadGroup(std::vector< CvCBQuadPtr > &quad_group, const CvSize &pattern_size, bool firstRun)
bool find_chessboard_corners_multiple(const mrpt::utils::CImage &img_, CvSize pattern_size, std::vector< std::vector< CvPoint2D32f > > &out_corners)
int myQuads2Points(const std::vector< CvCBQuadPtr > &output_quads, const CvSize &pattern_size, std::vector< CvPoint2D32f > &out_corners)
void mrFindQuadNeighbors2(std::vector< CvCBQuadPtr > &quads, int dilation)
int icvGenerateQuads(std::vector< CvCBQuadPtr > &quads, std::vector< CvCBCornerPtr > &corners, const mrpt::utils::CImage &img, int flags, int dilation, bool firstRun)
GLenum GLenum GLvoid * row
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)
void icvFindConnectedQuads(std::vector< CvCBQuadPtr > &in_quads, std::vector< CvCBQuadPtr > &out_quad_group, const int group_idx, const int dilation)
GLenum GLenum GLvoid GLvoid * column