#include <ClosestImagePointFinder.h>
Public Member Functions | |
ClosestImagePointFinder (const HomgInterestPointSet &corners) | |
Initialize to allow fast lookups of corners in the given set. | |
ClosestImagePointFinder (vcl_vector< vgl_homg_point_2d< double > > const &corners) | |
Initialize to allow fast lookups of corners in the given set. | |
ClosestImagePointFinder (const vcl_vector< HomgPoint2D > &corners) | |
~ClosestImagePointFinder () | |
void | get_all_within_search_region (double cx, double cy, double w, double h, vcl_vector< int > *out_indices) |
void | get_all_within_search_region (vgl_box_2d< double > const ®ion, vcl_vector< int > *out_indices) |
int | get_closest_within_region (double cx, double cy, double w, double h, int *out_index=0) |
int | get_closest_within_distance (double cx, double cy, double r, int *out_index=0) |
Returns number that were within range. | |
double | get_last_squared_distance () const |
int | get_last_num_candidates () const |
int | get_last_match_index () const |
double | get_last_x () const |
double | get_last_y () const |
Protected Member Functions | |
int | get_closest_within_region (double cx, double cy, double w, double h, int *out_index, double mindist_sq) |
Returns number that were within range. | |
Protected Attributes | |
vnl_vector< double > | px_ |
vnl_vector< double > | py_ |
vcl_multimap_double_int * | y2i_ |
double | last_d2_ |
int | last_inrange_ |
int | last_index_ |
Definition at line 29 of file ClosestImagePointFinder.h.
ClosestImagePointFinder::ClosestImagePointFinder | ( | const HomgInterestPointSet & | corners | ) |
Initialize to allow fast lookups of corners in the given set.
Definition at line 38 of file ClosestImagePointFinder.cxx.
ClosestImagePointFinder::ClosestImagePointFinder | ( | vcl_vector< vgl_homg_point_2d< double > > const & | corners | ) |
Initialize to allow fast lookups of corners in the given set.
Definition at line 54 of file ClosestImagePointFinder.cxx.
ClosestImagePointFinder::ClosestImagePointFinder | ( | const vcl_vector< HomgPoint2D > & | corners | ) |
ClosestImagePointFinder::~ClosestImagePointFinder | ( | ) |
Definition at line 66 of file ClosestImagePointFinder.cxx.
void ClosestImagePointFinder::get_all_within_search_region | ( | double | cx, |
double | cy, | ||
double | w, | ||
double | h, | ||
vcl_vector< int > * | out_indices | ||
) |
Definition at line 71 of file ClosestImagePointFinder.cxx.
void ClosestImagePointFinder::get_all_within_search_region | ( | vgl_box_2d< double > const & | region, |
vcl_vector< int > * | out_indices | ||
) |
Definition at line 76 of file ClosestImagePointFinder.cxx.
int ClosestImagePointFinder::get_closest_within_distance | ( | double | cx, |
double | cy, | ||
double | r, | ||
int * | out_index = 0 |
||
) |
Returns number that were within range.
Definition at line 140 of file ClosestImagePointFinder.cxx.
int ClosestImagePointFinder::get_closest_within_region | ( | double | cx, |
double | cy, | ||
double | w, | ||
double | h, | ||
int * | out_index = 0 |
||
) |
Definition at line 133 of file ClosestImagePointFinder.cxx.
int ClosestImagePointFinder::get_closest_within_region | ( | double | cx, |
double | cy, | ||
double | w, | ||
double | h, | ||
int * | out_index, | ||
double | mindist_sq | ||
) | [protected] |
Returns number that were within range.
Definition at line 96 of file ClosestImagePointFinder.cxx.
int ClosestImagePointFinder::get_last_match_index | ( | ) | const [inline] |
Definition at line 52 of file ClosestImagePointFinder.h.
int ClosestImagePointFinder::get_last_num_candidates | ( | ) | const [inline] |
Definition at line 51 of file ClosestImagePointFinder.h.
double ClosestImagePointFinder::get_last_squared_distance | ( | ) | const [inline] |
Definition at line 50 of file ClosestImagePointFinder.h.
double ClosestImagePointFinder::get_last_x | ( | ) | const [inline] |
Definition at line 53 of file ClosestImagePointFinder.h.
double ClosestImagePointFinder::get_last_y | ( | ) | const [inline] |
Definition at line 54 of file ClosestImagePointFinder.h.
double ClosestImagePointFinder::last_d2_ [protected] |
Definition at line 64 of file ClosestImagePointFinder.h.
int ClosestImagePointFinder::last_index_ [protected] |
Definition at line 66 of file ClosestImagePointFinder.h.
int ClosestImagePointFinder::last_inrange_ [protected] |
Definition at line 65 of file ClosestImagePointFinder.h.
vnl_vector<double> ClosestImagePointFinder::px_ [protected] |
Definition at line 61 of file ClosestImagePointFinder.h.
vnl_vector<double> ClosestImagePointFinder::py_ [protected] |
Definition at line 62 of file ClosestImagePointFinder.h.
vcl_multimap_double_int* ClosestImagePointFinder::y2i_ [protected] |
Definition at line 63 of file ClosestImagePointFinder.h.