13 #include <mrpt/3rdparty/do_opencv_includes.h> 65 double area{0.0}, area_ratio{1.0};
74 std::vector<CvPoint2D32f>& out_corners);
79 std::vector<std::vector<CvPoint2D32f>>& out_corners);
85 std::vector<CvCBQuad::Ptr>& quads, std::vector<CvCBCorner::Ptr>& corners,
91 std::vector<CvCBQuad::Ptr>& new_quads,
int new_dilation,
92 std::vector<CvCBQuad::Ptr>& old_quads,
int old_dilation);
95 std::vector<CvCBQuad::Ptr>& in_quads,
96 std::vector<CvCBQuad::Ptr>& out_quad_group,
const int group_idx,
100 std::vector<CvCBQuad::Ptr>& quad_group,
const CvSize& pattern_size,
105 std::vector<CvCBQuad::Ptr>& quads,
const CvSize& pattern_size);
109 const std::vector<CvCBQuad::Ptr>& output_quads,
const CvSize& pattern_size,
110 std::vector<CvPoint2D32f>& out_corners);
120 IplConvKernel* kernel_cross, IplConvKernel* kernel_rect,
121 IplConvKernel* kernel_diag1, IplConvKernel* kernel_diag2,
122 IplConvKernel* kernel_horz, IplConvKernel* kernel_vert);
124 #endif // MRPT_HAS_OPENCV
void mrLabelQuadGroup(std::vector< CvCBQuad::Ptr > &quad_group, const CvSize &pattern_size, bool firstRun)
void quadListMakeUnique(std::vector< CvCBQuad::Ptr > &quads)
int myQuads2Points(const std::vector< CvCBQuad::Ptr > &output_quads, const CvSize &pattern_size, std::vector< CvPoint2D32f > &out_corners)
int cvFindChessboardCorners3(const mrpt::img::CImage &img_, CvSize pattern_size, std::vector< CvPoint2D32f > &out_corners)
bool do_special_dilation(mrpt::img::CImage &thresh_img, const int dilations, IplConvKernel *kernel_cross, IplConvKernel *kernel_rect, IplConvKernel *kernel_diag1, IplConvKernel *kernel_diag2, IplConvKernel *kernel_horz, IplConvKernel *kernel_vert)
int icvGenerateQuads(std::vector< CvCBQuad::Ptr > &quads, std::vector< CvCBCorner::Ptr > &corners, const mrpt::img::CImage &img, int flags, int dilation, bool firstRun)
void icvCleanFoundConnectedQuads(std::vector< CvCBQuad::Ptr > &quads, const CvSize &pattern_size)
int mrAugmentBestRun(std::vector< CvCBQuad::Ptr > &new_quads, int new_dilation, std::vector< CvCBQuad::Ptr > &old_quads, int old_dilation)
bool find_chessboard_corners_multiple(const mrpt::img::CImage &img_, CvSize pattern_size, std::vector< std::vector< CvPoint2D32f >> &out_corners)
void icvFindConnectedQuads(std::vector< CvCBQuad::Ptr > &in_quads, std::vector< CvCBQuad::Ptr > &out_quad_group, const int group_idx, const int dilation)
void mrFindQuadNeighbors2(std::vector< CvCBQuad::Ptr > &quads, int dilation)
A class for storing images as grayscale or RGB bitmaps.