43 #ifndef vpMeEllipse_HH
44 #define vpMeEllipse_HH
46 #include <visp3/core/vpMatrix.h>
47 #include <visp3/core/vpColVector.h>
49 #include <visp3/me/vpMeTracker.h>
50 #include <visp3/me/vpMeSite.h>
51 #include <visp3/core/vpImagePoint.h>
53 #include <visp3/core/vpImage.h>
54 #include <visp3/core/vpColor.h>
114 void printParameters() ;
116 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
122 unsigned *i,
unsigned *j) ;
124 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
197 inline double getA()
const {
return a; }
202 inline double getB()
const {
return b; }
207 inline double getE()
const {
return e; }
236 }
else if(threshold>1){
239 thresholdWeight = threshold;
243 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
295 void suppressPoints() ;
297 void setExtremities();
298 void getParameters() ;
299 void computeMoments();
301 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
306 void computeAngle(
int ip1,
int jp1,
int ip2,
int jp2) ;
307 void computeAngle(
int ip1,
int jp1,
double &alpha1,
308 int ip2,
int jp2,
double &alpha2) ;
314 vp_deprecated
void setCircle(
bool ) { }
317 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
322 const double &A,
const double &B,
const double &E,
323 const double & smallalpha,
const double &highalpha,
325 unsigned int thickness=1);
327 const double &A,
const double &B,
const double &E,
328 const double & smallalpha,
const double &highalpha,
330 unsigned int thickness=1);
double a
is the semiminor axis of the ellipse.
double expecteddensity
Expected number of me to track along the ellipse.
double e
is the angle made by the major axis and the i axis of the image frame .
double thresholdWeight
Threshold for the robust least square.
Class to define colors available for display functionnalities.
vpImagePoint iP1
The coordinates of the point corresponding to the smallest angle. More things about the are given a...
Class that tracks an ellipse moving edges.
virtual void sample(const vpImage< unsigned char > &image)=0
Sample pixels at a given interval.
static const vpColor green
double b
is the semimajor axis of the ellipse.
double se
Value of sin(e).
void display(const vpImage< unsigned char > &I)
vpImagePoint iP2
The coordinates of the point corresponding to the highest angle. More things about the are given at...
vpImagePoint iPc
The coordinates of the ellipse center.
double alpha1
The smallest angle.
void setThresholdRobust(const double threshold)
void track(const vpImage< unsigned char > &I)
Track sampled pixels.
double m10
First order raw moments.
Contains abstract elements for a Distance to Feature type feature.
void getEquationParam(double &A, double &B, double &E)
std::list< double > angle
Stores the value of the angle for each vpMeSite.
Implementation of column vector and the associated operations.
double getSmallestAngle()
void initTracking(const vpImage< unsigned char > &I)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
double alpha2
The highest angle.
virtual void display(const vpImage< unsigned char > &I, vpColor col)=0
vpImagePoint getCenter() const
double ce
Value of cos(e).