Lens distortion correction division model 1p
 All Classes Files Functions Variables
ami::line_points Class Reference

class to store together a collection of aligned points and line equation and basic method More...

#include <line_points.h>

Public Member Functions

 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::lineget_rect () const
 
ami::lineget_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_pointsoperator= (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...
 

Detailed Description

class to store together a collection of aligned points and line equation and basic method

Author
Luis Alvarez

Constructor & Destructor Documentation

ami::line_points::line_points ( )
inline
Author
Luis Alvarez
ami::line_points::line_points ( double  a,
double  b,
double  c 
)
inline
Author
Luis Alvarez
Parameters
a,b,c
Parameters
aNot described
bNot described
cNot described
ami::line_points::~line_points ( )
inline
Author
Luis Alvarez

Member Function Documentation

double ami::line_points::evaluation ( const point2d< double > &  p) const
inline
Author
Luis Alvarez
Parameters
ppoint2d
const double & ami::line_points::get_a ( )
inline
Author
Luis Alvarez
ami::line_points::get_abc ( double &  a2,
double &  b2,
double &  c2 
)
inline
Author
Luis Alvarez
Parameters
a2Not described
b2Not described
c2Not described
const double & ami::line_points::get_b ( )
inline
Author
Luis Alvarez
const double & ami::line_points::get_c ( )
inline
Author
Luis Alvarez
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
Author
Luis Alvarez
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
a2Not described
void ami::line_points::set_abc ( double  a,
double  b,
double  c 
)
inline
Author
Luis Alvarez
Parameters
aNot described
bNot described
cNot described
void ami::line_points::set_b ( double  b2)
inline
Author
Luis Alvarez
Parameters
b2Not described
void ami::line_points::set_c ( double  c2)
inline
Author
Luis Alvarez
Parameters
c2Not described
void ami::line_points::set_points ( std::vector< point2d< double > >  p2)
inline
Author
Luis Alvarez
Parameters
p2Not described

The documentation for this class was generated from the following files: