49 #include <visp/vpFeatureBuilder.h>
52 #include <visp/vpMath.h>
75 double alpha = t.
cP[0] ;
76 double beta = t.
cP[1] ;
77 double gamma = t.
cP[2] ;
84 double d = alpha*X0 + beta*Y0 + gamma*Z0 ;
86 double A = alpha / d ;
88 double C = gamma / d ;
126 double X0 = t.
cP[0] ;
127 double Y0 = t.
cP[1] ;
128 double Z0 = t.
cP[2] ;
177 unsigned int order = 3 ;
190 double m00 = m[0][0] ;
191 double m01 = m[0][1] ;
192 double m10 = m[1][0] ;
193 double m02 = m[0][2] ;
194 double m11 = m[1][1] ;
195 double m20 = m[2][0] ;
197 double xc = m10/m00 ;
198 double yc = m01/m00 ;
200 double mu20 = 4*(m20 - m00*
vpMath::sqr(xc))/(m00) ;
201 double mu02 = 4*(m02 - m00*
vpMath::sqr(yc))/(m00) ;
202 double mu11 = 4*(m11 - m00*xc*yc)/(m00) ;
239 unsigned int order = 3 ;
252 double m00 = m[0][0] ;
253 double m01 = m[0][1] ;
254 double m10 = m[1][0] ;
255 double m02 = m[0][2] ;
256 double m11 = m[1][1] ;
257 double m20 = m[2][0] ;
259 double xc = m10/m00 ;
260 double yc = m01/m00 ;
262 double mu20 = 4*(m20 - m00*
vpMath::sqr(xc))/(m00) ;
263 double mu02 = 4*(m02 - m00*
vpMath::sqr(yc))/(m00) ;
264 double mu11 = 4*(m11 - m00*xc*yc)/(m00) ;
299 unsigned int order = 3 ;
315 double m00 = m[0][0] ;
316 double m01 = m[0][1] ;
317 double m10 = m[1][0] ;
318 double m02 = m[0][2] ;
319 double m11 = m[1][1] ;
320 double m20 = m[2][0] ;
322 double xc = m10/m00 ;
323 double yc = m01/m00 ;
325 double mu20 = 4*(m20 - m00*
vpMath::sqr(xc))/(m00) ;
326 double mu02 = 4*(m02 - m00*
vpMath::sqr(yc))/(m00) ;
327 double mu11 = 4*(m11 - m00*xc*yc)/(m00) ;
Definition of the vpMatrix class.
Class that tracks an ellipse moving edges.
Class that defines what is a sphere.
This tracker is meant to track a blob (connex pixels with same gray level) on a vpImage.
static double sqr(double x)
Generic class defining intrinsic camera parameters.
void setABC(const double A, const double B, const double C)
static void convertMoment(const vpCameraParameters &cam, unsigned int order, const vpMatrix &moment_pixel, vpMatrix &moment_meter)
This tracker is meant to track a dot (connected pixels with same gray level) on a vpImage...
void buildFrom(const double x, const double y, const double mu20, const double mu11, const double mu02)
Class that defines 2D ellipse visual feature.
static void create(vpFeaturePoint &s, const vpCameraParameters &cam, const vpDot &d)
Class that defines what is a circle.