1 #ifndef __FOOTBALLCONTEXTMODULE_H 2 #define __FOOTBALLCONTEXTMODULE_H 4 #include "ModuleInterface.h" 7 #include <src/colorModelLearning.h> 8 #include <src/apparienceModelLearning.h> 15 bool m_trainColorModel;
21 typedef std::map<soccerClass, modelParameters> parametersMap;
22 typedef std::map<ColorModelType, colorModelLearning*> colorModelMap;
23 typedef std::pair<ColorModelType, colorModelLearning*> colorModelpair;
32 bool setParameters(QDomNode& config);
41 bool updateParameters();
44 QString m_modelsDirectory;
62 bool m_tA_trainColorModel;
63 bool m_tB_trainColorModel;
64 bool m_Ref_trainColorModel;
65 bool m_field_trainColorModel;
68 int n_clustersAppModel;
70 double m_bottomTh_Luma;
71 typeDistanceMetric m_dMetric;
73 bool m_tA_obtainHistogram;
74 bool m_tB_obtainHistogram;
75 bool m_Ref_obtainHistogram;
76 bool m_GKTA_obtainHistogram;
77 bool m_GKTB_obtainHistogram;
78 bool m_field_obtainHistogram;
80 bool m_tA_showHistogram;
81 bool m_tB_showHistogram;
82 bool m_Ref_showHistogram;
83 bool m_GKTA_showHistogram;
84 bool m_GKTB_showHistogram;
85 bool m_field_showHistogram;
87 bool m_tA_showColorModel;
88 bool m_tB_showColorModel;
89 bool m_Ref_showColorModel;
90 bool m_GKTA_showColorModel;
91 bool m_GKTB_showColorModel;
92 bool m_field_showColorModel;
95 std::map< playerPart, int > n_clustersTA_CM;
96 std::map< playerPart, int > n_clustersTB_CM;
97 std::map< playerPart, int > n_clustersRef_CM;
98 int n_clustersField_CM;
99 int n_clustersLines_CM;
104 QString Ref_filename;
105 QString Field_filename;
106 QString GKTA_filename;
107 QString GKTB_filename;
109 parametersMap modelsPar;
112 int m_modelsUpdatePeriod;
114 colorModelMap colorModels;
117 bool initColorModels();
118 void setColorModelsParameters(ColorModelType type,
bool fromTrained);
119 QString colorModelTypeToFileName(ColorModelType type);
121 void apparienceModelLearningProcess();
122 void teamASetAndLearningProcess();
123 void teamBSetAndLearningProcess();
124 void RefereeSetAndLearningProcess();
125 void FieldSetAndLearningProcess();
127 void defaultParameters();
130 #endif // FOOTBALLCONTEXTMODULE_H Definition: apparienceModelLearning.h:46
Definition: apparienceModelLearning.h:29
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
Definition: FootballContextModule.h:11