tframe Struct Reference
[Sparse point track structures]

A frame in the tracks structure. More...

#include <tracks.h>

Inheritance diagram for tframe:

Inheritance graph
[legend]
Collaboration diagram for tframe:

Collaboration graph
[legend]

List of all members.

Classes

struct  factory_t
 a frame factory, useful for deriving the class tframe. More...

Public Member Functions

 tframe (int w, int h, int bits)
 Construct a new frame.
virtual void append_to (tracks &track)
 insert the frame into a "tracks" structure.
virtual ~tframe ()
 overload this function to hanlde forgotten frames
bool has_point_in (float u, float v, float r)
 returns true if at least one point lies in the circle centered at (u,v) with radius r.

Public Attributes

bucket2d< tkeypointpoints
 Collection of tkeypoints.
mlist_elem< tframeframes
 Pointers to next and previous frame.


Detailed Description

A frame in the tracks structure.

A frame has a collection of tkeypoints. It also has pointers to previous and next frames. Other data must be stored in derived classes.

Definition at line 108 of file tracks.h.


Constructor & Destructor Documentation

tframe::tframe ( int  w,
int  h,
int  bits 
) [inline]

Construct a new frame.

The remaining arguments are those of bucket2d<>.

Definition at line 119 of file tracks.h.

virtual tframe::~tframe (  )  [inline, virtual]

overload this function to hanlde forgotten frames

Definition at line 125 of file tracks.h.


Member Function Documentation

void tframe::append_to ( tracks track  )  [virtual]

insert the frame into a "tracks" structure.

Reimplemented in pyr_frame.

Definition at line 75 of file tracks.cpp.

References tracks::frames, frames, MLIST_INSERT, mlist_elem< T >::next, and mlist_elem< T >::prev.

bool tframe::has_point_in ( float  u,
float  v,
float  r 
)

returns true if at least one point lies in the circle centered at (u,v) with radius r.

Definition at line 230 of file tracks.cpp.

References points, and bucket2d< T >::search().

Referenced by kpt_tracker::detect_keypoints().


Member Data Documentation

Pointers to next and previous frame.

Definition at line 115 of file tracks.h.

Referenced by append_to(), tracks::frame_iterator::operator++(), tracks::frame_iterator::operator--(), 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