A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
Definition at line 272 of file CFeature.h.
#include <mrpt/vision/CFeature.h>

Public Member Functions | |
| TFeatureType | get_type () const |
| The type of the first feature in the list. | |
| void | saveToTextFile (const std::string &fileName, bool APPEND=false) |
| Save feature list to a text file. | |
| void | loadFromTextFile (const std::string &fileName) |
| Save feature list to a text file. | |
| void | copyListFrom (const CFeatureList &otherList) |
| Copies the content of another CFeatureList inside this one. | |
| TFeatureID | getMaxID () const |
| Get the maximum ID into the list. | |
| CFeaturePtr | getByID (TFeatureID ID) const |
| Get a reference to a Feature from its ID. | |
| void | getByMultiIDs (const vector< TFeatureID > &IDs, vector< CFeaturePtr > &out, vector< int > &outIndex) const |
| Get a vector of references to a subset of features from their IDs. | |
| CFeaturePtr | nearest (const float x, const float y, double &max_dist) const |
| Get a reference to the nearest feature to the a given 2D point (version returning distance to closest feature in "max_dist") | |
| CFeatureList () | |
| Constructor. | |
| virtual | ~CFeatureList () |
| Virtual destructor. | |
| void | mark_kdtree_as_outdated () const |
| Call this when the list of features has been modified so the KD-tree is marked as outdated. | |
Virtual methods that MUST be implemented by children classes of KDTreeCapable | |
| virtual size_t | kdtree_get_point_count () const |
| Must return the number of data points. | |
| virtual void | kdtree_fill_point_data (ANNpointArray &data, const int nDims) const |
| Must fill out the data points in "data", such as the i'th point will be stored in (data[i][0],...,data[i][nDims-1]). | |
Protected Types | |
| typedef std::deque< CFeaturePtr > | TInternalFeatList |
Protected Attributes | |
| TInternalFeatList | m_feats |
| The actual container with the list of features. | |
Method and datatypes to emulate a STL container | |
| typedef TInternalFeatList::iterator | iterator |
| typedef TInternalFeatList::const_iterator | const_iterator |
| typedef TInternalFeatList::reverse_iterator | reverse_iterator |
| typedef TInternalFeatList::const_reverse_iterator | const_reverse_iterator |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | erase (const iterator it) |
| bool | empty () const |
| size_t | size () const |
| void | clear () |
| void | resize (size_t N) |
| void | push_front (const CFeaturePtr &f) |
| void | push_back (const CFeaturePtr &f) |
| CFeaturePtr & | operator[] (const unsigned int index) |
| const CFeaturePtr & | operator[] (const unsigned int index) const |
Definition at line 322 of file CFeature.h.
| typedef TInternalFeatList::const_reverse_iterator mrpt::vision::CFeatureList::const_reverse_iterator |
Definition at line 325 of file CFeature.h.
Definition at line 321 of file CFeature.h.
| typedef TInternalFeatList::reverse_iterator mrpt::vision::CFeatureList::reverse_iterator |
Definition at line 324 of file CFeature.h.
typedef std::deque<CFeaturePtr> mrpt::vision::CFeatureList::TInternalFeatList [protected] |
Definition at line 275 of file CFeature.h.
| mrpt::vision::CFeatureList::CFeatureList | ( | ) |
Constructor.
| virtual mrpt::vision::CFeatureList::~CFeatureList | ( | ) | [virtual] |
Virtual destructor.
| iterator mrpt::vision::CFeatureList::begin | ( | ) | [inline] |
Definition at line 327 of file CFeature.h.
Referenced by mrpt::vision::CGenericFeatureTracker::trackFeaturesNewList().
| const_iterator mrpt::vision::CFeatureList::begin | ( | ) | const [inline] |
Definition at line 329 of file CFeature.h.
| void mrpt::vision::CFeatureList::clear | ( | void | ) | [inline] |
Definition at line 337 of file CFeature.h.
| void mrpt::vision::CFeatureList::copyListFrom | ( | const CFeatureList & | otherList ) |
Copies the content of another CFeatureList inside this one.
The inner features are also copied.
| bool mrpt::vision::CFeatureList::empty | ( | ) | const [inline] |
Definition at line 334 of file CFeature.h.
| iterator mrpt::vision::CFeatureList::end | ( | ) | [inline] |
Definition at line 328 of file CFeature.h.
Referenced by mrpt::vision::CGenericFeatureTracker::trackFeaturesNewList().
| const_iterator mrpt::vision::CFeatureList::end | ( | ) | const [inline] |
Definition at line 330 of file CFeature.h.
Definition at line 332 of file CFeature.h.
| TFeatureType mrpt::vision::CFeatureList::get_type | ( | ) | const [inline] |
The type of the first feature in the list.
Definition at line 281 of file CFeature.h.
References begin(), empty(), mrpt::vision::featNotDefined, and get_type().
Referenced by get_type().
| CFeaturePtr mrpt::vision::CFeatureList::getByID | ( | TFeatureID | ID ) | const |
Get a reference to a Feature from its ID.
| void mrpt::vision::CFeatureList::getByMultiIDs | ( | const vector< TFeatureID > & | IDs, |
| vector< CFeaturePtr > & | out, | ||
| vector< int > & | outIndex | ||
| ) | const |
Get a vector of references to a subset of features from their IDs.
| TFeatureID mrpt::vision::CFeatureList::getMaxID | ( | ) | const |
Get the maximum ID into the list.
| virtual void mrpt::vision::CFeatureList::kdtree_fill_point_data | ( | ANNpointArray & | data, |
| const int | nDims | ||
| ) | const [virtual] |
Must fill out the data points in "data", such as the i'th point will be stored in (data[i][0],...,data[i][nDims-1]).
Implements mrpt::math::KDTreeCapable.
| virtual size_t mrpt::vision::CFeatureList::kdtree_get_point_count | ( | ) | const [inline, virtual] |
Must return the number of data points.
Implements mrpt::math::KDTreeCapable.
Definition at line 352 of file CFeature.h.
References mrpt::math::size().
| void mrpt::vision::CFeatureList::loadFromTextFile | ( | const std::string & | fileName ) |
Save feature list to a text file.
| void mrpt::vision::CFeatureList::mark_kdtree_as_outdated | ( | ) | const [inline] |
Call this when the list of features has been modified so the KD-tree is marked as outdated.
Definition at line 317 of file CFeature.h.
| CFeaturePtr mrpt::vision::CFeatureList::nearest | ( | const float | x, |
| const float | y, | ||
| double & | max_dist | ||
| ) | const |
Get a reference to the nearest feature to the a given 2D point (version returning distance to closest feature in "max_dist")
| x | [IN] The query point x-coordinate |
| y | [IN] The query point y-coordinate |
| max_dist | [IN/OUT] At input: The maximum distance to search for. At output: The actual distance to the feature. |
| const CFeaturePtr& mrpt::vision::CFeatureList::operator[] | ( | const unsigned int | index ) | const [inline] |
Definition at line 344 of file CFeature.h.
| CFeaturePtr& mrpt::vision::CFeatureList::operator[] | ( | const unsigned int | index ) | [inline] |
Definition at line 343 of file CFeature.h.
| void mrpt::vision::CFeatureList::push_back | ( | const CFeaturePtr & | f ) | [inline] |
Definition at line 341 of file CFeature.h.
| void mrpt::vision::CFeatureList::push_front | ( | const CFeaturePtr & | f ) | [inline] |
Definition at line 340 of file CFeature.h.
| void mrpt::vision::CFeatureList::resize | ( | size_t | N ) | [inline] |
Definition at line 338 of file CFeature.h.
| void mrpt::vision::CFeatureList::saveToTextFile | ( | const std::string & | fileName, |
| bool | APPEND = false |
||
| ) |
Save feature list to a text file.
| size_t mrpt::vision::CFeatureList::size | ( | ) | const [inline] |
Definition at line 335 of file CFeature.h.
TInternalFeatList mrpt::vision::CFeatureList::m_feats [protected] |
The actual container with the list of features.
Definition at line 277 of file CFeature.h.
| Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |