1 #ifndef SEGMENTATIONMODULE_H 2 #define SEGMENTATIONMODULE_H 8 #include "ModuleInterface.h" 11 #include "ReliabilityBg.h" 13 #include "opencv2/opencv.hpp" 22 bool setParameters(QDomNode& config);
31 bool updateParameters();
34 bool setGlobalZones();
36 bool insideInZone(
int i,
int j);
37 bool outsideOutZone(
int i,
int j);
39 void updateBGGlobally(QImage *current);
41 bool readImageOnDisk(QString dir,QImage **o_rpOutputImage);
43 void tuneParameters();
46 static int getSegmentation(cv::Mat& input, cv::Mat& output, cv::Mat& bg, cv::Mat& mask,
int threshold);
49 void getDiff(QImage *, QImage *);
67 bool m_tuningActivated;
68 int m_currentTuneValue;
74 int globalValidPoints;
75 bool global_validated;
77 bool different_bg_current;
78 std::map<int, std::deque<RLESegment> > RLEglobal;
80 zoneType zInType, zOutType;
81 QSharedPointer<world::Zone> zin3D, zout3D;
82 QSharedPointer<world::Zone2D> zin2D, zout2D;
83 QSharedPointer<world::ZoneH> zinH, zoutH;
90 void applyAperture(QImage *, QImage *);
91 void updateBG(QImage *);
92 std::map<int, std::deque<int> > globalPoints;
94 cv::Mat featureMap, reliabilityMap;
95 float minScaleThreshold, maxScaleThreshold, minScaleThresholdRatio, maxScaleThresholdRatio;
99 bool chromaticSegmentationIsActivated;
105 bool chromaticSegmentationFromHSVdataFiles;
106 std::vector<std::vector<int> > hsvFGparams;
107 std::vector<std::vector<int> > hsvBGparams;
108 std::vector<std::vector<int> > readHSVparamsFile(QString fileName);
114 enum BG_FG_ErodeDilate
123 #endif // SEGMENTATIONMODULE_H Definition: segmentationmodule.h:16
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