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>
160 void printParameters() ;
162 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
168 unsigned *i,
unsigned *j) ;
170 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
185 void setCircle(
bool is_circle) { this->circle = is_circle ; }
258 inline double getA()
const {
return a; }
263 inline double getB()
const {
return b; }
268 inline double getE()
const {
return e; }
297 }
else if(threshold>1){
300 thresholdWeight = threshold;
306 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
361 void suppressPoints() ;
363 void setExtremities();
364 void getParameters() ;
365 void computeMoments();
367 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
372 void computeAngle(
int ip1,
int jp1,
int ip2,
int jp2) ;
373 void computeAngle(
int ip1,
int jp1,
double &alpha1,
374 int ip2,
int jp2,
double &alpha2) ;
376 #endif //VISP_BUILD_DEPRECATED_FUNCTIONS
381 const double &A,
const double &B,
const double &E,
382 const double & smallalpha,
const double &highalpha,
384 unsigned int thickness=1);
386 const double &A,
const double &B,
const double &E,
387 const double & smallalpha,
const double &highalpha,
389 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.
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).