1 #ifndef DEGUTRACKINGMODEL_H 2 #define DEGUTRACKINGMODEL_H 4 #include "Blob2DFromBGSubstractionModel.h" 5 #include <opencv2/opencv.hpp> 10 #include <QSharedPointer> 12 #include "reliabilitysinglemodelinterface.h" 14 #include "src/hullmodel.h" 25 void initDynamicsAttributes();
30 void setParameters(QDomNode &i_parameters);
36 void updateDynamics();
40 void setBlobInterface();
45 void copy(SpReliabilitySingleModelInterface);
48 void makeHistoryGraph();
49 void makeHistoryGraph_Dynamics();
52 void checkHistory_Dynamics();
55 bool shapeAnalysis_Dynamics();
59 std::vector<uchar> pixels;
61 SpHullModel deguShape;
71 int m_first_color_range;
72 int m_second_color_range;
75 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0);
76 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
77 static double histogramDistance(cv::MatND h1, cv::MatND h2);
78 static double distanceToSegment(
int i1,
int i2, std::vector<cv::Point> &contour);
79 static bool lineSegmentIntersection(cv::Point3f &line,
80 cv::Point2f &p1, cv::Point2f &p2, cv::Point2f &r);
81 static bool getGeneralLineForm(cv::Point2f p1, cv::Point2f p2,
83 static bool getGeneralLineForm(
float x,
float y,
float dx,
float dy,
90 static int getContourToLineIntersection(std::vector<cv::Point> &hull,
92 cv::Point2f &r1, cv::Point2f &r2,
93 int *n1 = NULL,
int *n2 = NULL);
96 void getNormalIntersections(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
97 cv::Point2f &r1, cv::Point2f &r2,
int n1,
int n2,
102 void setForegroundSegment(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
104 float dx,
float dy,
int &I1,
int &I2);
109 static int getContourToLineIntersectionIndexed(std::vector<cv::Point> &polygon,
111 cv::Point2f &r1, cv::Point2f &r2,
115 static int movementCount(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
117 void findHead(SpHullModel hull);
120 cv::Point2f headLocation;
125 #endif // DEGUTRACKINGMODEL_H Definition: geometric.h:103
Definition: reliabilityattribute.h:101
Definition: reliabilityattribute.h:10
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: DeguTrackingModel.h:18
Definition: Blob2DFromBGSubstractionModel.h:14