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

Matches descriptors based on a Hamming distance and selects the best matches of each descriptor. UUID: d67ce1ba-04a5-43bc-a0f8-e0c3653b32c9 More...

#include <SolARDescriptorMatcherHammingBruteForceOpencv.h>

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

Public Member Functions

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 based on a Hamming distance and selects the best matches of each descriptor. UUID: d67ce1ba-04a5-43bc-a0f8-e0c3653b32c9

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 next matches if their distances or scores is greater than the score of the best match * m_distanceRatio.
type: float; range : [0..MAX FLOAT]; default: 0.75f

Member Function Documentation

◆ match()

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARDescriptorMatcherHammingBruteForceOpencv::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: