 |
Visual Servoing Platform
version 3.3.0
|
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,
virtual void display(const vpImage< unsigned char > &I, vpColor col)=0
vpImagePoint getCenter() const
double a
is the semiminor axis of the ellipse.
double b
is the semimajor axis of the ellipse.
double thresholdWeight
Threshold for the robust least square.
double alpha1
The smallest angle.
double se
Value of sin(e).
Implementation of column vector and the associated operations.
void track(const vpImage< unsigned char > &I)
Track sampled pixels.
Class that tracks an ellipse moving edges.
virtual void sample(const vpImage< unsigned char > &image, bool doNotTrack=false)=0
Sample pixels at a given interval.
void display(const vpImage< unsigned char > &I)
double m10
First order raw moments.
vpImagePoint iPc
The coordinates of the ellipse center.
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)
void getEquationParam(double &A, double &B, double &E)
std::list< double > angle
Stores the value of the angle for each vpMeSite.
double alpha2
The highest angle.
static const vpColor green
Class to define colors available for display functionnalities.
double expecteddensity
Expected number of me to track along the ellipse.
Contains abstract elements for a Distance to Feature type feature.
double ce
Value of cos(e).
double getSmallestAngle()