Jafar
|
Class PlanLocalizer This class is able to compute the transformation matrix between two plan (images). More...
Class PlanLocalizer This class is able to compute the transformation matrix between two plan (images).
It uses either perspective transform or homography computing depending on the number of points.
Definition at line 31 of file planLocalizer.hpp.
#include <planLocalizer.hpp>
Public Member Functions | |
PlanLocalizer (const std::vector< cv::Point2f > &_sources, const std::vector< cv::Point2f > &_matches) | |
PlanLocalizer (const std::vector< jblas::vec2 > &_sources, const std::vector< jblas::vec2 > &_matches) | |
void | addPair (const cv::Point2f &_src, const cv::Point2f &_ref) |
void | addPair (const jblas::vec2 &_src, const jblas::vec2 &_ref) |
void | addPair (const float &u_src, const float &v_src, const float &u_ref, const float &v_ref) |
cv::Mat | getHomographyMatrix (int method=CV_RANSAC, size_t requiredMatch=8, int ransacReprojThreshold=3, double validityThreshold=0.) |
use RANSAC or LMEDS to find the homography matrix | |
jblas::mat33 | homography () const |
Private Member Functions | |
bool | isValidHomography (const cv::Mat &homography, const double &thresholdForDeterminant) |
checks if the given matrix is a valid homography note that 0 threshold always return true | |
Private Attributes | |
std::vector< cv::Point2f > | sources |
source image points | |
std::vector< cv::Point2f > | matches |
matching points in the second image | |
std::vector< uchar > | status |
usiness status of points | |
jblas::mat33 | m_homography |
homography matrix | |
double | validityThreshold |
Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1 |