#include <vifa_line_cover.h>
Public Member Functions | |
vifa_line_cover () | |
Constructors. | |
vifa_line_cover (imp_line_sptr prototype_line, int index_dimension) | |
vifa_line_cover (vifa_line_cover const &c) | |
~vifa_line_cover () | |
Destructor. | |
void | InsertLine (imp_line_sptr l) |
Insert a line in the index. The line is inserted in each index bin it covers. | |
double | GetCoverage () |
Get the average coverage along the line. | |
double | GetDenseCoverage () |
Get the average coverage along the line. | |
double | GetCustomCoverage (const double norm) |
Get coverage relative to the total perimeter of indexed lines. | |
void | GetExtent (imp_line_sptr &lmin, imp_line_sptr &lmax) |
Get extent of image space where parallel lines overlap under projection onto the prototype. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Protected Member Functions | |
int | get_index_min () |
int | get_index_max () |
double | get_signed_distance (vgl_point_2d< double > const &p) |
imp_line_sptr | get_offset_line (int start, int end, double dist) |
Private Attributes | |
int | dim_ |
int * | index_ |
double * | max_extent_ |
double * | min_extent_ |
imp_line_sptr | line_ |
Definition at line 30 of file vifa_line_cover.h.
vifa_line_cover::vifa_line_cover | ( | ) |
Constructors.
Definition at line 14 of file vifa_line_cover.cxx.
vifa_line_cover::vifa_line_cover | ( | imp_line_sptr | prototype_line, |
int | index_dimension | ||
) |
Definition at line 24 of file vifa_line_cover.cxx.
vifa_line_cover::vifa_line_cover | ( | vifa_line_cover const & | c | ) | [inline] |
Definition at line 44 of file vifa_line_cover.h.
vifa_line_cover::~vifa_line_cover | ( | ) |
Destructor.
Definition at line 43 of file vifa_line_cover.cxx.
int vifa_line_cover::get_index_max | ( | ) | [protected] |
Definition at line 193 of file vifa_line_cover.cxx.
int vifa_line_cover::get_index_min | ( | ) | [protected] |
Definition at line 181 of file vifa_line_cover.cxx.
imp_line_sptr vifa_line_cover::get_offset_line | ( | int | start, |
int | end, | ||
double | dist | ||
) | [protected] |
Definition at line 215 of file vifa_line_cover.cxx.
double vifa_line_cover::get_signed_distance | ( | vgl_point_2d< double > const & | p | ) | [protected] |
Definition at line 205 of file vifa_line_cover.cxx.
double vifa_line_cover::GetCoverage | ( | ) |
Get the average coverage along the line.
Normalized by the full bounding box diagonal. Coverage must be greater than one line in order to indicate mutual coverage
Definition at line 110 of file vifa_line_cover.cxx.
double vifa_line_cover::GetCustomCoverage | ( | const double | norm | ) |
Get coverage relative to the total perimeter of indexed lines.
Definition at line 142 of file vifa_line_cover.cxx.
double vifa_line_cover::GetDenseCoverage | ( | ) |
Get the average coverage along the line.
Coverage must be greater than one line in order to indicate mutual coverage
Definition at line 127 of file vifa_line_cover.cxx.
void vifa_line_cover::GetExtent | ( | imp_line_sptr & | lmin, |
imp_line_sptr & | lmax | ||
) |
Get extent of image space where parallel lines overlap under projection onto the prototype.
Definition at line 153 of file vifa_line_cover.cxx.
void vifa_line_cover::InsertLine | ( | imp_line_sptr | l | ) |
Insert a line in the index. The line is inserted in each index bin it covers.
Definition at line 53 of file vifa_line_cover.cxx.
int vifa_line_cover::dim_ [private] |
Definition at line 32 of file vifa_line_cover.h.
int* vifa_line_cover::index_ [private] |
Definition at line 33 of file vifa_line_cover.h.
imp_line_sptr vifa_line_cover::line_ [private] |
Definition at line 36 of file vifa_line_cover.h.
double* vifa_line_cover::max_extent_ [private] |
Definition at line 34 of file vifa_line_cover.h.
double* vifa_line_cover::min_extent_ [private] |
Definition at line 35 of file vifa_line_cover.h.