#include <sdet_grid_finder_params.h>
Public Types | |
enum | debug { NO_DEBUG = 0, VANISHING_POINT, AFFINE_GROUP_BEFORE_SKEW_SCALE, AFFINE_GROUP_AFTER_SKEW_SCALE, TRANS_PERIM_LINES, AFFINE_GROUP_AFTER_TRANS } |
Public Member Functions | |
sdet_grid_finder_params (const int n_lines_x=11, const int n_lines_y=11, const double spacing=53.34, const int thresh=1, const float angle_tol=5, bool verbose=false, int debug_state=false) | |
sdet_grid_finder_params (const sdet_grid_finder_params &old_params) | |
~sdet_grid_finder_params () | |
bool | SanityCheck () |
Checks that parameters are within acceptable bounds. | |
void | get_debug_choices (vcl_vector< vcl_string > &choices) |
Public Attributes | |
int | n_lines_x_ |
number of horizontal grid lines | |
int | n_lines_y_ |
number of vertical grid lines | |
double | spacing_ |
spacing between lines | |
int | thresh_ |
bin threshold for dominant orientation groups | |
float | angle_tol_ |
angle tolerance for a dominant group | |
bool | verbose_ |
print informative debug output | |
int | debug_state_ |
general purpose debug state | |
Protected Member Functions | |
void | InitParams (const int n_lines_x, const int n_lines_y, const double spacing, const int thresh, const float angle_tol, bool verbose, int debug_state) |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &, const sdet_grid_finder_params &gfp) |
Definition at line 16 of file sdet_grid_finder_params.h.
NO_DEBUG | |
VANISHING_POINT | |
AFFINE_GROUP_BEFORE_SKEW_SCALE | |
AFFINE_GROUP_AFTER_SKEW_SCALE | |
TRANS_PERIM_LINES | |
AFFINE_GROUP_AFTER_TRANS |
Definition at line 19 of file sdet_grid_finder_params.h.
sdet_grid_finder_params::sdet_grid_finder_params | ( | const int | n_lines_x = 11 , |
const int | n_lines_y = 11 , |
||
const double | spacing = 53.34 , |
||
const int | thresh = 1 , |
||
const float | angle_tol = 5 , |
||
bool | verbose = false , |
||
int | debug_state = false |
||
) |
Definition at line 28 of file sdet_grid_finder_params.cxx.
sdet_grid_finder_params::sdet_grid_finder_params | ( | const sdet_grid_finder_params & | old_params | ) |
Definition at line 15 of file sdet_grid_finder_params.cxx.
sdet_grid_finder_params::~sdet_grid_finder_params | ( | ) | [inline] |
Definition at line 33 of file sdet_grid_finder_params.h.
void sdet_grid_finder_params::get_debug_choices | ( | vcl_vector< vcl_string > & | choices | ) |
Definition at line 38 of file sdet_grid_finder_params.cxx.
void sdet_grid_finder_params::InitParams | ( | const int | n_lines_x, |
const int | n_lines_y, | ||
const double | spacing, | ||
const int | thresh, | ||
const float | angle_tol, | ||
bool | verbose, | ||
int | debug_state | ||
) | [protected] |
Definition at line 49 of file sdet_grid_finder_params.cxx.
bool sdet_grid_finder_params::SanityCheck | ( | ) |
Checks that parameters are within acceptable bounds.
Note that msg << ends seems to restart the string and erase the previous string. We should only use it as the last call, use vcl_endl otherwise.
Definition at line 72 of file sdet_grid_finder_params.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const sdet_grid_finder_params & | gfp | ||
) | [friend] |
Definition at line 108 of file sdet_grid_finder_params.cxx.
angle tolerance for a dominant group
Definition at line 62 of file sdet_grid_finder_params.h.
general purpose debug state
Definition at line 64 of file sdet_grid_finder_params.h.
number of horizontal grid lines
Definition at line 58 of file sdet_grid_finder_params.h.
number of vertical grid lines
Definition at line 59 of file sdet_grid_finder_params.h.
spacing between lines
Definition at line 60 of file sdet_grid_finder_params.h.
bin threshold for dominant orientation groups
Definition at line 61 of file sdet_grid_finder_params.h.
print informative debug output
Definition at line 63 of file sdet_grid_finder_params.h.