OpenCV 4.10.0
开源计算机视觉
|
#include <opencv2/ccalib.hpp>
公共成员函数 | |
CustomPattern () | |
virtual | ~CustomPattern () |
double | calibrate (InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags=0, TermCriteria criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON)) |
bool | create (InputArray pattern, const Size2f boardSize, OutputArray output=noArray()) |
void | drawOrientation (InputOutputArray image, InputArray tvec, InputArray rvec, InputArray cameraMatrix, InputArray distCoeffs, double axis_length=3, int axis_width=2) |
bool | findPattern (InputArray image, OutputArray matched_features, OutputArray pattern_points, const double ratio=0.7, const double proj_error=8.0, const bool refine_position=false, OutputArray out=noArray(), OutputArray H=noArray(), OutputArray pattern_corners=noArray()) |
bool | findRt (InputArray image, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE) |
bool | findRt (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE) |
bool | findRtRANSAC (InputArray image, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, int iterationsCount=100, float reprojectionError=8.0, int minInliersCount=100, OutputArray inliers=noArray(), int flags=SOLVEPNP_ITERATIVE) |
bool | findRtRANSAC (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, int iterationsCount=100, float reprojectionError=8.0, int minInliersCount=100, OutputArray inliers=noArray(), int flags=SOLVEPNP_ITERATIVE) |
Ptr< DescriptorExtractor > | getDescriptorExtractor () |
Ptr< DescriptorMatcher > | getDescriptorMatcher () |
Ptr< FeatureDetector > | getFeatureDetector () |
void | getPatternPoints (std::vector< KeyPoint > &original_points) |
double | getPixelSize () |
bool | isInitialized () |
bool | setDescriptorExtractor (Ptr< DescriptorExtractor > extractor) |
bool | setDescriptorMatcher (Ptr< DescriptorMatcher > matcher) |
bool | setFeatureDetector (Ptr< FeatureDetector > featureDetector) |
从cv::Algorithm继承的公共成员函数 | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
清空算法状态。 | |
virtual bool | empty () const |
如果Algorithm为空(例如,在最开始或读取失败之后),则返回 true。 | |
virtual String | getDefaultName () const |
virtual void | read (const FileNode &fn) |
从文件存储中读取算法参数。 | |
virtual void | save (const String &filename) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
virtual void | write (FileStorage &fs) const |
将算法参数存储在文件存储中。 | |
void | write (FileStorage &fs, const String &name) const |
其他继承成员 | |
从 cv::Algorithm 继承的静态公开成员函数 | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
从文件加载算法。 | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
从字符串加载算法。 | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
从文件节点读取算法。 | |
从 cv::Algorithm 继承的保护成员函数 | |
void | writeFormat (FileStorage &fs) const |
cv::ccalib::CustomPattern::CustomPattern | ( | ) |
|
virtual |
double cv::ccalib::CustomPattern::calibrate | ( | InputArrayOfArrays | objectPoints, |
InputArrayOfArrays | imagePoints, | ||
Size | imageSize, | ||
InputOutputArray | cameraMatrix, | ||
InputOutputArray | distCoeffs, | ||
OutputArrayOfArrays | rvecs, | ||
OutputArrayOfArrays | tvecs, | ||
int | flags = 0 , |
||
TermCriteria | 阈值 = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON) |
||
) |
使用相同的输入调用 calirateCamera 函数。
bool cv::ccalib::CustomPattern::create | ( | InputArray | pattern, |
const Size2f | boardSize, | ||
OutputArray | 输出 = noArray() |
||
) |
void cv::ccalib::CustomPattern::drawOrientation | ( | InputOutputArray | image, |
InputArray | tvec, | ||
InputArray | rvec, | ||
InputArray | cameraMatrix, | ||
InputArray | distCoeffs, | ||
double | axis_length = 3 , |
||
int | axis_width = 2 |
||
) |
pattern_corners
◆ findPattern() | ( | InputArray | image, |
OutputArray | bool cv::ccalib::CustomPattern::findPattern, | ||
OutputArray | matched_features, | ||
pattern_points | const double | ||
pattern_points | ratio = 0.7 , |
||
proj_error = 8.0 , |
const bool | ||
OutputArray | refine_position = false , |
||
OutputArray | out = noArray() , |
||
OutputArray | H = noArray() , |
||
) |
noArray()
◆ findRt() [1/2] | ( | InputArray | image, |
InputArray | cameraMatrix, | ||
InputArray | distCoeffs, | ||
InputOutputArray | rvec, | ||
InputOutputArray | tvec, | ||
bool | bool cv::ccalib::CustomPattern::findRt | ||
int | useExtrinsicGuess = false , |
||
) |
flags = SOLVEPNP_ITERATIVE
◆ findRt() [1/2] | ( | InputArray | objectPoints, |
InputArray | imagePoints, | ||
InputArray | cameraMatrix, | ||
InputArray | distCoeffs, | ||
InputOutputArray | rvec, | ||
InputOutputArray | tvec, | ||
bool | bool cv::ccalib::CustomPattern::findRt | ||
int | useExtrinsicGuess = false , |
||
) |
◆ findRtRANSAC() [1/2] | ( | InputArray | image, |
InputArray | cameraMatrix, | ||
InputArray | distCoeffs, | ||
InputOutputArray | rvec, | ||
InputOutputArray | tvec, | ||
bool | bool cv::ccalib::CustomPattern::findRt | ||
int | bool cv::ccalib::CustomPattern::findRtRANSAC | ||
iterationsCount = 100 , |
float | ||
int | reprojectionError = 8.0 , |
||
OutputArray | minInliersCount = 100 , |
||
int | useExtrinsicGuess = false , |
||
) |
◆ findRtRANSAC() [1/2] | ( | InputArray | objectPoints, |
InputArray | imagePoints, | ||
InputArray | cameraMatrix, | ||
InputArray | distCoeffs, | ||
InputOutputArray | rvec, | ||
InputOutputArray | tvec, | ||
bool | bool cv::ccalib::CustomPattern::findRt | ||
int | bool cv::ccalib::CustomPattern::findRtRANSAC | ||
iterationsCount = 100 , |
float | ||
int | reprojectionError = 8.0 , |
||
OutputArray | minInliersCount = 100 , |
||
int | useExtrinsicGuess = false , |
||
) |
◆ getDescriptorExtractor() | ( | ) |
◆ getDescriptorMatcher() | ( | ) |
◆ getFeatureDetector() | ( | ) |
original_points
◆ getPixelSize() | ( | ) |
获取图案的像素大小
bool cv::ccalib::CustomPattern::isInitialized | ( | ) |
bool cv::ccalib::CustomPattern::setDescriptorExtractor | ( | Ptr< DescriptorExtractor > | extractor | ) |
bool cv::ccalib::CustomPattern::setDescriptorMatcher | ( | Ptr< DescriptorMatcher > | matcher | ) |
bool cv::ccalib::CustomPattern::setFeatureDetector | ( | Ptr< FeatureDetector > | featureDetector | ) |