tkeypoint Struct Reference
[Sparse point track structures]

A point integrated in the "tracks" structure. More...

#include <tracks.h>

Inheritance diagram for tkeypoint:

Inheritance graph
[legend]
Collaboration diagram for tkeypoint:

Collaboration graph
[legend]

List of all members.

Classes

struct  factory_t
 A tkeypoint factory. More...

Public Member Functions

 tkeypoint ()
 tkeypoint (const tkeypoint &a)
void set (tframe *f, float u, float v)
 act as a constructor.
const tkeypointoperator= (const tkeypoint &a)
int track_length ()
 return the length of the track the point belongs to.
bool track_is_longer (int l)
 return true if the point has been matched on at least 'l' frames.
virtual void dispose ()
 overload this function to handle forgotten keypoints. Allows memory recycling.
virtual ~tkeypoint ()
void unlink ()
 Remove the point from the tracks structure.

Public Attributes

mlist_elem< tkeypointpoints_in_frame
 doubly linked list to other points in the same frame
mlist_elem< tkeypointmatches
 pointers to corresponding points on next and previous frames.
tframeframe
 Pointer to the frame the point belongs to. Can't be null.
ttracktrack
 A pointer to the track the point belongs to.


Detailed Description

A point integrated in the "tracks" structure.

Definition at line 52 of file tracks.h.


Constructor & Destructor Documentation

tkeypoint::tkeypoint (  )  [inline]

Definition at line 68 of file tracks.h.

References frame, and track.

Referenced by tkeypoint::factory_t::create().

tkeypoint::tkeypoint ( const tkeypoint a  )  [inline]

Definition at line 69 of file tracks.h.

tkeypoint::~tkeypoint (  )  [virtual]

Definition at line 106 of file tracks.cpp.

References unlink().


Member Function Documentation

virtual void tkeypoint::dispose (  )  [inline, virtual]

overload this function to handle forgotten keypoints. Allows memory recycling.

Reimplemented in pyr_keypoint, and vobj_keypoint.

Definition at line 83 of file tracks.h.

Referenced by tracks::remove_point_track(), and tracks::remove_track_tail().

const tkeypoint & tkeypoint::operator= ( const tkeypoint a  ) 

Definition at line 25 of file tracks.cpp.

References frame, matches, mlist_elem< T >::next, points_in_frame, mlist_elem< T >::prev, and track.

void tkeypoint::set ( tframe f,
float  u,
float  v 
)

act as a constructor.

Before calling set(), make sur the point is unlink()ed.

Definition at line 81 of file tracks.cpp.

References bucket2d< T >::add_pt(), frame, tframe::points, track, and unlink().

int tkeypoint::track_length (  ) 

return the length of the track the point belongs to.

Definition at line 110 of file tracks.cpp.

References matches, and mlist_elem< T >::prev.

Referenced by vobj_tracker::incremental_learning(), and kpt_tracker::track_ncclk().

void tkeypoint::unlink (  ) 

Remove the point from the tracks structure.

This method removes the point from the match linked list and from the frame point list.

Definition at line 91 of file tracks.cpp.

References tracks::all_tracks, ttrack::db, ttrack::factory_t::destroy(), frame, ttrack::keypoints, matches, MLIST_RM, ttrack::point_removed(), tframe::points, RLIST_RM, bucket2d< T >::rm_pt(), track, and tracks::ttrack_factory.

Referenced by pyr_keypoint::dispose(), set(), and ~tkeypoint().


Member Data Documentation

doubly linked list to other points in the same frame

Definition at line 55 of file tracks.h.

Referenced by operator=().

A pointer to the track the point belongs to.

The pointer is null if it has never been matched.

Definition at line 66 of file tracks.h.

Referenced by get_correspondences(), visual_object::get_correspondences_std(), operator=(), VSView::segment_scene(), set(), tracks::set_match(), tkeypoint(), track_is_longer(), kpt_tracker::track_ncclk(), unlink(), tracks::unset_match(), and update_query_with_frame().


The documentation for this struct was generated from the following files:

Generated on Tue Mar 30 15:53:26 2010 for Polyora by  doxygen 1.5.9