Solar
|
Matches descriptors and selects k best matches for each descriptor. UUID: 7823dac8-1597-41cf-bdef-59aa22f3d40a
More...
#include <SolARDescriptorMatcherKNNOpencv.h>
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 |
Matches descriptors and selects k best matches for each descriptor. UUID: 7823dac8-1597-41cf-bdef-59aa22f3d40a
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 |
|
override |
Match two sets of descriptors together.
[in] | descriptors1 | The first set of descriptors organized in a dedicated buffer structure. |
[in] | descriptors2 | The second set of descriptors organized in a dedicated buffer structure. |
[out] | matches | A vector of matches representing pairs of indices relatively to the first and second set of descriptors. |