40 #include <visp3/core/vpFeatureDisplay.h> 43 #include <visp3/core/vpMeterPixelConversion.h> 46 #include <visp3/core/vpDisplay.h> 49 #include <visp3/core/vpDebug.h> 52 #include <visp3/core/vpMath.h> 54 #include <visp3/core/vpImagePoint.h> 68 const vpColor &color,
unsigned int thickness)
93 double co = cos(thetap);
94 double si = sin(thetap);
101 if (fabs(a) < fabs(b)) {
104 ip2.
set_ij(h, (-c - a * h) / b);
109 ip2.
set_ij((-c - b * w) / a, w);
127 const vpColor &color,
unsigned int thickness)
129 displayLine(rho1, theta1, cam, I, color, thickness);
130 displayLine(rho2, theta2, cam, I, color, thickness);
150 const vpColor &color,
unsigned int thickness)
153 double mu20_p, mu11_p, mu02_p;
177 const vpColor &color,
unsigned int thickness)
196 const vpColor &color,
unsigned int thickness)
203 double co = cos(thetap);
204 double si = sin(thetap);
211 if (fabs(a) < fabs(b)) {
214 ip2.
set_ij(h, (-c - a * h) / b);
219 ip2.
set_ij((-c - b * w) / a, w);
237 unsigned int thickness)
239 displayLine(rho1, theta1, cam, I, color, thickness);
240 displayLine(rho2, theta2, cam, I, color, thickness);
260 unsigned int thickness)
263 double mu20_p, mu11_p, mu02_p;
static void displayEllipse(const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1)
static void convertEllipse(const vpCameraParameters &cam, const vpSphere &sphere, vpImagePoint ¢er, double &mu20_p, double &mu11_p, double &mu02_p)
static void displayEllipse(double x, double y, double mu20, double mu11, double m02, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
static void displayCylinder(double rho1, double theta1, double rho2, double theta2, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
Class to define colors available for display functionnalities.
static void displayPoint(double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
Generic class defining intrinsic camera parameters.
static void convertLine(const vpCameraParameters &cam, const double &rho_m, const double &theta_m, double &rho_p, double &theta_p)
static void displayCross(const vpImage< unsigned char > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)
void set_ij(double ii, double jj)
unsigned int getHeight() const
static void displayLine(double rho, double theta, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Class that defines what is a circle.
unsigned int getWidth() const
static void displayLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true)