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> 201 void printParameters()
const;
225 }
else if (threshold > 1) {
228 thresholdWeight = threshold;
234 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 245 vp_deprecated
inline double getA()
const {
return a; }
253 vp_deprecated
inline double getB()
const {
return b; }
262 vp_deprecated
inline double getE()
const {
return e; }
274 vp_deprecated
inline double get_m00()
const {
return m00; }
282 vp_deprecated
inline double get_m10()
const {
return m10; }
290 vp_deprecated
inline double get_m01()
const {
return m01; }
298 vp_deprecated
inline double get_m11()
const {
return m11; }
306 vp_deprecated
inline double get_m20()
const {
return m20; }
314 vp_deprecated
inline double get_m02()
const {
return m02; }
321 vp_deprecated
inline double get_mu11()
const {
return mu11; }
328 vp_deprecated
inline double get_mu02()
const {
return mu02; }
335 vp_deprecated
inline double get_mu20()
const {
return mu20; }
347 double low_alpha,
double high_alpha);
351 #endif // VISP_BUILD_DEPRECATED_FUNCTIONS 353 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 399 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 400 double mu11, mu20, mu02;
411 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 412 double expecteddensity;
440 void computeAbeFromNij();
441 double computeAngleOnEllipse(
const vpImagePoint &pt)
const;
442 void computeKiFromNij();
443 void computeNijFromAbe();
444 void computePointOnEllipse(
const double ang,
vpImagePoint &iP);
446 double computeTheta(
double u,
double v)
const;
447 void getParameters();
455 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS 456 void computeMoments();
462 const double &A,
const double &B,
const double &E,
463 const double &smallalpha,
const double &highalpha,
466 const double &A,
const double &B,
const double &E,
467 const double &smallalpha,
const double &highalpha,
vp_deprecated void getEquationParam(double &A, double &B, double &E)
vpImagePoint getFirstEndpoint() const
double a
is the semimajor axis of the ellipse.
double getSmallestAngle() const
bool m_trackArc
Track an arc of ellipse (true) or a complete one (false).
double m_arcEpsilon
Epsilon value used to check if arc angles are the same.
vpColVector get_nij() const
double thresholdWeight
Threshold on the weights for the robust least square.
Class to define RGB colors available for display functionnalities.
vp_deprecated double getB() const
double m_uc
Value of u coordinate of iPc.
vpImagePoint getSecondEndpoint() const
Class that tracks an ellipse using moving edges.
vp_deprecated double get_m02() const
static const vpColor green
vp_deprecated double getA() const
double b
is the semiminor axis of the ellipse.
vp_deprecated double get_m00() const
double se
Value of sin(e).
double getHighestAngle() const
vpImagePoint iPc
The coordinates of the ellipse center.
unsigned int m_numberOfGoodPoints
Number of correct points tracked along the ellipse.
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.
vp_deprecated double get_m10() const
vp_deprecated double get_mu02() const
vp_deprecated double get_m11() const
std::list< double > angle
Stores the value in increasing order of the angle on the ellipse for each vpMeSite ...
vp_deprecated double get_mu11() const
vp_deprecated double get_m20() const
unsigned int m_expectedDensity
Expected number of points to track along the ellipse.
Implementation of column vector and the associated operations.
void setEndpoints(const vpImagePoint &pt1, const vpImagePoint &pt2)
void initTracking(const vpImage< unsigned char > &I)
vpColVector get_ABE() const
unsigned int getExpectedDensity() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void setThresholdRobust(double threshold)
double m_vc
Value of v coordinate of iPc.
vp_deprecated double getE() const
vp_deprecated double get_m01() const
virtual void display(const vpImage< unsigned char > &I, vpColor col)=0
vpImagePoint getCenter() const
double ce
Value of cos(e).
vp_deprecated double get_mu20() const
double m_n20
Second order centered and normalized moments.