 |
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>
116 int getExpectedDensity() {
return (
int)expecteddensity; }
123 double low_alpha,
double high_alpha);
129 void printParameters();
131 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
138 #endif // VISP_BUILD_DEPRECATED_FUNCTIONS
146 inline double get_m00()
const {
return m00; }
154 inline double get_m10()
const {
return m10; }
162 inline double get_m01()
const {
return m01; }
170 inline double get_m11()
const {
return m11; }
178 inline double get_m20()
const {
return m20; }
186 inline double get_m02()
const {
return m02; }
193 inline double get_mu11()
const {
return mu11; }
200 inline double get_mu02()
const {
return mu02; }
207 inline double get_mu20()
const {
return mu20; }
217 inline double getA()
const {
return a; }
222 inline double getB()
const {
return b; }
228 inline double getE()
const {
return e; }
233 void getEquationParam(
double &A,
double &B,
double &E)
243 inline double getSmallestAngle() {
return alpha1; }
248 inline double getHighestAngle() {
return alpha2; }
259 void setThresholdRobust(
double threshold)
263 }
else if (threshold > 1) {
266 thresholdWeight = threshold;
270 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
307 std::list<double> angle;
311 double mu11, mu20, mu02;
315 double m11, m02, m20;
317 double thresholdWeight;
319 double expecteddensity;
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
Implementation of column vector and the associated operations.
void track(const vpImage< unsigned char > &I)
Track sampled pixels.
static const vpColor green
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)
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 ...
Class to define colors available for display functionnalities.
Contains abstract elements for a Distance to Feature type feature.