6 #include "drawInterface.h" 7 #include "src/hullmodel.h" 16 bool setParameters(QDomNode &config);
22 bool draw(QImage **image);
24 bool paint(QImage *image);
25 void displayShowHull(QPainter &painter, SpHullModel hull);
26 void displayShowAxis(QPainter &painter, SpHullModel hull);
27 void displayShowNormals(QPainter &painter, SpHullModel hull);
28 void displayShowHead(QPainter &painter,
DeguModel *d,
int offX,
int offY);
29 void displayShowTrajectory(QPainter &painter, std::deque<
point2D<int> > &trajectory);
33 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0);
34 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
35 static double histogramDistance(cv::MatND h1, cv::MatND h2);
36 static double distanceToSegment(
int i1,
int i2, std::vector<cv::Point> &contour);
37 static bool lineSegmentIntersection(cv::Point3f &line,
38 cv::Point2f &p1, cv::Point2f &p2, cv::Point2f &r);
39 static bool getGeneralLineForm(cv::Point2f p1, cv::Point2f p2,
41 static bool getGeneralLineForm(
float x,
float y,
float dx,
float dy,
48 static int getContourToLineIntersection(std::vector<cv::Point> &hull,
50 cv::Point2f &r1, cv::Point2f &r2,
51 int *n1 = NULL,
int *n2 = NULL);
54 void getNormalIntersections(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
55 cv::Point2f &r1, cv::Point2f &r2,
int n1,
int n2,
60 void setForegroundSegment(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
62 float dx,
float dy,
int &I1,
int &I2);
66 static int getContourToLineIntersectionIndexed(std::vector<cv::Point> &polygon,
68 cv::Point2f &r1, cv::Point2f &r2,
72 static int movementCount(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
Definition: geometric.h:103
Definition: drawInterface.h:23
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: degumodel.h:35