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

Matches descriptors and selects k best matches for each descriptor. UUID: 7823dac8-1597-41cf-bdef-59aa22f3d40a More...

#include <SolARDescriptorMatcherKNNOpencv.h>

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

Public Member Functions

 SolARDescriptorMatcherKNNOpencv ()
 SolARDescriptorMatcherKNNOpencv constructor.
 
 ~SolARDescriptorMatcherKNNOpencv () override
 SolARDescriptorMatcherKNNOpencv destructor.
 
FrameworkReturnCode match (const SRef< SolAR::datastructure::DescriptorBuffer > descriptors1, const SRef< SolAR::datastructure::DescriptorBuffer > descriptors2, std::vector< SolAR::datastructure::DescriptorMatch > &matches) override
 Match two sets of descriptors together. More...
 
org::bcom::xpcf::XPCFErrorCode onConfigured () override final
 
void unloadComponent () override
 

Detailed Description

Matches descriptors and selects k best matches for each descriptor. UUID: 7823dac8-1597-41cf-bdef-59aa22f3d40a

Properties
distanceRatio distance ratio used to keep good matches.
Several matches can correspond to a given keypoint of the first image. The first match with the best score is always retained.
But here, we can also retain the second match if its distance or score is greater than the score of the best match * m_distanceRatio.
type: float; range : [0..MAX FLOAT]; default: default: 0.75f

Member Function Documentation

◆ match()

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARDescriptorMatcherKNNOpencv::match ( const SRef< SolAR::datastructure::DescriptorBuffer >  descriptors1,
const SRef< SolAR::datastructure::DescriptorBuffer >  descriptors2,
std::vector< SolAR::datastructure::DescriptorMatch > &  matches 
)
override

Match two sets of descriptors together.

Parameters
[in]descriptors1The first set of descriptors organized in a dedicated buffer structure.
[in]descriptors2The second set of descriptors organized in a dedicated buffer structure.
[out]matchesA vector of matches representing pairs of indices relatively to the first and second set of descriptors.
Returns
FrameworkReturnCode::SUCCESS if matching succeed, else FrameworkReturnCode::_ERROR

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