class to store together a collection of aligned points and line equation and basic method
More...
#include <line_points.h>
|
| line_points () |
|
| line_points (const line_points &line) |
|
| line_points (double a, double b, double c) |
|
| ~line_points () |
|
std::vector< point2d< double > > & | get_points () |
|
const std::vector< point2d
< double > > & | get_points () const |
|
const ami::line & | get_rect () const |
|
ami::line & | get_rect () |
|
const double & | get_a () const |
|
double & | get_a () |
|
const double & | get_b () const |
|
double & | get_b () |
|
const double & | get_c () const |
|
double & | get_c () |
|
void | get_abc (double &a2, double &b2, double &c2) |
|
void | set_a (double a2) |
|
void | set_b (double b2) |
|
void | set_c (double c2) |
|
void | set_abc (double a, double b, double c) |
|
void | set_points (std::vector< point2d< double > > p2) |
|
double | points_to_equation () |
| LINE ESTIMATION FROM POINT RETURN -1 IF IT DOES NOT WORK. OTHERWISE RETURN THE AVERAGE OF THE SQUARED DISTANCE OF THE POINTS TO THE LINE. More...
|
|
double | evaluation (const point2d< double > &p) const |
|
line_points & | operator= (const line_points &line) |
|
void | get_max_min_points (point2d< double > &min_x_p, point2d< double > &max_x_p, point2d< double > &min_y_p, point2d< double > &max_y_p) |
| Return the points with the max x, min x, max y and min y coordinates. More...
|
|
class to store together a collection of aligned points and line equation and basic method
- Author
- Luis Alvarez
ami::line_points::line_points |
( |
| ) |
|
|
inline |
ami::line_points::line_points |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
- Author
- Luis Alvarez
- Parameters
-
- Parameters
-
a | Not described |
b | Not described |
c | Not described |
ami::line_points::~line_points |
( |
| ) |
|
|
inline |
double ami::line_points::evaluation |
( |
const point2d< double > & |
p | ) |
const |
|
inline |
- Author
- Luis Alvarez
- Parameters
-
const double & ami::line_points::get_a |
( |
| ) |
|
|
inline |
ami::line_points::get_abc |
( |
double & |
a2, |
|
|
double & |
b2, |
|
|
double & |
c2 |
|
) |
| |
|
inline |
- Author
- Luis Alvarez
- Parameters
-
a2 | Not described |
b2 | Not described |
c2 | Not described |
const double & ami::line_points::get_b |
( |
| ) |
|
|
inline |
const double & ami::line_points::get_c |
( |
| ) |
|
|
inline |
AMI_DLL_CPP void line_points::get_max_min_points |
( |
point2d< double > & |
min_x_p, |
|
|
point2d< double > & |
max_x_p, |
|
|
point2d< double > & |
min_y_p, |
|
|
point2d< double > & |
max_y_p |
|
) |
| |
Return the points with the max x, min x, max y and min y coordinates.
- Author
- Pedro Henriquez
const std::vector< point2d > & ami::line_points::get_points |
( |
| ) |
|
|
inline |
const ami::line & ami::line_points::get_rect |
( |
| ) |
const |
|
inline |
RETURN p
- Author
- Luis Alvarez
AMI_DLL_CPP double line_points::points_to_equation |
( |
| ) |
|
LINE ESTIMATION FROM POINT RETURN -1 IF IT DOES NOT WORK. OTHERWISE RETURN THE AVERAGE OF THE SQUARED DISTANCE OF THE POINTS TO THE LINE.
COMPUTES RECT FROM x,y
- Author
- Luis Alvarez
void ami::line_points::set_a |
( |
double |
a2 | ) |
|
|
inline |
- Author
- Luis Alvarez
- Parameters
-
void ami::line_points::set_abc |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
- Author
- Luis Alvarez
- Parameters
-
a | Not described |
b | Not described |
c | Not described |
void ami::line_points::set_b |
( |
double |
b2 | ) |
|
|
inline |
- Author
- Luis Alvarez
- Parameters
-
void ami::line_points::set_c |
( |
double |
c2 | ) |
|
|
inline |
- Author
- Luis Alvarez
- Parameters
-
void ami::line_points::set_points |
( |
std::vector< point2d< double > > |
p2 | ) |
|
|
inline |
- Author
- Luis Alvarez
- Parameters
-
The documentation for this class was generated from the following files: