MRPT
1.9.9
|
A list of features.
Definition at line 492 of file CFeature.h.
#include <mrpt/vision/CFeature.h>
Public Member Functions | |
TKeyPointMethod | get_type () const |
The type of the first feature in the list. More... | |
void | saveToTextFile (const std::string &fileName) |
Save list of matched features to a text file. More... | |
void | getBothFeatureLists (CFeatureList &list1, CFeatureList &list2) |
Returns the matching features as two separate CFeatureLists. More... | |
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. More... | |
void | getMaxID (const TListIdx &idx, TFeatureID &firstListID, TFeatureID &secondListID) |
Returns the maximum ID of the features in the list. More... | |
void | updateMaxID (const TListIdx &idx) |
Updates the value of the maximum ID of the features in the matched list, i.e. More... | |
void | setLeftMaxID (const TFeatureID &leftID) |
Explicitly set the max IDs values to certain values. More... | |
void | setRightMaxID (const TFeatureID &rightID) |
void | setMaxIDs (const TFeatureID &leftID, const TFeatureID &rightID) |
CMatchedFeatureList ()=default | |
virtual | ~CMatchedFeatureList ()=default |
Public Attributes | |
T | elements |
STL member. More... | |
Protected Attributes | |
TFeatureID | m_leftMaxID {0} |
TFeatureID | m_rightMaxID {0} |
|
default |
|
virtualdefault |
|
inline |
The type of the first feature in the list.
Definition at line 496 of file CFeature.h.
References mrpt::containers::begin(), mrpt::containers::empty(), and mrpt::vision::featNotDefined.
void CMatchedFeatureList::getBothFeatureLists | ( | CFeatureList & | list1, |
CFeatureList & | list2 | ||
) |
Returns the matching features as two separate CFeatureLists.
Definition at line 1235 of file CFeature.cpp.
References mrpt::containers::begin(), MRPT_END, MRPT_START, and mrpt::vision::CFeatureList::resize().
const CFeature * CMatchedFeatureList::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.
Definition at line 1184 of file CFeature.cpp.
References mrpt::containers::begin(), and mrpt::vision::firstList.
void CMatchedFeatureList::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.
Definition at line 1219 of file CFeature.cpp.
References ASSERT_, mrpt::vision::bothLists, mrpt::containers::empty(), mrpt::vision::firstList, MRPT_END, MRPT_START, and mrpt::vision::secondList.
Referenced by mrpt::vision::matchFeatures().
void CMatchedFeatureList::saveToTextFile | ( | const std::string & | fileName | ) |
Save list of matched features to a text file.
Definition at line 1162 of file CFeature.cpp.
References mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
|
inline |
Explicitly set the max IDs values to certain values.
Definition at line 523 of file CFeature.h.
References m_leftMaxID.
Referenced by mrpt::vision::matchFeatures(), and setMaxIDs().
|
inline |
Definition at line 528 of file CFeature.h.
References setLeftMaxID(), and setRightMaxID().
|
inline |
Definition at line 524 of file CFeature.h.
References m_rightMaxID.
Referenced by mrpt::vision::matchFeatures(), and setMaxIDs().
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.
Definition at line 1199 of file CFeature.cpp.
References mrpt::containers::begin(), mrpt::vision::bothLists, mrpt::vision::firstList, mrpt::keep_max(), MRPT_END, MRPT_START, and mrpt::vision::secondList.
|
inherited |
STL member.
|
protected |
Definition at line 538 of file CFeature.h.
Referenced by setLeftMaxID().
|
protected |
Definition at line 538 of file CFeature.h.
Referenced by setRightMaxID().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |