48 #include <visp/vpFeatureBuilder.h>
49 #include <visp/vpFeatureException.h>
50 #include <visp/vpException.h>
116 if(fabs(theta_r-theta_l)<min || fabs(fabs(theta_r-theta_l)-M_PI)<min \
117 || fabs(fabs(theta_r-theta_l)-2*M_PI)<min)
119 vpCERROR<<
"There is no vanishing point : the lines are parallel in the image plane"<<std::endl;
121 "There is no vanishing point : the lines are parallel in the image plane")) ;
124 y = (rho_r *c_l - rho_l * c_r) / (-s_l * c_r + s_r * c_l );
125 x = (rho_r *s_l - rho_l * s_r) / (-c_l * s_r + c_r * s_l );
Class that defines 2D vanishing point visual feature (Z coordinate in 3D space is infinity)...
double get_y() const
Get the point y coordinate in the image plane.
Class that defines what is a point.
Class that defines a line in the object frame, the camera frame and the image plane. All the parameters must be set in meter.
Error that can be emited by the vpBasicFeature class and its derivates.
Class that defines a 2D line visual feature which is composed by two parameters that are and ...
double get_x() const
Get the point x coordinate in the image plane.
void set_x(const double _x)
set the point x-coordinates
void set_y(const double _y)
set the point y-coordinates
static void create(vpFeaturePoint &s, const vpCameraParameters &cam, const vpDot &d)