#include <bucket2d.h>
Classes | |
class | iterator |
Public Member Functions | |
bucket2d () | |
bucket2d (unsigned width, unsigned height, unsigned size_bits) | |
virtual | ~bucket2d () |
void | setup (unsigned width, unsigned height, unsigned size_bits) |
void | add_pt (T *p) |
void | clear () |
void | rm_pt (T *p) |
void | move_pt (T *p, float u, float v) |
iterator | search (float u, float v, float r) |
iterator | begin () |
T * | closest_point (float u, float v, float max_dist) |
unsigned | size () const |
Protected Member Functions | |
unsigned | idxu (unsigned u) |
unsigned | idxu (int u) |
unsigned | idxv (unsigned v) |
unsigned | idxv (int v) |
unsigned | idx (unsigned u, unsigned v) |
unsigned | idx (int u, int v) |
unsigned | idx (float u, float v) |
Protected Attributes | |
unsigned | size_bits |
unsigned | buckets_max_u |
unsigned | buckets_max_v |
T ** | buckets |
unsigned | nb_elem |
The template argument T takes any class that contain a member points_in_frame such as the one in the example below:
class bucket_elem { float u, v; mlist_elem<bucket_elem> points_in_frame; };
Definition at line 43 of file bucket2d.h.
Definition at line 46 of file bucket2d.h.
bucket2d< T >::bucket2d | ( | unsigned | width, | |
unsigned | height, | |||
unsigned | size_bits | |||
) | [inline] |
Definition at line 47 of file bucket2d.h.
void bucket2d< T >::add_pt | ( | T * | p | ) | [inline] |
Definition at line 52 of file bucket2d.h.
Referenced by pic_randomizer::group_ids(), and tkeypoint::set().
Definition at line 87 of file bucket2d.h.
Referenced by visual_object::add_frame(), get_correspondences(), visual_object::get_correspondences_std(), pic_randomizer::group_ids(), vobj_tracker::incremental_learning(), init_query_with_frame(), main(), query_frame(), tracks::remove_frame(), tracks::remove_unmatched_tracks(), vobj_tracker::remove_visible_objects_from_db(), pic_randomizer::save_keypoints(), VSView::segment_scene(), kpt_tracker::track_ncclk(), kpt_tracker::traverse_tree(), and update_query_with_frame().
void bucket2d< T >::clear | ( | ) | [inline] |
Definition at line 144 of file bucket2d.h.
References bucket2d< T >::buckets, bucket2d< T >::buckets_max_u, bucket2d< T >::buckets_max_v, and bucket2d< T >::nb_elem.
T * bucket2d< T >::closest_point | ( | float | u, | |
float | v, | |||
float | max_dist | |||
) | [inline] |
Definition at line 210 of file bucket2d.h.
References bucket2d< T >::iterator::end(), and bucket2d< T >::search().
Referenced by kpt_tracker::track_ncclk().
unsigned bucket2d< T >::idx | ( | float | u, | |
float | v | |||
) | [inline, protected] |
unsigned bucket2d< T >::idx | ( | int | u, | |
int | v | |||
) | [inline, protected] |
Definition at line 116 of file bucket2d.h.
unsigned bucket2d< T >::idx | ( | unsigned | u, | |
unsigned | v | |||
) | [inline, protected] |
Definition at line 115 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::add_pt(), bucket2d< tkeypoint >::move_pt(), and bucket2d< tkeypoint >::rm_pt().
unsigned bucket2d< T >::idxu | ( | int | u | ) | [inline, protected] |
unsigned bucket2d< T >::idxu | ( | unsigned | u | ) | [inline, protected] |
Definition at line 99 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::idx(), and bucket2d< T >::iterator::iterator().
unsigned bucket2d< T >::idxv | ( | int | v | ) | [inline, protected] |
Definition at line 111 of file bucket2d.h.
unsigned bucket2d< T >::idxv | ( | unsigned | v | ) | [inline, protected] |
Definition at line 106 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::idx(), bucket2d< tkeypoint >::idxv(), and bucket2d< T >::iterator::iterator().
void bucket2d< T >::move_pt | ( | T * | p, | |
float | u, | |||
float | v | |||
) | [inline] |
void bucket2d< T >::rm_pt | ( | T * | p | ) | [inline] |
Definition at line 56 of file bucket2d.h.
Referenced by pic_randomizer::prune(), and tkeypoint::unlink().
Definition at line 86 of file bucket2d.h.
Referenced by bucket2d< T >::closest_point(), vobj_frame::find_closest_match(), tframe::has_point_in(), and kpt_tracker::track_ncclk().
void bucket2d< T >::setup | ( | unsigned | width, | |
unsigned | height, | |||
unsigned | size_bits | |||
) | [inline] |
Definition at line 127 of file bucket2d.h.
References bucket2d< T >::buckets, bucket2d< T >::buckets_max_u, bucket2d< T >::buckets_max_v, and bucket2d< T >::nb_elem.
Referenced by bucket2d< tkeypoint >::bucket2d().
unsigned bucket2d< T >::size | ( | ) | const [inline] |
Definition at line 90 of file bucket2d.h.
Referenced by get_correspondences(), visual_object::get_correspondences_std(), pic_randomizer::prune(), tracks::remove_empty_frames(), and tracks::remove_frame().
Definition at line 96 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::add_pt(), bucket2d< T >::clear(), bucket2d< T >::iterator::iterator(), bucket2d< tkeypoint >::move_pt(), bucket2d< T >::iterator::next(), bucket2d< tkeypoint >::rm_pt(), bucket2d< T >::setup(), and bucket2d< T >::~bucket2d().
unsigned bucket2d< T >::buckets_max_u [protected] |
Definition at line 94 of file bucket2d.h.
Referenced by bucket2d< T >::clear(), bucket2d< tkeypoint >::idx(), bucket2d< tkeypoint >::idxu(), bucket2d< T >::iterator::iterator(), bucket2d< T >::iterator::next(), and bucket2d< T >::setup().
unsigned bucket2d< T >::buckets_max_v [protected] |
Definition at line 94 of file bucket2d.h.
Referenced by bucket2d< T >::clear(), bucket2d< tkeypoint >::idxv(), bucket2d< T >::iterator::iterator(), bucket2d< T >::iterator::next(), and bucket2d< T >::setup().
Definition at line 97 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::add_pt(), bucket2d< T >::clear(), bucket2d< tkeypoint >::rm_pt(), bucket2d< T >::setup(), and bucket2d< tkeypoint >::size().
Definition at line 93 of file bucket2d.h.
Referenced by bucket2d< tkeypoint >::idxu(), and bucket2d< tkeypoint >::idxv().