1 #ifndef HULLTOOBJECTMODULE_H 2 #define HULLTOOBJECTMODULE_H 8 #include "ModuleInterface.h" 9 #include "src/hullmodel.h" 19 bool setParameters(QDomNode& config);
28 bool updateParameters();
30 void completeBlobs(std::deque<SpRMMMobileObject> &objects, QImage *fg, QImage *current);
31 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0);
32 static bool movementFound(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
33 static double histogramDistance(cv::MatND h1, cv::MatND h2);
34 static double distanceToSegment(
int i1,
int i2, std::vector<cv::Point> &contour);
35 static bool lineSegmentIntersection(cv::Point3f &line,
36 cv::Point2f &p1, cv::Point2f &p2, cv::Point2f &r);
37 static bool getGeneralLineForm(cv::Point2f p1, cv::Point2f p2,
39 static bool getGeneralLineForm(
float x,
float y,
float dx,
float dy,
46 static int getContourToLineIntersection(std::vector<cv::Point> &hull,
48 cv::Point2f &r1, cv::Point2f &r2,
49 int *n1 = NULL,
int *n2 = NULL);
52 void getNormalIntersections(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
53 cv::Point2f &r1, cv::Point2f &r2,
int n1,
int n2,
58 void setForegroundSegment(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
60 float dx,
float dy,
int &I1,
int &I2);
64 static int getContourToLineIntersectionIndexed(std::vector<cv::Point> &polygon,
66 cv::Point2f &r1, cv::Point2f &r2,
70 static int movementCount(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
81 #endif // HULLTOOBJECTMODULE_H Definition: geometric.h:103
Definition: HullToObjectModule.h:13
Definition: ModuleInterface.h:43
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39