41 #include <visp3/core/vpDebug.h>
42 #include <visp3/core/vpException.h>
43 #include <visp3/visual_features/vpFeatureBuilder.h>
44 #include <visp3/visual_features/vpFeatureException.h>
47 #ifdef VISP_HAVE_MODULE_BLOB
109 double rho = sqrt(x * x + y * y);
110 double theta = atan2(y, x);
116 vpERROR_TRACE(
"Error caught");
182 double rho = sqrt(x * x + y * y);
183 double theta = atan2(y, x);
189 vpERROR_TRACE(
"Error caught");
251 double rho = sqrt(x * x + y * y);
252 double theta = atan2(y, x);
258 vpERROR_TRACE(
"Error caught");
285 double x = p.
get_x();
286 double y = p.
get_y();
288 double rho = sqrt(x * x + y * y);
289 double theta = atan2(y, x);
297 vpERROR_TRACE(
"Point is behind the camera ");
298 std::cout <<
"Z = " << s.
get_Z() << std::endl;
303 if (fabs(s.
get_Z()) < 1e-6) {
304 vpERROR_TRACE(
"Point Z coordinates is null ");
305 std::cout <<
"Z = " << s.
get_Z() << std::endl;
312 vpERROR_TRACE(
"Error caught");
354 double x = p.
get_x();
355 double y = p.
get_y();
363 double rho = sqrt(x * x + y * y);
364 double theta = atan2(y, x);
370 vpERROR_TRACE(
"Error caught");
Generic class defining intrinsic camera parameters.
This tracker is meant to track a blob (connex pixels with same gray level) on a vpImage.
vpImagePoint getCog() const
This tracker is meant to track a dot (connected pixels with same gray level) on a vpImage.
vpImagePoint getCog() const
static void create(vpFeaturePoint &s, const vpCameraParameters &cam, const vpImagePoint &t)
Error that can be emitted by the vpBasicFeature class and its derivates.
@ badInitializationError
Wrong feature initialization.
Class that defines 2D image point visual feature with polar coordinates described in .
void set_theta(double theta)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
static void convertPoint(const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y)
Class that defines a 3D point in the object frame and allows forward projection of a 3D point in the ...
double get_y() const
Get the point y coordinate in the image plane.
double get_x() const
Get the point x coordinate in the image plane.
double get_Z() const
Get the point cZ coordinate in the camera frame.