OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
cv::ccalib::CustomPattern Class Reference

#include "ccalib.hpp"

Inheritance diagram for cv::ccalib::CustomPattern:
cv::Algorithm

Public Member Functions

 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 objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE)
 
bool findRt (InputArray image, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess=false, int flags=SOLVEPNP_ITERATIVE)
 
bool findRtRANSAC (InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray 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, OutputArray rvec, OutputArray 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 (OutputArray original_points)
 
double getPixelSize ()
 
bool isInitialized ()
 
bool setDescriptorExtractor (Ptr< DescriptorExtractor > extractor)
 
bool setDescriptorMatcher (Ptr< DescriptorMatcher > matcher)
 
bool setFeatureDetector (Ptr< FeatureDetector > featureDetector)
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage. More...
 
virtual void save (const String &filename) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file. More...
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String. More...
 
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node. More...
 

Constructor & Destructor Documentation

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

Member Function Documentation

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.

bool cv::ccalib::CustomPattern::create ( InputArray  pattern,
const Size2f  boardSize,
OutputArray  output = 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 -> projected over the image position of the edges of the pattern.

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() 
)
bool cv::ccalib::CustomPattern::findRt ( InputArray  objectPoints,
InputArray  imagePoints,
InputArray  cameraMatrix,
InputArray  distCoeffs,
OutputArray  rvec,
OutputArray  tvec,
bool  useExtrinsicGuess = false,
int  flags = SOLVEPNP_ITERATIVE 
)
bool cv::ccalib::CustomPattern::findRt ( InputArray  image,
InputArray  cameraMatrix,
InputArray  distCoeffs,
OutputArray  rvec,
OutputArray  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.

bool cv::ccalib::CustomPattern::findRtRANSAC ( InputArray  objectPoints,
InputArray  imagePoints,
InputArray  cameraMatrix,
InputArray  distCoeffs,
OutputArray  rvec,
OutputArray  tvec,
bool  useExtrinsicGuess = false,
int  iterationsCount = 100,
float  reprojectionError = 8.0,
int  minInliersCount = 100,
OutputArray  inliers = noArray(),
int  flags = SOLVEPNP_ITERATIVE 
)
bool cv::ccalib::CustomPattern::findRtRANSAC ( InputArray  image,
InputArray  cameraMatrix,
InputArray  distCoeffs,
OutputArray  rvec,
OutputArray  tvec,
bool  useExtrinsicGuess = false,
int  iterationsCount = 100,
float  reprojectionError = 8.0,
int  minInliersCount = 100,
OutputArray  inliers = noArray(),
int  flags = SOLVEPNP_ITERATIVE 
)
Ptr<DescriptorExtractor> cv::ccalib::CustomPattern::getDescriptorExtractor ( )
Ptr<DescriptorMatcher> cv::ccalib::CustomPattern::getDescriptorMatcher ( )
Ptr<FeatureDetector> cv::ccalib::CustomPattern::getFeatureDetector ( )
void cv::ccalib::CustomPattern::getPatternPoints ( OutputArray  original_points)

Returns a vector<Point> of the original points.

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

Get the pixel size of the pattern

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)

The documentation for this class was generated from the following file: