42#include <visp3/core/vpConfig.h>
43#include <visp3/core/vpDisplay.h>
44#include <visp3/core/vpImage.h>
45#include <visp3/core/vpMatrix.h>
46#include <visp3/me/vpMe.h>
86 } vpMeSiteDisplayType;
95#ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
135 vpMeSite(
const double &ip,
const double &jp);
160 unsigned int computeMaskIndex(
const double alpha,
const vpMe &me);
224 inline unsigned int getIndex()
const {
return m_index_prev; }
234 void init(
const double &ip,
const double &jp,
const double &alphap);
239 void init(
const double &ip,
const double &jp,
const double &alphap,
const double &convltp);
244 void init(
const double &ip,
const double &jp,
const double &alphap,
const double &convltp,
const int &sign);
249 void init(
const double &ip,
const double &jp,
const double &alphap,
const double &convltp,
const int &sign,
const double &contrastThreshold);
275 std::vector<vpMeSite> &outputHypotheses,
const unsigned numCandidates);
356 return 2.0 * threshold;
360 return threshold / (100.0 * n_d * trunc(n_d / 2.0));
377 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
vpMeSite &vpMeS);
428 const vpMeSiteState &state = NO_SUPPRESSION);
445 static void display(
const vpImage<vpRGBa> &I,
const double &i,
const double &j,
446 const vpMeSiteState &state = NO_SUPPRESSION);
449 vpMeSiteDisplayType m_selectDisplay;
450 vpMeSiteState m_state;
451 unsigned int m_index_prev;
Definition of the vpImage class member functions.
static double sqr(double x)
Performs search in a given direction(normal) for a given distance(pixels) for a given 'site'....
int m_mask_sign
Mask sign.
@ OUTSIDE_ROI_MASK
Point is outside the region of interest mask, but retained in the ME list.
@ CONSTRAST
Deprecated. Point not tracked due to a likelihood problem, but retained in the ME list....
@ TOO_NEAR
Point not tracked anymore, since too near from its neighbor.
@ THRESHOLD
Point not tracked due to the likelihood that is below the threshold, but retained in the ME list.
@ CONTRAST
Point not tracked due to a contrast problem, but retained in the ME list.
@ M_ESTIMATOR
Point detected as an outlier during virtual visual-servoing.
@ NO_SUPPRESSION
Point successfully tracked.
void setDisplay(vpMeSiteDisplayType select)
double m_ifloat
Subpixel coordinates along i of a site.
double m_normGradient
Convolution of Site in previous image.
void setAlpha(const double &a)
double getContrastThreshold() const
double m_convlt
Convolution of Site in previous image.
void setWeight(const double &weight)
double m_alpha
Angle of tangent at site.
static double distance(const vpMeSite &S1, const vpMeSite &S2)
unsigned int getIndex() const
double computeFinalThreshold(const vpMe &me) const
double m_contrastThreshold
Old likelihood ratio threshold (to be avoided) or easy-to-use normalized threshold: minimal contrast.
vpMeSiteState getState() const
int m_j
Integer coordinates along j of a site.
int m_i
Integer coordinate along i of a site.
double get_ifloat() const
double m_jfloat
Subpixel coordinates along j of a site.
static double sqrDistance(const vpMeSite &S1, const vpMeSite &S2)
double m_weight
Uncertainty of point given as a probability between 0 and 1.
double get_jfloat() const
void setContrastThreshold(const double &thresh, const vpMe &me)
void setState(const vpMeSiteState &flag)
bool getUseAutomaticThreshold() const
Indicates if the contrast threshold of the vpMeSite is automatically computed.
vpLikelihoodThresholdType getLikelihoodThresholdType() const
double getThreshold() const
unsigned int getMaskSize() const
double getMinThreshold() const