SaDVIO
Public Member Functions | List of all members
isae::Line2DFeatureMatcher Class Reference

Class for matching 2D line features. More...

#include <Line2DFeatureMatcher.h>

Inheritance diagram for isae::Line2DFeatureMatcher:
Inheritance graph
[legend]
Collaboration diagram for isae::Line2DFeatureMatcher:
Collaboration graph
[legend]

Public Member Functions

 Line2DFeatureMatcher ()
 
 Line2DFeatureMatcher (std::shared_ptr< AFeatureDetector > detector)
 
uint match (std::vector< std::shared_ptr< AFeature >> &features1, std::vector< std::shared_ptr< AFeature >> &features2, std::vector< std::shared_ptr< AFeature >> &features_init, vec_match &matches, vec_match &matches_with_ldmks, int searchAreaWidth=51, int searchAreaHeight=51) override
 Match features between two sets of features. More...
 
uint ldmk_match (std::shared_ptr< ImageSensor > &sensor1, std::vector< std::shared_ptr< ALandmark >> &ldmks, int searchAreaWidth=51, int searchAreaHeight=51) override
 Match landmarks with features in a given sensor. More...
 
- Public Member Functions inherited from isae::AFeatureMatcher
 AFeatureMatcher ()
 
 AFeatureMatcher (std::shared_ptr< AFeatureDetector > detector)
 

Additional Inherited Members

- Protected Member Functions inherited from isae::AFeatureMatcher
vec_match filterMatches (vec_feat_matches &matches12, vec_feat_matches &matches21, vec_feat_matches_scores &all_scores12, vec_feat_matches_scores &all_scores21)
 Filter matches based on the first and second best match scores. More...
 
- Protected Attributes inherited from isae::AFeatureMatcher
std::shared_ptr< AFeatureDetector_detector
 feature detector for distance measurement More...
 
double _first_second_match_score_ratio
 ratio between the first and second best match score to consider a match valid More...
 
std::string _feature_label
 label for the features being matched More...
 

Detailed Description

Class for matching 2D line features.

Constructor & Destructor Documentation

◆ Line2DFeatureMatcher() [1/2]

isae::Line2DFeatureMatcher::Line2DFeatureMatcher ( )
inline

◆ Line2DFeatureMatcher() [2/2]

isae::Line2DFeatureMatcher::Line2DFeatureMatcher ( std::shared_ptr< AFeatureDetector detector)
inline

Member Function Documentation

◆ ldmk_match()

uint isae::Line2DFeatureMatcher::ldmk_match ( std::shared_ptr< ImageSensor > &  sensor1,
std::vector< std::shared_ptr< ALandmark >> &  ldmks,
int  searchAreaWidth = 51,
int  searchAreaHeight = 51 
)
overridevirtual

Match landmarks with features in a given sensor.

Parameters
sensor1The sensor in which to match landmarks.
ldmksVector of landmarks to match.
searchAreaWidthWidth of the search area for matching (default is 51).
searchAreaHeightHeight of the search area for matching (default is 51).
Returns
The number of matched landmarks.

Reimplemented from isae::AFeatureMatcher.

◆ match()

uint isae::Line2DFeatureMatcher::match ( std::vector< std::shared_ptr< AFeature >> &  features1,
std::vector< std::shared_ptr< AFeature >> &  features2,
std::vector< std::shared_ptr< AFeature >> &  features_init,
vec_match matches,
vec_match matches_with_ldmks,
int  searchAreaWidth = 51,
int  searchAreaHeight = 51 
)
overridevirtual

Match features between two sets of features.

Parameters
features1First set of features.
features2Second set of features.
features_initInitial set of features for matching.
matchesOutput vector to store matched features.
matches_with_ldmksOutput vector to store matched features with landmarks.
searchAreaWidthWidth of the search area for matching (default is 51).
searchAreaHeightHeight of the search area for matching (default is 51).
Returns
The number of matched features.

Reimplemented from isae::AFeatureMatcher.


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