Solar
Public Member Functions | List of all members
SolAR::api::features::IDescriptorMatcherGeometric Class Referenceabstract

Matches two sets of descriptors based on geometric constraints. UUID: 2ed445a6-32f3-44a1-9dc5-3b0cfec778db Just implement the first interface, the second interface is implemented in ADescriptorMatcherGeometric. More...

#include <IDescriptorMatcherGeometric.h>

Inheritance diagram for SolAR::api::features::IDescriptorMatcherGeometric:
Inheritance graph
[legend]
Collaboration diagram for SolAR::api::features::IDescriptorMatcherGeometric:
Collaboration graph
[legend]

Public Member Functions

 IDescriptorMatcherGeometric ()=default
 IDescriptorMatcherGeometric default constructor.
 
virtual ~IDescriptorMatcherGeometric ()=default
 IDescriptorMatcherGeometric default destructor.
 
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={})=0
 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={})=0
 Match two sets of descriptors from two frames based on epipolar constraint. More...
 

Detailed Description

Matches two sets of descriptors based on geometric constraints. UUID: 2ed445a6-32f3-44a1-9dc5-3b0cfec778db Just implement the first interface, the second interface is implemented in ADescriptorMatcherGeometric.

Member Function Documentation

◆ match() [1/2]

virtual FrameworkReturnCode SolAR::api::features::IDescriptorMatcherGeometric::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 = {} 
)
pure virtual

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

Implemented in SolAR::base::features::ADescriptorMatcherGeometric.

◆ match() [2/2]

virtual FrameworkReturnCode SolAR::api::features::IDescriptorMatcherGeometric::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 = {} 
)
pure virtual

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

Implemented in SolAR::base::features::ADescriptorMatcherGeometric.


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