OpenCV453
公開メンバ関数 | 全メンバ一覧
cv::ccalib::CustomPattern クラス

cv::Algorithmを継承しています。

公開メンバ関数

bool create (InputArray pattern, const Size2f boardSize, OutputArray output=noArray())
 
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 isInitialized ()
 
void getPatternPoints (std::vector< KeyPoint > &original_points)
 
double getPixelSize ()
 
bool setFeatureDetector (Ptr< FeatureDetector > featureDetector)
 
bool setDescriptorExtractor (Ptr< DescriptorExtractor > extractor)
 
bool setDescriptorMatcher (Ptr< DescriptorMatcher > matcher)
 
Ptr< FeatureDetectorgetFeatureDetector ()
 
Ptr< DescriptorExtractorgetDescriptorExtractor ()
 
Ptr< DescriptorMatchergetDescriptorMatcher ()
 
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 findRt (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE)
 
bool findRt (InputArray image, InputArray cameraMatrix, InputArray distCoeffs, InputOutputArray rvec, InputOutputArray tvec, bool useExtrinsicGuess=false, 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)
 
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)
 
void drawOrientation (InputOutputArray image, InputArray tvec, InputArray rvec, InputArray cameraMatrix, InputArray distCoeffs, double axis_length=3, int axis_width=2)
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

関数詳解

◆ 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) 
)

Calls the calirateCamera function with the same inputs.

◆ drawOrientation()

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 -> projected over the image position of the edges of the pattern.

◆ findRt()

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

Uses solvePnP to find the rotation and translation of the pattern with respect to the camera frame.

◆ findRtRANSAC()

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 
)

◆ getPatternPoints()

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

Returns a vector<Point> of the original points.

◆ getPixelSize()

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

Get the pixel size of the pattern


このクラス詳解は次のファイルから抽出されました: