-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_allclasses.h
43 lines (33 loc) · 987 Bytes
/
test_allclasses.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef TEST_ALLCLASSES_H_INCLUDED
#define TEST_ALLCLASSES_H_INCLUDED
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <opencv2/opencv.hpp>
#include "opencv2/ml/ml.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/legacy/legacy.hpp"
using namespace std ;
using namespace cv ;
/**
* input :
* argv[1] :test samples file .
* argv[2] : SVM paramerters directory .
* output : confustion matrix .
* Functionality : Testing the module with one vs rest strategy .
**/
int main(int argc , char** argv );
/**
* input :
* w : wights for each class ,as the data-set are unbalanced .
* output : container of wights for classes .
* Functionality : inilize the wights for each class in the data-set .
**/
void init(map<string,float>& w);
#endif // TEST_ALLCLASSES_H_INCLUDED