Image Component Library (ICL)
|
RANSAC-based pose estimation. More...
#include <RansacBasedPoseEstimator.h>
Classes | |
struct | Result |
Public Member Functions | |
RansacBasedPoseEstimator (const geom::Camera &camera, int iterations=200, int minPoints=4, float maxErr=5, float minPointsForGoodModel=12) | |
~RansacBasedPoseEstimator () | |
void | setIterations (int iterations) |
void | setMinPoints (int minPoints) |
void | setMaxError (float maxError) |
void | setMinPointsForGoodModel (float f) |
Result | fit (const std::vector< utils::Point32f > &modelPoints, const std::vector< utils::Point32f > &imagePoints) |
fit from planar target | |
Result | fit (const std::vector< geom::Vec > &modelPoints, const std::vector< utils::Point32f > &imagePoints) |
fit from non-planar target | |
std::vector< float > | fit_coplanar (const std::vector< std::vector< float > > &pts) |
internal utility method | |
icl64f | err_coplanar (const std::vector< float > &m, const std::vector< float > &p) |
internal utility method | |
Private Attributes | |
Data * | m_data |
internal data handling |
RANSAC-based pose estimation.
icl::geom::RansacBasedPoseEstimator::RansacBasedPoseEstimator | ( | const geom::Camera & | camera, |
int | iterations = 200 , |
||
int | minPoints = 4 , |
||
float | maxErr = 5 , |
||
float | minPointsForGoodModel = 12 |
||
) |
icl64f icl::geom::RansacBasedPoseEstimator::err_coplanar | ( | const std::vector< float > & | m, |
const std::vector< float > & | p | ||
) |
internal utility method
Result icl::geom::RansacBasedPoseEstimator::fit | ( | const std::vector< utils::Point32f > & | modelPoints, |
const std::vector< utils::Point32f > & | imagePoints | ||
) |
fit from planar target
Result icl::geom::RansacBasedPoseEstimator::fit | ( | const std::vector< geom::Vec > & | modelPoints, |
const std::vector< utils::Point32f > & | imagePoints | ||
) |
fit from non-planar target
std::vector<float> icl::geom::RansacBasedPoseEstimator::fit_coplanar | ( | const std::vector< std::vector< float > > & | pts | ) |
internal utility method
void icl::geom::RansacBasedPoseEstimator::setIterations | ( | int | iterations | ) |
void icl::geom::RansacBasedPoseEstimator::setMaxError | ( | float | maxError | ) |
void icl::geom::RansacBasedPoseEstimator::setMinPoints | ( | int | minPoints | ) |
void icl::geom::RansacBasedPoseEstimator::setMinPointsForGoodModel | ( | float | f | ) |
Data* icl::geom::RansacBasedPoseEstimator::m_data [private] |
internal data handling
internal data pointer