44 #ifndef vpMeEllipse_HH 45 #define vpMeEllipse_HH 47 #include <visp3/core/vpColVector.h> 48 #include <visp3/core/vpMatrix.h> 50 #include <visp3/core/vpImagePoint.h> 51 #include <visp3/me/vpMeSite.h> 52 #include <visp3/me/vpMeTracker.h> 54 #include <visp3/core/vpColor.h> 55 #include <visp3/core/vpImage.h> 123 double low_alpha,
double high_alpha);
129 void printParameters();
131 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 138 #endif // VISP_BUILD_DEPRECATED_FUNCTIONS 217 inline double getA()
const {
return a; }
222 inline double getB()
const {
return b; }
228 inline double getE()
const {
return e; }
263 }
else if (threshold > 1) {
266 thresholdWeight = threshold;
270 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 327 void suppressPoints();
329 void setExtremities();
330 void getParameters();
331 void computeMoments();
333 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 338 void computeAngle(
int ip1,
int jp1,
int ip2,
int jp2);
339 void computeAngle(
int ip1,
int jp1,
double &alpha1,
int ip2,
int jp2,
double &alpha2);
341 #endif // VISP_BUILD_DEPRECATED_FUNCTIONS 346 const double &E,
const double &smallalpha,
const double &highalpha,
349 const double &E,
const double &smallalpha,
const double &highalpha,
double a
is the semiminor axis of the ellipse.
double expecteddensity
Expected number of me to track along the ellipse.
double thresholdWeight
Threshold for the robust least square.
Class to define colors available for display functionnalities.
Class that tracks an ellipse moving edges.
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 iPc
The coordinates of the ellipse center.
double alpha1
The smallest angle.
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.
virtual void sample(const vpImage< unsigned char > &image, bool doNotTrack=false)=0
Sample pixels at a given interval.
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 ...
void setThresholdRobust(double threshold)
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).