42 #ifndef vpMbtKltPolygon_h
43 #define vpMbtKltPolygon_h
45 #include <visp/vpConfig.h>
47 #ifdef VISP_HAVE_OPENCV
49 #include <visp/vpMbtPolygon.h>
50 #include <visp/vpKltOpencv.h>
51 #include <visp/vpPlane.h>
52 #include <visp/vpDisplay.h>
53 #include <visp/vpGEMM.h>
54 #include <visp/vpHomography.h>
55 #include <visp/vpPlot.h>
80 std::map<int, vpImagePoint> initPoints;
82 std::map<int, vpImagePoint> curPoints;
84 std::map<int, int> curPointsInd;
86 unsigned int nbPointsCur;
88 unsigned int nbPointsInit;
90 unsigned int minNbPoint;
102 double compute_1_over_Z(
const double x,
const double y);
103 void computeP_mu_t(
const double x_in,
const double y_in,
double& x_out,
double& y_out,
const vpMatrix& cHc0);
104 bool isTrackedFeature(
const int id);
110 unsigned int computeNbDetectedCurrent(
const vpKltOpencv& _tracker);
151 void removeOutliers(
const vpColVector& weight,
const double &threshold_outlier);
160 void updateMask(IplImage* _mask,
unsigned int _nb = 255,
unsigned int _shiftBorder = 0);
166 static bool isInside(
const std::vector<vpImagePoint>& roi,
const double i,
const double j);
167 static bool intersect(
const vpImagePoint& p1,
const vpImagePoint& p2,
const double i,
const double j,
const double i_test,
const double j_test);
172 #endif // VISP_HAVE_OPENCV
Implementation of a polygon of the model containing points of interest. It is used by the model-based...
Definition of the vpMatrix class.
unsigned int getInitialNumberPoint() const
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
unsigned int getNbPointsCur() const
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.
vpColVector getCurrentNormal() const
virtual void setCameraParameters(const vpCameraParameters &_cam)
vpCameraParameters & getCameraParameters()
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.
std::map< int, int > & getCurrentPointsInd()
std::map< int, vpImagePoint > & getCurrentPoints()
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
bool hasEnoughPoints() const