OpenCV 4.11.0
开源计算机视觉
加载中…
搜索中…
无匹配项
cv::ccalib::CustomPattern 类参考

#include <opencv2/ccalib.hpp>

cv::ccalib::CustomPattern 的协作图

公共成员函数

 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< DescriptorExtractorgetDescriptorExtractor ()
 
Ptr< DescriptorMatchergetDescriptorMatcher ()
 
Ptr< FeatureDetectorgetFeatureDetector ()
 
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
 如果算法为空(例如,在开始时或读取失败后),则返回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< _Tpload (const String &filename, const String &objname=String())
 从文件中加载算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 从字符串加载算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 从文件节点读取算法。
 
- 从cv::Algorithm继承的保护成员函数
void writeFormat (FileStorage &fs) const
 

构造函数和析构函数文档

◆ CustomPattern()

cv::ccalib::CustomPattern::CustomPattern ( )

◆ ~CustomPattern()

virtual cv::ccalib::CustomPattern::~CustomPattern ( )
virtual

成员函数文档

◆ calibrate()

double cv::ccalib::CustomPattern::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) )

使用相同的输入调用calirateCamera函数。

◆ create()

bool cv::ccalib::CustomPattern::create ( InputArray pattern,
const Size2f boardSize,
OutputArray output = noArray() )
以下是此函数的调用图

◆ drawOrientation()

void cv::ccalib::CustomPattern::drawOrientation ( InputOutputArray image,
InputArray tvec,
InputArray rvec,
InputArray cameraMatrix,
InputArray distCoeffs,
double axis_length = 3,
int axis_width = 2 )

图案角点 -> 投影到图像上图案边缘的位置。

以下是此函数的调用图

◆ findPattern()

bool cv::ccalib::CustomPattern::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() )
以下是此函数的调用图

◆ findRt() [1/2]

bool cv::ccalib::CustomPattern::findRt ( InputArray image,
InputArray cameraMatrix,
InputArray distCoeffs,
InputOutputArray rvec,
InputOutputArray tvec,
bool useExtrinsicGuess = false,
int flags = SOLVEPNP_ITERATIVE )

使用solvePnP查找图案相对于相机坐标系的旋转和平移。

◆ findRt() [2/2]

bool cv::ccalib::CustomPattern::findRt ( InputArray objectPoints,
InputArray imagePoints,
InputArray cameraMatrix,
InputArray distCoeffs,
InputOutputArray rvec,
InputOutputArray tvec,
bool useExtrinsicGuess = false,
int flags = SOLVEPNP_ITERATIVE )

◆ findRtRANSAC() [1/2]

bool cv::ccalib::CustomPattern::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 )

使用solvePnPRansac()

以下是此函数的调用图

◆ findRtRANSAC() [2/2]

bool cv::ccalib::CustomPattern::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 )
以下是此函数的调用图

◆ getDescriptorExtractor()

Ptr< DescriptorExtractor > cv::ccalib::CustomPattern::getDescriptorExtractor ( )

◆ getDescriptorMatcher()

cv::ccalib::CustomPattern::getDescriptorMatcher Ptr< DescriptorMatcher > ( )

◆ getFeatureDetector()

cv::ccalib::CustomPattern::getFeatureDetector Ptr< FeatureDetector > ( )

◆ getPatternPoints()

void cv::ccalib::CustomPattern::getPatternPoints ( std::vector< KeyPoint > & original_points)

返回一个包含原始点的 vector<Point>。

◆ getPixelSize()

double cv::ccalib::CustomPattern::getPixelSize ( )

获取图案的像素大小。

◆ isInitialized()

bool cv::ccalib::CustomPattern::isInitialized ( )

◆ setDescriptorExtractor()

bool cv::ccalib::CustomPattern::setDescriptorExtractor ( Ptr< DescriptorExtractor > extractor)

◆ setDescriptorMatcher()

bool cv::ccalib::CustomPattern::setDescriptorMatcher ( Ptr< DescriptorMatcher > matcher)

◆ setFeatureDetector()

bool cv::ccalib::CustomPattern::setFeatureDetector ( Ptr< FeatureDetector > featureDetector)

此类的文档由以下文件生成: