Solar
Public Member Functions | List of all members
SolAR::MODULES::OPENCV::SolARHomographyEstimationOpencv Class Reference

Estimates the homography between two images from their matching keypoints. UUID: fb9dac20-2a44-44b2-aa42-2871eec31427 More...

#include <SolARHomographyEstimationOpencv.h>

Inheritance diagram for SolAR::MODULES::OPENCV::SolARHomographyEstimationOpencv:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::OPENCV::SolARHomographyEstimationOpencv:
Collaboration graph
[legend]

Public Member Functions

api::solver::pose::Transform2DFinder::RetCode find (const std::vector< datastructure::Point2Df > &srcPoints, const std::vector< datastructure::Point2Df > &targetPoints, datastructure::Transform2Df &homography) override
 Computes an homography transformation from a set of source points and target points. [in] srcPoints: set of source points. [in] targetPints: set of target points. [out] homography: 3x3 homography matrice transformation. More...
 
void unloadComponent () override final
 

Detailed Description

Estimates the homography between two images from their matching keypoints. UUID: fb9dac20-2a44-44b2-aa42-2871eec31427

Properties
ransacReprojThreshold Here we are using the RANSAC to remove outlier. That is if:

\[ \left|| dstPoints_i - convertPointHomogenous \left( H * srcPoints_i \right) \right|| > ransacReprojThreshold \]


then the point i is considered an outlier. If srcPoints and dstPoints are measured in pixels, it usually makes sense to set this parameter somewhere in the range of 1 to 10.
type: double; range : [0..MAX DOUBLE]; default: 8

Member Function Documentation

◆ find()

api::solver::pose::Transform2DFinder::RetCode SolAR::MODULES::OPENCV::SolARHomographyEstimationOpencv::find ( const std::vector< datastructure::Point2Df > &  srcPoints,
const std::vector< datastructure::Point2Df > &  targetPoints,
datastructure::Transform2Df &  homography 
)
override

Computes an homography transformation from a set of source points and target points. [in] srcPoints: set of source points. [in] targetPints: set of target points. [out] homography: 3x3 homography matrice transformation.

Returns
Transform2DFinder::RetCode::TRANSFORM2D_ESTIMATION_OK if succed.

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