1 #ifndef BLOBLRBTFROMBGSUBSTRACTIONMODEL3_H 2 #define BLOBLRBTFROMBGSUBSTRACTIONMODEL3_H 7 #include <QSharedPointer> 9 #include <opencv2/core.hpp> 11 #include "reliabilitysinglemodelinterface.h" 31 virtual void initInstanceAttributes();
35 virtual void initDynamicsAttributes();
38 virtual void copy(SpReliabilitySingleModelInterface);
41 virtual void copy_structure(SpReliabilitySingleModelInterface);
44 virtual void setParameters(QDomNode &i_parameters);
59 virtual bool updateInstance(
BoundingBox &, std::set<SpRMMHypothesis, hypothesesOrderedByBestProbabilityOperator> &);
69 virtual void updateModelDynamics();
72 virtual void setProbabilityAndReliability();
75 virtual void setForwardInterface();
78 virtual bool draw(QPainter &painter);
80 virtual bool draw(QPainter &painter,
int r,
int g,
int b);
91 void updateAttributeDynamics(
double data,
double RData,
double acuity,
94 void updateAttributeDynamicsNoData(
double estimate,
double acuity,
double currentCooling,
103 double getRightReliability(
BoundingBox &boundingBox);
104 double getBottomReliability(
BoundingBox &boundingBox);
105 double getTopReliability(
BoundingBox &boundingBox);
107 double contrastGaussianMean(
int x,
int y, QImage &cn);
108 double contrastGaussianMeanFG(
int x,
int y, QImage *cn, QImage *fg);
109 void addLocalBoundPoints(
BoundingBox &r, Bound bound,
float reliability);
112 static const double R_MIN;
113 static const bool USE_GAUSSIAN;
114 static const int GAUSSIAN_SIZE;
115 static const bool USE_FG;
116 static const bool USE_SQUARE_DISTANCE;
117 static const bool USE_MAX;
118 static const bool USE_MEAN;
119 static const bool USE_MAX_WEIGHTED;
120 static const bool USE_MEAN_WEIGHTED;
122 static const int GF7[];
123 static const int GF5[];
124 static const int GF3[];
126 double m_minimalAttributeVelocityReliability;
127 double m_minimalAttributeAccelerationReliability;
128 double m_minimalWidth;
129 double m_minimalHeight;
131 bool m_useReliability;
132 bool m_useFeatureMap;
139 bool m_build2DBoundReliabilityImage;
140 bool m_activateProjectedBlobCorrection;
141 QImage boundsReliability;
142 double localMaxBound;
143 bool currentBoundImageOK;
144 std::map< int, std::map<int, double> > localBoundList;
146 std::vector<float> leftBoundListRel;
147 std::vector<cv::Point2d> leftBoundListPos;
148 std::vector<float> rightBoundListRel;
149 std::vector<cv::Point2d> rightBoundListPos;
150 std::vector<float> topBoundListRel;
151 std::vector<cv::Point2d> topBoundListPos;
152 std::vector<float> bottomBoundListRel;
153 std::vector<cv::Point2d> bottomBoundListPos;
158 typedef QSharedPointer<BlobLRBTFromBGSubstractionModel3> SpBlobLRBTFromBGSubstractionModel3;
161 #endif // BLOB2DFROMBGSUBSTRACTIONMODEL3_H Definition: BlobLRBTFromBGSubstractionModel3.h:16
Definition: reliabilityattribute.h:101
Definition: reliabilitysinglemodelinterface.h:96
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: reliabilityattribute.h:76
Definition: gtstructures.h:32
Definition: BackgroundRecLigth.h:20