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>
202 void printParameters()
const;
226 }
else if (threshold > 1) {
229 thresholdWeight = threshold;
235 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
246 vp_deprecated
inline double getA()
const {
return a; }
254 vp_deprecated
inline double getB()
const {
return b; }
263 vp_deprecated
inline double getE()
const {
return e; }
275 vp_deprecated
inline double get_m00()
const {
return m00; }
283 vp_deprecated
inline double get_m10()
const {
return m10; }
291 vp_deprecated
inline double get_m01()
const {
return m01; }
299 vp_deprecated
inline double get_m11()
const {
return m11; }
307 vp_deprecated
inline double get_m20()
const {
return m20; }
315 vp_deprecated
inline double get_m02()
const {
return m02; }
322 vp_deprecated
inline double get_mu11()
const {
return mu11; }
329 vp_deprecated
inline double get_mu02()
const {
return mu02; }
336 vp_deprecated
inline double get_mu20()
const {
return mu20; }
348 double e_p,
double low_alpha,
double high_alpha);
354 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
400 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
412 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
441 void computeAbeFromNij();
442 double computeAngleOnEllipse(
const vpImagePoint &pt)
const;
443 void computeKiFromNij();
444 void computeNijFromAbe();
445 void computePointOnEllipse(
const double ang,
vpImagePoint &iP);
447 double computeTheta(
double u,
double v)
const;
448 void getParameters();
456 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
457 void computeMoments();
463 const double &E,
const double &smallalpha,
const double &highalpha,
466 const double &E,
const double &smallalpha,
const double &highalpha,
Implementation of column vector and the associated operations.
Class to define RGB colors available for display functionnalities.
static const vpColor green
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Class that tracks an ellipse using moving edges.
double m_arcEpsilon
Epsilon value used to check if arc angles are the same.
double a
is the semimajor axis of the ellipse.
double getHighestAngle() const
double se
Value of sin(e).
double getSmallestAngle() const
vp_deprecated double get_mu20() const
double m_vc
Value of v coordinate of iPc.
unsigned int m_numberOfGoodPoints
Number of correct points tracked along the ellipse.
vpImagePoint iPc
The coordinates of the ellipse center.
std::list< double > angle
Stores the value in increasing order of the angle on the ellipse for each vpMeSite .
vp_deprecated double getA() const
vp_deprecated double get_m20() const
double b
is the semiminor axis of the ellipse.
double expecteddensity
Expected number of points to track along the ellipse.
vp_deprecated double get_m11() const
double m_uc
Value of u coordinate of iPc.
double ce
Value of cos(e).
vp_deprecated double get_m00() const
void setEndpoints(const vpImagePoint &pt1, const vpImagePoint &pt2)
vpImagePoint getSecondEndpoint() const
vpImagePoint getFirstEndpoint() const
vp_deprecated void getEquationParam(double &A, double &B, double &E)
void setThresholdRobust(double threshold)
vpColVector get_ABE() const
vp_deprecated double get_mu11() const
bool m_trackArc
Track an arc of ellipse (true) or a complete one (false).
vp_deprecated double get_mu02() const
vpImagePoint getCenter() const
vp_deprecated double getB() const
vpColVector get_nij() const
vp_deprecated double get_m10() const
unsigned int getExpectedDensity() const
unsigned int m_expectedDensity
Expected number of points to track along the ellipse.
vp_deprecated double get_m02() const
vp_deprecated double get_m01() const
double thresholdWeight
Threshold on the weights for the robust least square.
vp_deprecated double getE() const
Contains abstract elements for a Distance to Feature type feature.
void initTracking(const vpImage< unsigned char > &I)
virtual void sample(const vpImage< unsigned char > &image, bool doNotTrack=false)=0
Sample pixels at a given interval.
void track(const vpImage< unsigned char > &I)
Track sampled pixels.
virtual void display(const vpImage< unsigned char > &I, vpColor col)=0