40#include <visp3/core/vpDebug.h>
41#include <visp3/core/vpMath.h>
42#include <visp3/visual_features/vpFeatureBuilder.h>
61 s.setRhoTheta(t.getRho(), t.getTheta());
63 if (fabs(t.cP[3]) > fabs(t.cP[7]))
77 s.setABCD(A, B, C, D);
108 double x0 = t.getX();
109 double y0 = t.getY();
110 double z0 = t.getZ();
117 double alpha1 = (1 - a * a) * x0 - a * b * y0 - a * c * z0;
118 double beta1 = -a * b * x0 + (1 - b * b) * y0 - b * c * z0;
119 double gamma1 = -a * c * x0 - b * c * y0 + (1 - c * c) * z0;
130 s.setABCD(alpha1, beta1, gamma1, D);
134 s.setRhoTheta(t.getRho1(), t.getTheta1());
139 s.setRhoTheta(t.getRho2(), t.getTheta2());
148#ifdef VISP_HAVE_MODULE_ME
198 double rhop = t.getRho();
199 double thetap = t.getTheta();
213 thetap = M_PI / 2.0 - thetap;
215 thetap -= 2.0 * M_PI;
218 s.buildFrom(rho, theta);
Generic class defining intrinsic camera parameters.
Class that defines a 3D cylinder in the object frame and allows forward projection of a 3D cylinder i...
static void create(vpFeaturePoint &s, const vpCameraParameters &cam, const vpDot &d)
Class that defines a 2D line visual feature which is composed by two parameters that are and ,...
Class that defines a 3D line in the object frame and allows forward projection of the line in the cam...
static double sqr(double x)
Class that tracks in an image a line moving edges.
static void convertLine(const vpCameraParameters &cam, const double &rho_p, const double &theta_p, double &rho_m, double &theta_m)