Solar
Public Member Functions | List of all members
SolAR::base::features::ADescriptorMatcherGeometric Class Reference
Inheritance diagram for SolAR::base::features::ADescriptorMatcherGeometric:
Inheritance graph
[legend]
Collaboration diagram for SolAR::base::features::ADescriptorMatcherGeometric:
Collaboration graph
[legend]

Public Member Functions

 ADescriptorMatcherGeometric (std::map< std::string, std::string > componentInfosMap)
 ADescriptorMatcherGeometric constructor.
 
virtual FrameworkReturnCode match (const SRef< SolAR::datastructure::DescriptorBuffer > descriptors1, const SRef< SolAR::datastructure::DescriptorBuffer > descriptors2, const std::vector< SolAR::datastructure::Keypoint > &undistortedKeypoints1, const std::vector< SolAR::datastructure::Keypoint > &undistortedKeypoints2, const SolAR::datastructure::Transform3Df &pose1, const SolAR::datastructure::Transform3Df &pose2, const SolAR::datastructure::CameraParameters &camParams, std::vector< SolAR::datastructure::DescriptorMatch > &matches, const std::vector< uint32_t > &mask={}) override
 Match two sets of descriptors from two frames based on epipolar constraint. More...
 
virtual FrameworkReturnCode match (const SRef< SolAR::datastructure::Frame > frame1, const SRef< SolAR::datastructure::Frame > frame2, const SolAR::datastructure::CameraParameters &camParams, std::vector< SolAR::datastructure::DescriptorMatch > &matches, const std::vector< uint32_t > &mask={}) override
 Match two sets of descriptors from two frames based on epipolar constraint. More...
 
- Public Member Functions inherited from SolAR::api::features::IDescriptorMatcherGeometric
 IDescriptorMatcherGeometric ()=default
 IDescriptorMatcherGeometric default constructor.
 
virtual ~IDescriptorMatcherGeometric ()=default
 IDescriptorMatcherGeometric default destructor.
 

Member Function Documentation

◆ match() [1/2]

virtual FrameworkReturnCode SolAR::base::features::ADescriptorMatcherGeometric::match ( const SRef< SolAR::datastructure::DescriptorBuffer descriptors1,
const SRef< SolAR::datastructure::DescriptorBuffer descriptors2,
const std::vector< SolAR::datastructure::Keypoint > &  undistortedKeypoints1,
const std::vector< SolAR::datastructure::Keypoint > &  undistortedKeypoints2,
const SolAR::datastructure::Transform3Df pose1,
const SolAR::datastructure::Transform3Df pose2,
const SolAR::datastructure::CameraParameters camParams,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
const std::vector< uint32_t > &  mask = {} 
)
inlineoverridevirtual

Match two sets of descriptors from two frames based on epipolar constraint.

Parameters
[in]descriptors1The first set of descriptors.
[in]descriptors2The second set of descriptors.
[in]undistortedKeypoints1The first set of undistorted keypoints.
[in]undistortedKeypoints2The second set of undistorted keypoints.
[in]pose1The first pose.
[in]pose2The second pose.
[in]camParamsThe intrinsic parameters of the camera.
[out]matchesA vector of matches representing pairs of indices relatively to the first and second set of descriptors.
[in]maskThe indices of descriptors in the first frame are used for matching to the second frame. If it is empty then all will be used.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::features::IDescriptorMatcherGeometric.

◆ match() [2/2]

FrameworkReturnCode SolAR::base::features::ADescriptorMatcherGeometric::match ( const SRef< SolAR::datastructure::Frame frame1,
const SRef< SolAR::datastructure::Frame frame2,
const SolAR::datastructure::CameraParameters camParams,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
const std::vector< uint32_t > &  mask = {} 
)
overridevirtual

Match two sets of descriptors from two frames based on epipolar constraint.

Parameters
[in]frame1The first frame containing descriptors and undistorted keypoints.
[in]frame2The second frame containing descriptors and undistorted keypoints.
[in]camParamsThe intrinsic parameters of the camera.
[out]matchesA vector of matches representing pairs of indices relatively to the first and second set of descriptors.
[in]maskThe indices of descriptors in the first frame are used for matching to the second frame. If it is empty then all will be used.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::features::IDescriptorMatcherGeometric.


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