MRPT
1.9.9
|
#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::img::CImage &img_, CvSize pattern_size, std::vector< CvPoint2D32f > &out_corners) |
bool | find_chessboard_corners_multiple (const mrpt::img::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::img::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::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) |
#define VIS 0 |
Definition at line 25 of file checkerboard_ocamcalib_detector.h.
int cvFindChessboardCorners3 | ( | const mrpt::img::CImage & | img_, |
CvSize | pattern_size, | ||
std::vector< CvPoint2D32f > & | out_corners | ||
) |
Definition at line 246 of file checkerboard_ocamcalib_detector.cpp.
References CH_GRAY, do_special_dilation(), mrpt::img::FAST_REF_OR_CONVERT_TO_GRAY, mrpt::format(), icvCleanFoundConnectedQuads(), icvFindConnectedQuads(), icvGenerateQuads(), mrAugmentBestRun(), mrFindQuadNeighbors2(), mrLabelQuadGroup(), myQuads2Points(), and mrpt::system::os::sprintf().
Referenced by mrpt::vision::findChessboardCorners().
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 | ||
) |
Definition at line 82 of file checkerboard_ocamcalib_detector.cpp.
References mrpt::img::CImage::getAs().
Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().
bool find_chessboard_corners_multiple | ( | const mrpt::img::CImage & | img_, |
CvSize | pattern_size, | ||
std::vector< std::vector< CvPoint2D32f >> & | out_corners | ||
) |
Definition at line 34 of file checkerboard_multiple_detector.cpp.
References CH_GRAY, mrpt::img::CImage::colorImage(), mrpt::img::CCanvas::cross(), mrpt::math::distance(), do_special_dilation(), mrpt::img::FAST_REF_OR_CONVERT_TO_GRAY, mrpt::format(), icvCleanFoundConnectedQuads(), icvFindConnectedQuads(), icvGenerateQuads(), mrpt::keep_min(), mrpt::math::kmeanspp(), mrFindQuadNeighbors2(), mrLabelQuadGroup(), myQuads2Points(), quadListMakeUnique(), and win.
Referenced by mrpt::vision::findMultipleChessboardsCorners().
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().
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().
int icvGenerateQuads | ( | std::vector< CvCBQuad::Ptr > & | quads, |
std::vector< CvCBCorner::Ptr > & | corners, | ||
const mrpt::img::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().
int mrAugmentBestRun | ( | std::vector< CvCBQuad::Ptr > & | new_quads, |
int | new_dilation, | ||
std::vector< CvCBQuad::Ptr > & | old_quads, | ||
int | old_dilation | ||
) |
Definition at line 1850 of file checkerboard_ocamcalib_detector.cpp.
References mrpt::obs::gnss::a1, mrpt::obs::gnss::a2, mrpt::obs::gnss::a3, mrpt::obs::gnss::b1, mrpt::obs::gnss::b2, and mrpt::obs::gnss::b3.
Referenced by cvFindChessboardCorners3().
void mrFindQuadNeighbors2 | ( | std::vector< CvCBQuad::Ptr > & | quads, |
int | dilation | ||
) |
Definition at line 1589 of file checkerboard_ocamcalib_detector.cpp.
References mrpt::obs::gnss::a1, mrpt::obs::gnss::a2, mrpt::obs::gnss::a3, mrpt::obs::gnss::b1, mrpt::obs::gnss::b2, and mrpt::obs::gnss::b3.
Referenced by cvFindChessboardCorners3(), and find_chessboard_corners_multiple().
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().
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().
void quadListMakeUnique | ( | std::vector< CvCBQuad::Ptr > & | quads | ) |
Definition at line 2605 of file checkerboard_ocamcalib_detector.cpp.
Referenced by find_chessboard_corners_multiple().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |