-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclassifier_emc.h
More file actions
30 lines (27 loc) · 824 Bytes
/
Copy pathclassifier_emc.h
File metadata and controls
30 lines (27 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef CLASSIFIER_EMC_H
#define CLASSIFIER_EMC_H
#include "classifierinterface.h"
#include "classifier_em.h"
class ClassifierEMC : public ClassifierInterface
{
public:
ClassifierEMC();
void trainData(const std::vector<cv::Point>& data, const std::vector<int>& labels);
int classify(int x, int y);
QString toQString() const;
//
void setParameters(
int numOfClasses,
int numClusters, int covMatrixType,
int termCrit_Type, int termCrit_MaxNumIterations, float termCrit_Accuracy);
private:
std::vector<cv::EM> cls;
int par_NumOfClasses;
int par_NumClusters;
int par_CovMatrixType;
//
int par_TermCrit_Type;
int par_TermCrit_MaxNumIterations;
float par_TermCrit_Accuracy;
};
#endif // CLASSIFIER_EM_H