Class cv::ccalib::CustomPattern#

Collaboration diagram for cv::ccalib::CustomPattern:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Constructor & Destructor Documentation#

CustomPattern()#

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

~CustomPattern()#

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

Member Function Documentation#

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.

create()#

bool cv::ccalib::CustomPattern::create(
InputArray pattern,
const Size2f boardSize,
OutputArray output = noArray() )

Here is the call graph for this function:

cv::ccalib::CustomPattern::create Node1 cv::ccalib::CustomPattern ::create Node2 cv::noArray Node1->Node2

cv::ccalib::CustomPattern::create Node1 cv::ccalib::CustomPattern ::create Node2 cv::noArray Node1->Node2

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.

Here is the call graph for this function:

cv::ccalib::CustomPattern::drawOrientation Node1 cv::ccalib::CustomPattern ::drawOrientation Node2 cv::noArray Node1->Node2

cv::ccalib::CustomPattern::drawOrientation Node1 cv::ccalib::CustomPattern ::drawOrientation Node2 cv::noArray Node1->Node2

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

Here is the call graph for this function:

cv::ccalib::CustomPattern::findPattern Node1 cv::ccalib::CustomPattern ::findPattern Node2 cv::noArray Node1->Node2

cv::ccalib::CustomPattern::findPattern Node1 cv::ccalib::CustomPattern ::findPattern Node2 cv::noArray Node1->Node2

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.

findRt()#

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()#

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 )

Uses solvePnPRansac()

Here is the call graph for this function:

cv::ccalib::CustomPattern::findRtRANSAC Node1 cv::ccalib::CustomPattern ::findRtRANSAC Node2 cv::noArray Node1->Node2

cv::ccalib::CustomPattern::findRtRANSAC Node1 cv::ccalib::CustomPattern ::findRtRANSAC Node2 cv::noArray Node1->Node2

findRtRANSAC()#

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 )

Here is the call graph for this function:

cv::ccalib::CustomPattern::findRtRANSAC Node1 cv::ccalib::CustomPattern ::findRtRANSAC Node2 cv::noArray Node1->Node2

cv::ccalib::CustomPattern::findRtRANSAC Node1 cv::ccalib::CustomPattern ::findRtRANSAC Node2 cv::noArray Node1->Node2

getDescriptorExtractor()#

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

getDescriptorMatcher()#

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

getFeatureDetector()#

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

getPatternPoints()#

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

Returns a vector of the original points.

getPixelSize()#

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

Get the pixel size of the pattern

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)

check_matches()#

void cv::ccalib::CustomPattern::check_matches(
std::vector< Point2f > & matched,
const std::vector< Point2f > & pattern,
std::vector< DMatch > & good,
std::vector< Point3f > & pattern_3d,
const Mat & H )

findPatternPass()#

bool cv::ccalib::CustomPattern::findPatternPass(
const Mat & image,
std::vector< Point2f > & matched_features,
std::vector< Point3f > & pattern_points,
Mat & H,
std::vector< Point2f > & scene_corners,
const double pratio,
const double proj_error,
const bool refine_position = false,
const Mat & mask = Mat(),
OutputArray output = noArray() )

init()#

bool cv::ccalib::CustomPattern::init(
Mat & image,
const float pixel_size,
OutputArray output = noArray() )

keypoints2points()#

void cv::ccalib::CustomPattern::keypoints2points(
const std::vector< KeyPoint > & in,
std::vector< Point2f > & out )

refineKeypointsPos()#

void cv::ccalib::CustomPattern::refineKeypointsPos(
const Mat & img,
std::vector< KeyPoint > & kp )

refinePointsPos()#

void cv::ccalib::CustomPattern::refinePointsPos(
const Mat & img,
std::vector< Point2f > & p )

scaleFoundPoints()#

void cv::ccalib::CustomPattern::scaleFoundPoints(
const double squareSize,
const std::vector< KeyPoint > & corners,
std::vector< Point3f > & pts3d )

updateKeypointsPos()#

void cv::ccalib::CustomPattern::updateKeypointsPos(
std::vector< KeyPoint > & in,
const std::vector< Point2f > & new_pos )

Member Data Documentation#

descriptor#

Mat cv::ccalib::CustomPattern::descriptor

descriptorExtractor#

Ptr< DescriptorExtractor > cv::ccalib::CustomPattern::descriptorExtractor

descriptorMatcher#

Ptr< DescriptorMatcher > cv::ccalib::CustomPattern::descriptorMatcher

detector#

Ptr< FeatureDetector > cv::ccalib::CustomPattern::detector

img_roi#

Mat cv::ccalib::CustomPattern::img_roi

initialized#

bool cv::ccalib::CustomPattern::initialized

keypoints#

std::vector< KeyPoint > cv::ccalib::CustomPattern::keypoints

obj_corners#

std::vector< Point2f > cv::ccalib::CustomPattern::obj_corners

points3d#

std::vector< Point3f > cv::ccalib::CustomPattern::points3d

pxSize#

double cv::ccalib::CustomPattern::pxSize

Source file#

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