1 #ifndef REGIONALSEGMENTATIONMODULE_H 2 #define REGIONALSEGMENTATIONMODULE_H 8 #include "ModuleInterface.h" 9 #include "src/hullmodel.h" 19 bool setParameters(QDomNode& config);
28 bool updateParameters();
30 void completeBlobs(std::vector<Blob> &blobs, 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,
57 void setForegroundSegment(cv::Mat &f, cv::Rect &roi, std::vector<cv::Point> &hull,
59 float dx,
float dy,
int &I1,
int &I2);
63 static int getContourToLineIntersectionIndexed(std::vector<cv::Point> &polygon,
65 cv::Point2f &r1, cv::Point2f &r2,
69 static int movementCount(cv::Mat f,
int wsize,
int i0,
int j0, cv::Rect roi);
84 #endif // REGIONALSEGMENTATIONMODULE_H Definition: geometric.h:103
Definition: ModuleInterface.h:43
Definition: regionalSegmentationModule.h:13
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39