39#include <visp3/core/vpMath.h>
40#include <visp3/visual_features/vpFeatureBuilder.h>
43#ifdef VISP_HAVE_MODULE_BLOB
55 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
60 double xc = (x1 + x2) / 2.;
61 double yc = (y1 + y2) / 2.;
62 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
64 if (s.isNormalized()) {
75 s.setAlpha(atan2(y1 - y2, x1 - x2));
88 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
93 double xc = (x1 + x2) / 2.;
94 double yc = (y1 + y2) / 2.;
95 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
97 if (s.isNormalized()) {
108 s.setAlpha(atan2(y1 - y2, x1 - x2));
123 double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
128 double xc = (x1 + x2) / 2.;
129 double yc = (y1 + y2) / 2.;
130 double l = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
132 if (s.isNormalized()) {
143 s.setAlpha(atan2(y1 - y2, x1 - x2));
157 double x1 = P1.
get_x();
158 double y1 = P1.
get_y();
159 double x2 = P2.
get_x();
160 double y2 = P2.
get_y();
162 double Z1 = P1.
cP[2] / P1.
cP[3];
163 double Z2 = P2.
cP[2] / P2.
cP[3];
165 s.buildFrom(x1, y1, Z1, x2, y2, Z2);
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 vpDot &d)
Class that defines a 2D segment visual features. This class allow to consider two sets of visual feat...
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 &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.