A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
#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 (const TFeatureID &ID) const |
| Get a reference to a Feature from its ID. | |
| CFeaturePtr | getByID (const TFeatureID &ID, int &out_idx) const |
| 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. | |
Methods that MUST be implemented by children classes of KDTreeCapable | |
| size_t | kdtree_get_point_count () const |
| Must return the number of data points. | |
| float | kdtree_get_pt (const size_t idx, int dim) const |
| Returns the dim'th component of the idx'th point in the class: | |
| float | kdtree_distance (const float *p1, const size_t idx_p2, size_t size) const |
| Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in the class: | |
| template<typename BBOX > | |
| bool | kdtree_get_bbox (BBOX &bb) const |
getFeature*() methods for template-based access to feature list | |
| float | getFeatureX (size_t i) const |
| float | getFeatureY (size_t i) const |
| TFeatureID | getFeatureID (size_t i) const |
| float | getFeatureResponse (size_t i) const |
| bool | isPointFeature (size_t i) const |
| float | getScale (size_t i) const |
| TFeatureTrackStatus | getTrackStatus (size_t i) |
| void | setFeatureX (size_t i, float x) |
| void | setFeatureXf (size_t i, float x) |
| void | setFeatureY (size_t i, float y) |
| void | setFeatureYf (size_t i, float y) |
| void | setFeatureID (size_t i, TFeatureID id) |
| void | setFeatureResponse (size_t i, float r) |
| void | setScale (size_t i, float s) |
| void | setTrackStatus (size_t i, TFeatureTrackStatus s) |
| void | mark_as_outdated () const |
Protected Types | |
| typedef std::vector< 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 |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| iterator | erase (const iterator it) |
| bool | empty () const |
| size_t | size () const |
| void | clear () |
| void | resize (size_t N) |
| void | push_back (const CFeaturePtr &f) |
| CFeaturePtr & | operator[] (const unsigned int index) |
| const CFeaturePtr & | operator[] (const unsigned int index) const |
Definition at line 280 of file CFeature.h.
| typedef TInternalFeatList::const_reverse_iterator mrpt::vision::CFeatureList::const_reverse_iterator |
Definition at line 283 of file CFeature.h.
Definition at line 279 of file CFeature.h.
| typedef TInternalFeatList::reverse_iterator mrpt::vision::CFeatureList::reverse_iterator |
Definition at line 282 of file CFeature.h.
typedef std::vector<CFeaturePtr> mrpt::vision::CFeatureList::TInternalFeatList [protected] |
Definition at line 232 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 285 of file CFeature.h.
Referenced by mrpt::vision::CGenericFeatureTracker::trackFeaturesNewList().
| const_iterator mrpt::vision::CFeatureList::begin | ( | ) | const [inline] |
Definition at line 287 of file CFeature.h.
| void mrpt::vision::CFeatureList::clear | ( | void | ) | [inline] |
Definition at line 300 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 297 of file CFeature.h.
| iterator mrpt::vision::CFeatureList::end | ( | ) | [inline] |
Definition at line 286 of file CFeature.h.
Referenced by mrpt::vision::CGenericFeatureTracker::trackFeaturesNewList().
| const_iterator mrpt::vision::CFeatureList::end | ( | ) | const [inline] |
Definition at line 288 of file CFeature.h.
Definition at line 295 of file CFeature.h.
| TFeatureType mrpt::vision::CFeatureList::get_type | ( | ) | const [inline] |
The type of the first feature in the list.
Definition at line 238 of file CFeature.h.
References empty(), mrpt::vision::featNotDefined, begin(), and get_type().
Referenced by get_type().
| CFeaturePtr mrpt::vision::CFeatureList::getByID | ( | const TFeatureID & | ID | ) | const |
Get a reference to a Feature from its ID.
| CFeaturePtr mrpt::vision::CFeatureList::getByID | ( | const TFeatureID & | ID, |
| int & | out_idx | ||
| ) | const |
| 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::getFeatureID | ( | size_t | i | ) | const [inline] |
Definition at line 347 of file CFeature.h.
| float mrpt::vision::CFeatureList::getFeatureResponse | ( | size_t | i | ) | const [inline] |
Definition at line 348 of file CFeature.h.
| float mrpt::vision::CFeatureList::getFeatureX | ( | size_t | i | ) | const [inline] |
Definition at line 345 of file CFeature.h.
| float mrpt::vision::CFeatureList::getFeatureY | ( | size_t | i | ) | const [inline] |
Definition at line 346 of file CFeature.h.
| TFeatureID mrpt::vision::CFeatureList::getMaxID | ( | ) | const |
Get the maximum ID into the list.
| float mrpt::vision::CFeatureList::getScale | ( | size_t | i | ) | const [inline] |
Definition at line 350 of file CFeature.h.
| TFeatureTrackStatus mrpt::vision::CFeatureList::getTrackStatus | ( | size_t | i | ) | [inline] |
Definition at line 351 of file CFeature.h.
| bool mrpt::vision::CFeatureList::isPointFeature | ( | size_t | i | ) | const [inline] |
Definition at line 349 of file CFeature.h.
| float mrpt::vision::CFeatureList::kdtree_distance | ( | const float * | p1, |
| const size_t | idx_p2, | ||
| size_t | size | ||
| ) | const [inline] |
Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in the class:
Definition at line 325 of file CFeature.h.
References ASSERTDEB_.
| bool mrpt::vision::CFeatureList::kdtree_get_bbox | ( | BBOX & | bb | ) | const [inline] |
Definition at line 338 of file CFeature.h.
| size_t mrpt::vision::CFeatureList::kdtree_get_point_count | ( | ) | const [inline] |
Must return the number of data points.
Definition at line 315 of file CFeature.h.
References mrpt::math::size().
| float mrpt::vision::CFeatureList::kdtree_get_pt | ( | const size_t | idx, |
| int | dim | ||
| ) | const [inline] |
Returns the dim'th component of the idx'th point in the class:
Definition at line 318 of file CFeature.h.
References ASSERTDEB_.
| void mrpt::vision::CFeatureList::loadFromTextFile | ( | const std::string & | fileName | ) |
Save feature list to a text file.
| void mrpt::vision::CFeatureList::mark_as_outdated | ( | ) | const [inline] |
Definition at line 363 of file CFeature.h.
| 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 275 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. |
| CFeaturePtr& mrpt::vision::CFeatureList::operator[] | ( | const unsigned int | index | ) | [inline] |
Definition at line 305 of file CFeature.h.
| const CFeaturePtr& mrpt::vision::CFeatureList::operator[] | ( | const unsigned int | index | ) | const [inline] |
Definition at line 306 of file CFeature.h.
| void mrpt::vision::CFeatureList::push_back | ( | const CFeaturePtr & | f | ) | [inline] |
Definition at line 303 of file CFeature.h.
| reverse_iterator mrpt::vision::CFeatureList::rbegin | ( | ) | [inline] |
Definition at line 290 of file CFeature.h.
| const_reverse_iterator mrpt::vision::CFeatureList::rbegin | ( | ) | const [inline] |
Definition at line 292 of file CFeature.h.
| reverse_iterator mrpt::vision::CFeatureList::rend | ( | ) | [inline] |
Definition at line 291 of file CFeature.h.
| const_reverse_iterator mrpt::vision::CFeatureList::rend | ( | ) | const [inline] |
Definition at line 293 of file CFeature.h.
| void mrpt::vision::CFeatureList::resize | ( | size_t | N | ) | [inline] |
Definition at line 301 of file CFeature.h.
| void mrpt::vision::CFeatureList::saveToTextFile | ( | const std::string & | fileName, |
| bool | APPEND = false |
||
| ) |
Save feature list to a text file.
| void mrpt::vision::CFeatureList::setFeatureID | ( | size_t | i, |
| TFeatureID | id | ||
| ) | [inline] |
Definition at line 358 of file CFeature.h.
| void mrpt::vision::CFeatureList::setFeatureResponse | ( | size_t | i, |
| float | r | ||
| ) | [inline] |
Definition at line 359 of file CFeature.h.
| void mrpt::vision::CFeatureList::setFeatureX | ( | size_t | i, |
| float | x | ||
| ) | [inline] |
Definition at line 353 of file CFeature.h.
| void mrpt::vision::CFeatureList::setFeatureXf | ( | size_t | i, |
| float | x | ||
| ) | [inline] |
Definition at line 354 of file CFeature.h.
| void mrpt::vision::CFeatureList::setFeatureY | ( | size_t | i, |
| float | y | ||
| ) | [inline] |
Definition at line 355 of file CFeature.h.
References Eigen::internal::y.
| void mrpt::vision::CFeatureList::setFeatureYf | ( | size_t | i, |
| float | y | ||
| ) | [inline] |
Definition at line 356 of file CFeature.h.
References Eigen::internal::y.
| void mrpt::vision::CFeatureList::setScale | ( | size_t | i, |
| float | s | ||
| ) | [inline] |
Definition at line 360 of file CFeature.h.
| void mrpt::vision::CFeatureList::setTrackStatus | ( | size_t | i, |
| TFeatureTrackStatus | s | ||
| ) | [inline] |
Definition at line 361 of file CFeature.h.
| size_t mrpt::vision::CFeatureList::size | ( | ) | const [inline] |
Definition at line 298 of file CFeature.h.
TInternalFeatList mrpt::vision::CFeatureList::m_feats [protected] |
The actual container with the list of features.
Definition at line 234 of file CFeature.h.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011 |