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

Public Member Functions

 ADescriptorMatcherRegion (std::map< std::string, std::string > componentInfosMap)
 ADescriptorMatcherRegion constructor.
 
virtual FrameworkReturnCode match (const SRef< SolAR::datastructure::DescriptorBuffer > descriptors1, const SRef< SolAR::datastructure::DescriptorBuffer > descriptors2, const std::vector< SolAR::datastructure::Point2Df > &points2D1, const std::vector< SolAR::datastructure::Point2Df > &points2D2, std::vector< SolAR::datastructure::DescriptorMatch > &matches, const float radius=-1.f, const float matchingDistanceMax=-1.f) override
 Match each descriptor of the first set to descriptors in its searching region of the second set. More...
 
virtual FrameworkReturnCode match (const std::vector< SolAR::datastructure::Point2Df > &points2D, const std::vector< SRef< SolAR::datastructure::DescriptorBuffer > > &descriptors, const SRef< SolAR::datastructure::Frame > frame, std::vector< SolAR::datastructure::DescriptorMatch > &matches, const float radius=-1.f, const float matchingDistanceMax=-1.f) override
 Match each descriptor input to descriptors of a frame in a region. The searching space is a circle which is defined by a 2D center and a radius. More...
 
virtual FrameworkReturnCode match (const SRef< SolAR::datastructure::Frame > currentFrame, const SRef< SolAR::datastructure::Frame > lastFrame, std::vector< SolAR::datastructure::DescriptorMatch > &matches, const float radius=-1.f, const float matchingDistanceMax=-1.f) override
 Match each descriptor of the current frame to descriptors of the last frame in a region. The searching space is a circle which is defined by a 2D center and a radius. More...
 
- Public Member Functions inherited from SolAR::api::features::IDescriptorMatcherRegion
 IDescriptorMatcherRegion ()=default
 IDescriptorMatcherRegion default constructor.
 
virtual ~IDescriptorMatcherRegion ()=default
 IDescriptorMatcherRegion default destructor.
 

Member Function Documentation

◆ match() [1/3]

virtual FrameworkReturnCode SolAR::base::features::ADescriptorMatcherRegion::match ( const SRef< SolAR::datastructure::DescriptorBuffer descriptors1,
const SRef< SolAR::datastructure::DescriptorBuffer descriptors2,
const std::vector< SolAR::datastructure::Point2Df > &  points2D1,
const std::vector< SolAR::datastructure::Point2Df > &  points2D2,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
const float  radius = -1.f,
const float  matchingDistanceMax = -1.f 
)
inlineoverridevirtual

Match each descriptor of the first set to descriptors in its searching region of the second set.

Parameters
[in]descriptors1The first set of descriptors.
[in]descriptors2The second set of descriptors.
[in]points2D1The positions of the first set of descriptors.
[in]points2D2The positions of the second set of descriptors.
[out]matchesA vector of matches representing pairs of indices relatively to the first and second set of descriptors.
[in]radiusthe radius of search region around each keypoint of the first set.
[in]matchingDistanceMaxthe maximum distance to valid a match.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::features::IDescriptorMatcherRegion.

◆ match() [2/3]

FrameworkReturnCode SolAR::base::features::ADescriptorMatcherRegion::match ( const SRef< SolAR::datastructure::Frame currentFrame,
const SRef< SolAR::datastructure::Frame lastFrame,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
const float  radius = -1.f,
const float  matchingDistanceMax = -1.f 
)
overridevirtual

Match each descriptor of the current frame to descriptors of the last frame in a region. The searching space is a circle which is defined by a 2D center and a radius.

Parameters
[in]currentFramethe current frame.
[in]lastFramethe last frame.
[out]matchesa vector of matches between two frames representing pairs of keypoint indices relatively.
[in]radiusthe radius of search region around each keypoint of the last frame.
[in]matchingDistanceMaxthe maximum distance to valid a match.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::features::IDescriptorMatcherRegion.

◆ match() [3/3]

FrameworkReturnCode SolAR::base::features::ADescriptorMatcherRegion::match ( const std::vector< SolAR::datastructure::Point2Df > &  points2D,
const std::vector< SRef< SolAR::datastructure::DescriptorBuffer > > &  descriptors,
const SRef< SolAR::datastructure::Frame frame,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches,
const float  radius = -1.f,
const float  matchingDistanceMax = -1.f 
)
overridevirtual

Match each descriptor input to descriptors of a frame in a region. The searching space is a circle which is defined by a 2D center and a radius.

Parameters
[in]points2DThe center points of searching regions
[in]descriptorsThe descriptors organized in a vector of dedicated buffer structure.
[in]frameThe frame contains descriptors to match.
[out]matchesA vector of matches representing pairs of indices relatively to the first and second set of descriptors.
[in]radiusthe radius of search region around each keypoint of the first set.
[in]matchingDistanceMaxthe maximum distance to valid a match.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

Implements SolAR::api::features::IDescriptorMatcherRegion.


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