47 #ifndef vpMeEllipse_HH
48 #define vpMeEllipse_HH
50 #include <visp/vpMatrix.h>
51 #include <visp/vpColVector.h>
53 #include <visp/vpMeTracker.h>
54 #include <visp/vpMeSite.h>
55 #include <visp/vpImagePoint.h>
57 #include <visp/vpImage.h>
58 #include <visp/vpColor.h>
148 void printParameters() ;
150 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
156 unsigned *i,
unsigned *j) ;
158 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
246 inline double getA()
const {
return a; }
251 inline double getB()
const {
return b; }
256 inline double getE()
const {
return e; }
285 }
else if(threshold>1){
288 thresholdWeight = threshold;
294 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
347 void suppressPoints() ;
349 void setExtremities();
350 void getParameters() ;
351 void computeMoments();
353 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
358 void computeAngle(
int ip1,
int jp1,
int ip2,
int jp2) ;
359 void computeAngle(
int ip1,
int jp1,
double &alpha1,
360 int ip2,
int jp2,
double &alpha2) ;
362 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
367 const double &A,
const double &B,
const double &E,
368 const double & smallalpha,
const double &highalpha,
371 const double &A,
const double &B,
const double &E,
372 const double & smallalpha,
const double &highalpha,
double a
is the semiminor axis of 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).
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 setCircle(bool circle)
void getEquationParam(double &A, double &B, double &E)
std::list< double > angle
Stores the value of the angle for each vpMeSite.
Class that provides a data structure for the column vectors as well as a set of operations on these v...
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).