Landmark class to take into account temporal info. More...
#include <Beobot/KeypointTracker.H>
Public Member Functions | |
KeypointTracker (const std::string &name="") | |
Constructor. | |
~KeypointTracker () | |
Destructor. | |
void | add (rutz::shared_ptr< Keypoint > kp, Point2D< int > offset, uint fNum) |
add a keypoint to the list | |
void | print () |
print the current list | |
const rutz::shared_ptr < Keypoint > & | getLastKeypoint () const |
get the last keypoints | |
const bool | hasKeypointInFrame (uint index) const |
do we have a keypoint from frame index | |
const rutz::shared_ptr < Keypoint > & | getKeypointInFrame (uint index) const |
get the keypoint from frame index | |
bool | isInactiveSince (uint fNum) |
Point2D< int > | getAbsLoc () |
get the top left corner location + the KP location | |
Iterators and access functions | |
The iterators iterate on our feature vector data only, while the other access functions can be used to access the other data. | |
typedef std::vector < rutz::shared_ptr< Keypoint > >::iterator | iterator |
standard iterator | |
typedef std::vector < rutz::shared_ptr< Keypoint > >::const_iterator | const_iterator |
const iterator | |
const std::string & | getName () const |
name getter | |
const std::vector < rutz::shared_ptr< Keypoint > > & | getKeypoints () const |
get all SIFT keypoints | |
uint | numKeypoints () const |
get number of SIFT keypoints | |
const_iterator | begin () const |
Returns a read-only iterator to the beginning of the keypoint list. | |
const_iterator | end () const |
Returns a read-only iterator to one-past-the-end of the keypoint list. | |
iterator | beginw () |
Returns a read-write iterator to the beginning of the keypoint list. | |
iterator | endw () |
Returns a read-write iterator to one-past-the-end of the keypoint list. |
Landmark class to take into account temporal info.
Definition at line 46 of file KeypointTracker.H.
const iterator
Definition at line 97 of file KeypointTracker.H.
standard iterator
Definition at line 94 of file KeypointTracker.H.
KeypointTracker::KeypointTracker | ( | const std::string & | name = "" |
) |
Constructor.
Definition at line 43 of file KeypointTracker.C.
KeypointTracker::~KeypointTracker | ( | ) |
Destructor.
Definition at line 52 of file KeypointTracker.C.
void KeypointTracker::add | ( | rutz::shared_ptr< Keypoint > | kp, | |
Point2D< int > | offset, | |||
uint | fNum | |||
) |
add a keypoint to the list
Definition at line 56 of file KeypointTracker.C.
KeypointTracker::const_iterator KeypointTracker::begin | ( | ) | const [inline] |
Returns a read-only iterator to the beginning of the keypoint list.
Definition at line 131 of file KeypointTracker.H.
KeypointTracker::iterator KeypointTracker::beginw | ( | ) | [inline] |
Returns a read-write iterator to the beginning of the keypoint list.
Definition at line 137 of file KeypointTracker.H.
KeypointTracker::const_iterator KeypointTracker::end | ( | ) | const [inline] |
Returns a read-only iterator to one-past-the-end of the keypoint list.
Definition at line 134 of file KeypointTracker.H.
KeypointTracker::iterator KeypointTracker::endw | ( | ) | [inline] |
Returns a read-write iterator to one-past-the-end of the keypoint list.
Definition at line 140 of file KeypointTracker.H.
Point2D< int > KeypointTracker::getAbsLoc | ( | ) |
get the top left corner location + the KP location
Definition at line 102 of file KeypointTracker.C.
References Point2D< T >::i.
const rutz::shared_ptr< Keypoint > & KeypointTracker::getKeypointInFrame | ( | uint | index | ) | const |
get the keypoint from frame index
Definition at line 71 of file KeypointTracker.C.
References ASSERT, and hasKeypointInFrame().
const std::vector< rutz::shared_ptr< Keypoint > > & KeypointTracker::getKeypoints | ( | ) | const [inline] |
get all SIFT keypoints
Definition at line 125 of file KeypointTracker.H.
const rutz::shared_ptr< Keypoint > & KeypointTracker::getLastKeypoint | ( | ) | const |
get the last keypoints
Definition at line 65 of file KeypointTracker.C.
const std::string & KeypointTracker::getName | ( | ) | const [inline] |
name getter
Definition at line 121 of file KeypointTracker.H.
const bool KeypointTracker::hasKeypointInFrame | ( | uint | index | ) | const |
do we have a keypoint from frame index
Definition at line 84 of file KeypointTracker.C.
Referenced by getKeypointInFrame().
bool KeypointTracker::isInactiveSince | ( | uint | fNum | ) |
check to see if the tracker has been inactive since frame fNum
Definition at line 95 of file KeypointTracker.C.
uint KeypointTracker::numKeypoints | ( | ) | const [inline] |
get number of SIFT keypoints
Definition at line 128 of file KeypointTracker.H.
void KeypointTracker::print | ( | ) |
print the current list
Definition at line 113 of file KeypointTracker.C.