39 #ifndef vpMbtDistanceKltPoints_h
40 #define vpMbtDistanceKltPoints_h
42 #include <visp3/core/vpConfig.h>
44 #if defined(VISP_HAVE_MODULE_KLT) && (defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION >= 0x020100))
48 #include <visp3/core/vpPolygon3D.h>
49 #include <visp3/klt/vpKltOpencv.h>
50 #include <visp3/core/vpPlane.h>
51 #include <visp3/core/vpDisplay.h>
52 #include <visp3/core/vpGEMM.h>
53 #include <visp3/vision/vpHomography.h>
54 #include <visp3/mbt/vpMbHiddenFaces.h>
79 std::map<int, vpImagePoint> initPoints;
81 std::map<int, vpImagePoint> curPoints;
83 std::map<int, int> curPointsInd;
85 unsigned int nbPointsCur;
87 unsigned int nbPointsInit;
89 unsigned int minNbPoint;
99 bool isTrackedKltPoints;
111 double compute_1_over_Z(
const double x,
const double y);
112 void computeP_mu_t(
const double x_in,
const double y_in,
double& x_out,
double& y_out,
const vpMatrix& cHc0);
113 bool isTrackedFeature(
const int id);
134 unsigned int computeNbDetectedCurrent(
const vpKltOpencv& _tracker);
186 inline bool isTracked()
const {
return isTrackedKltPoints;}
188 void removeOutliers(
const vpColVector& weight,
const double &threshold_outlier);
202 inline void setTracked(
const bool& track) {this->isTrackedKltPoints = track;}
204 #if (VISP_HAVE_OPENCV_VERSION >= 0x020408)
205 void updateMask(cv::Mat &mask,
unsigned char _nb = 255,
unsigned int _shiftBorder = 0);
207 void updateMask(IplImage* mask,
unsigned char _nb = 255,
unsigned int _shiftBorder = 0);
213 #endif // VISP_HAVE_OPENCV
Implementation of a matrix and operations on matrices.
void setTracked(const bool &track)
Implementation of an homogeneous matrix and operations on such kind of matrices.
Class to define colors available for display functionnalities.
vpMbHiddenFaces< vpMbtPolygon > * hiddenface
Pointer to the list of faces.
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()
Implementation of an homography and operations on homographies.
Implementation of a polygon of the model used by the model-based tracker.
Generic class defining intrinsic camera parameters.
unsigned int getInitialNumberPoint() const
std::map< int, vpImagePoint > & getCurrentPoints()
virtual void setCameraParameters(const vpCameraParameters &_cam)
Implementation of column vector and the associated operations.
Wrapper for the KLT (Kanade-Lucas-Tomasi) feature tracker implemented in OpenCV. Thus to enable this ...
vpMbtPolygon * polygon
Pointer to the polygon that define a face.
unsigned int getCurrentNumberPoints() const
vpColVector getCurrentNormal() const
vpCameraParameters & getCameraParameters()
bool useScanLine
Use scanline rendering.