class mrpt::vision::CMatchedFeatureList
A list of features.
#include <mrpt/vision/CFeature.h> class CMatchedFeatureList: public std::deque< std::pair< CFeature, CFeature > > { public: // fields T elements; // construction CMatchedFeatureList(); // methods TKeyPointMethod get_type() const; void saveToTextFile(const std::string& fileName); void getBothFeatureLists(CFeatureList& list1, CFeatureList& list2); const CFeature* getByID(const TFeatureID& ID, const TListIdx& idx); void getMaxID(const TListIdx& idx, TFeatureID& firstListID, TFeatureID& secondListID); void updateMaxID(const TListIdx& idx); void setLeftMaxID(const TFeatureID& leftID); void setRightMaxID(const TFeatureID& rightID); void setMaxIDs( const TFeatureID& leftID, const TFeatureID& rightID ); };
Fields
T elements
STL member.
Methods
TKeyPointMethod get_type() const
The type of the first feature in the list.
void saveToTextFile(const std::string& fileName)
Save list of matched features to a text file.
void getBothFeatureLists(CFeatureList& list1, CFeatureList& list2)
Returns the matching features as two separate CFeatureLists.
const CFeature* getByID(const TFeatureID& ID, const TListIdx& idx)
Returns a smart pointer to the feature with the provided ID or a empty one if not found.
void getMaxID(const TListIdx& idx, TFeatureID& firstListID, TFeatureID& secondListID)
Returns the maximum ID of the features in the list.
If the max ID has been already set up, this method just returns it. Otherwise, this method finds, stores and returns it.
void updateMaxID(const TListIdx& idx)
Updates the value of the maximum ID of the features in the matched list, i.e.
it explicitly searches for the max ID and updates the member variables.
void setLeftMaxID(const TFeatureID& leftID)
Explicitly set the max IDs values to certain values.