 |
Visual Servoing Platform
version 3.2.0
|
45 #include <visp3/core/vpMath.h>
46 #include <visp3/visual_features/vpFeatureBuilder.h>
48 #ifdef VISP_HAVE_MODULE_BLOB
62 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
67 double xc = (x1 + x2) / 2.;
68 double yc = (y1 + y2) / 2.;
69 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
96 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
101 double xc = (x1 + x2) / 2.;
102 double yc = (y1 + y2) / 2.;
103 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
115 s.
setAlpha(atan2(y1 - y2, x1 - x2));
117 #endif //#ifdef VISP_HAVE_MODULE_BLOB
132 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
137 double xc = (x1 + x2) / 2.;
138 double yc = (y1 + y2) / 2.;
139 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
151 s.
setAlpha(atan2(y1 - y2, x1 - x2));
166 double x1 = P1.
get_x();
167 double y1 = P1.
get_y();
168 double x2 = P2.
get_x();
169 double y2 = P2.
get_y();
171 double Z1 = P1.
cP[2] / P1.
cP[3];
172 double Z2 = P2.
cP[2] / P2.
cP[3];
vpImagePoint getCog() const
Generic class defining intrinsic camera parameters.
double get_x() const
Get the point x coordinate in the image plane.
vpImagePoint getCog() const
This tracker is meant to track a blob (connex pixels with same gray level) on a vpImage.
static void create(vpFeaturePoint &s, const vpCameraParameters &cam, const vpDot &d)
Class that defines a 2D segment visual features. This class allow to consider two sets of visual feat...
void setL(const double val)
static void convertPoint(const vpCameraParameters &cam, const double &u, const double &v, double &x, double &y)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void setXc(const double val)
void buildFrom(const double x1, const double y1, const double Z1, const double x2, const double y2, const double Z2)
void setYc(const double val)
Class that defines what is a point.
void setAlpha(const double val)
This tracker is meant to track a dot (connected pixels with same gray level) on a vpImage.
double get_y() const
Get the point y coordinate in the image plane.