#include <pol_model.h>
Inheritance diagram for mimas::pol_model:
Public Types | |
typedef boost::numeric::ublas::vector< double > | Vector |
Public Member Functions | |
void | createFromLines (line_ptr_list &slaps) |
Create the model from the given list of straight line segements. | |
pol_model () | |
void | createFromImageFile (const char *fn) |
Create the model (rep) from the given image. | |
void | match (pol_locator &locate, const pol_line_info &l1_orig, const pol_line_info &l2_orig) |
Compare the two given pairs of lines and if they match, make an entry into the location histogram -locate- of the possible centroid position and angle of the model. | |
Vector | getIntersectionAngle (const pol_line_info &l1, const pol_line_info &l2, angle *retval) |
Compare the two lines l1 and l2 and calculate the angle between them. inspectors and modifiers... | |
double | getThreshold () |
double | getRadius () |
void | setRadius (double r) |
bool | scaleInvariant () |
void | setScaleInvariance (bool r) |
line_ptr_list | getModelLines () |
Classes | |
class | linepair |
shape description in terms of pairs of lines found within the model view.
Definition at line 49 of file pol_model.h.
typedef boost::numeric::ublas::vector< double > mimas::pol_model::Vector |
Definition at line 52 of file pol_model.h.
mimas::pol_model::pol_model | ( | ) | [inline] |
Definition at line 93 of file pol_model.h.
void mimas::pol_model::createFromLines | ( | line_ptr_list & | slaps | ) |
Create the model from the given list of straight line segements.
void mimas::pol_model::createFromImageFile | ( | const char * | fn | ) |
Create the model (rep) from the given image.
Edge strings and straight lines will be extracted from the image automatically.
void mimas::pol_model::match | ( | pol_locator & | locate, | |
const pol_line_info & | l1_orig, | |||
const pol_line_info & | l2_orig | |||
) |
Compare the two given pairs of lines and if they match, make an entry into the location histogram -locate- of the possible centroid position and angle of the model.
Vector mimas::pol_model::getIntersectionAngle | ( | const pol_line_info & | l1, | |
const pol_line_info & | l2, | |||
angle * | retval | |||
) |
Compare the two lines l1 and l2 and calculate the angle between them. inspectors and modifiers...
double mimas::pol_model::getThreshold | ( | ) | [inline] |
Definition at line 141 of file pol_model.h.
double mimas::pol_model::getRadius | ( | ) | [inline] |
Definition at line 142 of file pol_model.h.
void mimas::pol_model::setRadius | ( | double | r | ) | [inline] |
Definition at line 143 of file pol_model.h.
bool mimas::pol_model::scaleInvariant | ( | ) |
void mimas::pol_model::setScaleInvariance | ( | bool | r | ) | [inline] |
Definition at line 145 of file pol_model.h.
line_ptr_list mimas::pol_model::getModelLines | ( | ) |