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>
155 void printParameters() ;
157 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
163 unsigned *i,
unsigned *j) ;
165 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
180 void setCircle(
bool is_circle) { this->circle = is_circle ; }
253 inline double getA()
const {
return a; }
258 inline double getB()
const {
return b; }
263 inline double getE()
const {
return e; }
292 }
else if(threshold>1){
295 thresholdWeight = threshold;
301 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
354 void suppressPoints() ;
356 void setExtremities();
357 void getParameters() ;
358 void computeMoments();
360 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
365 void computeAngle(
int ip1,
int jp1,
int ip2,
int jp2) ;
366 void computeAngle(
int ip1,
int jp1,
double &alpha1,
367 int ip2,
int jp2,
double &alpha2) ;
369 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
374 const double &A,
const double &B,
const double &E,
375 const double & smallalpha,
const double &highalpha,
378 const double &A,
const double &B,
const double &E,
379 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 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)
void setCircle(bool is_circle)
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).