#include <tracks.h>
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< tkeypoint > | points |
Collection of tkeypoints. | |
mlist_elem< tframe > | frames |
Pointers to next and previous frame. |
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.
tframe::tframe | ( | int | w, | |
int | h, | |||
int | bits | |||
) | [inline] |
virtual tframe::~tframe | ( | ) | [inline, virtual] |
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().
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().
Collection of tkeypoints.
the bucked2d<> structure allows fast localized random access.
Definition at line 112 of file tracks.h.
Referenced by visual_object::add_frame(), vobj_frame::find_closest_match(), get_correspondences(), visual_object::get_correspondences_std(), pic_randomizer::group_ids(), has_point_in(), vobj_tracker::incremental_learning(), init_query_with_frame(), main(), query_frame(), tracks::remove_empty_frames(), tracks::remove_frame(), tracks::remove_unmatched_tracks(), vobj_tracker::remove_visible_objects_from_db(), pic_randomizer::save_keypoints(), VSView::segment_scene(), tkeypoint::set(), kpt_tracker::track_ncclk(), kpt_tracker::traverse_tree(), tkeypoint::unlink(), and update_query_with_frame().