Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes | Protected Attributes
mrpt::vision::CMatchedFeatureList Class Reference

Detailed Description

A list of features.

Definition at line 503 of file CFeature.h.

#include <mrpt/vision/CFeature.h>

Inheritance diagram for mrpt::vision::CMatchedFeatureList:
Inheritance graph

Public Member Functions

TFeatureType 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...
 
CFeature::Ptr 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 ()
 Constructor. More...
 
virtual ~CMatchedFeatureList ()
 Virtual destructor. More...
 

Public Attributes

elements
 STL member. More...
 

Protected Attributes

TFeatureID m_leftMaxID
 
TFeatureID m_rightMaxID
 

Constructor & Destructor Documentation

◆ CMatchedFeatureList()

CMatchedFeatureList::CMatchedFeatureList ( )

Constructor.

Definition at line 1347 of file CFeature.cpp.

◆ ~CMatchedFeatureList()

CMatchedFeatureList::~CMatchedFeatureList ( )
virtual

Virtual destructor.

Definition at line 1351 of file CFeature.cpp.

Member Function Documentation

◆ get_type()

TFeatureType mrpt::vision::CMatchedFeatureList::get_type ( ) const
inline

The type of the first feature in the list.

Definition at line 510 of file CFeature.h.

◆ getBothFeatureLists()

void CMatchedFeatureList::getBothFeatureLists ( CFeatureList list1,
CFeatureList list2 
)

Returns the matching features as two separate CFeatureLists.

Definition at line 1429 of file CFeature.cpp.

References begin(), MRPT_END, MRPT_START, and mrpt::vision::CFeatureList::resize().

Referenced by mrpt::vision::matchMultiResolutionFeatures().

◆ getByID()

CFeature::Ptr 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 1377 of file CFeature.cpp.

References begin(), and mrpt::vision::firstList.

◆ getMaxID()

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 1413 of file CFeature.cpp.

References ASSERT_, mrpt::vision::bothLists, empty(), mrpt::vision::firstList, m_leftMaxID, m_rightMaxID, MRPT_END, MRPT_START, mrpt::vision::secondList, and updateMaxID().

Referenced by mrpt::vision::matchFeatures().

◆ saveToTextFile()

void CMatchedFeatureList::saveToTextFile ( const std::string fileName)

Save list of matched features to a text file.

Definition at line 1355 of file CFeature.cpp.

References begin(), mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().

◆ setLeftMaxID()

void mrpt::vision::CMatchedFeatureList::setLeftMaxID ( const TFeatureID leftID)
inline

Explicitly set the max IDs values to certain values.

Definition at line 537 of file CFeature.h.

Referenced by mrpt::vision::matchFeatures().

◆ setMaxIDs()

void mrpt::vision::CMatchedFeatureList::setMaxIDs ( const TFeatureID leftID,
const TFeatureID rightID 
)
inline

Definition at line 542 of file CFeature.h.

◆ setRightMaxID()

void mrpt::vision::CMatchedFeatureList::setRightMaxID ( const TFeatureID rightID)
inline

Definition at line 538 of file CFeature.h.

Referenced by mrpt::vision::matchFeatures().

◆ updateMaxID()

void CMatchedFeatureList::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.

Definition at line 1392 of file CFeature.cpp.

References begin(), mrpt::vision::bothLists, mrpt::vision::firstList, mrpt::keep_max(), m_leftMaxID, m_rightMaxID, MRPT_END, MRPT_START, and mrpt::vision::secondList.

Referenced by getMaxID().

Member Data Documentation

◆ elements

T std::deque< T >::elements
inherited

STL member.

◆ m_leftMaxID

TFeatureID mrpt::vision::CMatchedFeatureList::m_leftMaxID
protected

Definition at line 555 of file CFeature.h.

Referenced by getMaxID(), and updateMaxID().

◆ m_rightMaxID

TFeatureID mrpt::vision::CMatchedFeatureList::m_rightMaxID
protected

Definition at line 555 of file CFeature.h.

Referenced by getMaxID(), and updateMaxID().




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST