42 #ifndef vpMbtDistanceKltPoints_h
43 #define vpMbtDistanceKltPoints_h
45 #include <visp/vpConfig.h>
47 #if (defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION >= 0x020100))
51 #include <visp/vpMbtPolygon.h>
52 #include <visp/vpKltOpencv.h>
53 #include <visp/vpPlane.h>
54 #include <visp/vpDisplay.h>
55 #include <visp/vpGEMM.h>
56 #include <visp/vpHomography.h>
57 #include <visp/vpPlot.h>
58 #include <visp/vpMbHiddenFaces.h>
83 std::map<int, vpImagePoint> initPoints;
85 std::map<int, vpImagePoint> curPoints;
87 std::map<int, int> curPointsInd;
89 unsigned int nbPointsCur;
91 unsigned int nbPointsInit;
93 unsigned int minNbPoint;
109 double compute_1_over_Z(
const double x,
const double y);
110 void computeP_mu_t(
const double x_in,
const double y_in,
double& x_out,
double& y_out,
const vpMatrix& cHc0);
111 bool isTrackedFeature(
const int id);
117 unsigned int computeNbDetectedCurrent(
const vpKltOpencv& _tracker);
161 void removeOutliers(
const vpColVector& weight,
const double &threshold_outlier);
170 #if (VISP_HAVE_OPENCV_VERSION >= 0x020408)
171 void updateMask(cv::Mat &mask,
unsigned char _nb = 255,
unsigned int _shiftBorder = 0);
173 void updateMask(IplImage* mask,
unsigned char _nb = 255,
unsigned int _shiftBorder = 0);
179 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
198 static bool isInside(
const std::vector<vpImagePoint>& roi,
const double i,
const double j);
199 static bool intersect(
const vpImagePoint& p1,
const vpImagePoint& p2,
const double i,
const double j,
const double i_test,
const double j_test);
204 #endif // VISP_HAVE_OPENCV
Definition of the vpMatrix class.
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
bool hasEnoughPoints() const
Implementation of a polygon of the model containing points of interest. It is used by the model-based...
std::map< int, int > & getCurrentPointsInd()
This class aims to compute the homography wrt.two images.
Implementation of a polygon of the model used by the model-based tracker.
Generic class defining intrinsic camera parameters.
unsigned int getInitialNumberPoint() const
vp_deprecated unsigned int getNbPointsCur() const
std::map< int, vpImagePoint > & getCurrentPoints()
virtual void setCameraParameters(const vpCameraParameters &_cam)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
Wrapper for the KLT (Kanade-Lucas-Tomasi) feature tracker implemented in OpenCV.
vpMbtPolygon * polygon
Pointer to the polygon that define a face.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
unsigned int getCurrentNumberPoints() const
vpColVector getCurrentNormal() const
vpCameraParameters & getCameraParameters()