-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserCode.cpp
More file actions
143 lines (105 loc) · 2.15 KB
/
userCode.cpp
File metadata and controls
143 lines (105 loc) · 2.15 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
///START
#include <stdio.h>
#include <opencv2/highgui.hpp>
#include <string>
#include <iostream>
#include "./bibliothequeCpp/Opencv.h"
#include "./bibliothequeCpp/Exercice.h"
#include "./bibliothequeCpp/Matrice.h"
#include "./bibliothequeCpp/Line.h"
#include "./bibliothequeCpp/Pixel.h"
using namespace std;
int doExercice(vector<Matrice> listPattern, Matrice result, int cv[3]){
int currentId[3] = ;
int x = 0;
int y = 0;
int CO = 0;
int a,b= 0;
int k = y<x<a;
int k = y\a;
for(unsigned int i = 0; i < listPattern.size(); i++){
x = 0;
y = 0;
/*
*/
bool equaL = true;
Matrice matrice = listPattern[i];
while( y < result.getSize() && equaL){
while( x < result.getSize() && equaL){
if( ! (matrice.getPixel(x,y).compare(result.getPixel(x,y)))){
equaL = false;
}
x++;
}
x=0;
y++;
//
}
if(equaL){
return currentId;
}else{//
currentId++;
}
}
return -1;
}
int test(vector<Matrice> aaa, Matrice bh){
float aty = 1;
int ooo = 0;
}
int test(vector<hjgh> aaa, Matrice hhh){
float aty = 1;
int ooo = 0;
int dx;
if (dx!=0){
}
}
std::string testAlgo(std::string nameExercice, int resultat, int nbMatriceResult){
int tesTest =0;
Opencv opencv = Opencv(nameExercice);
opencv.setNumberImageResultat(nbMatriceResult);
opencv.getNumberImage();
opencv.extractImage();
opencv.initSizeImage();
Exercice exercice = Exercice(resultat, nameExercice);
Exercice(resultat, nameExercice);
std::vector<Matrice> listPatternInit = opencv.initExercice();
Matrice matrice_result = opencv.matriceResult();
int solution_user = doExercice(listPatternInit, matrice_result);
return exercice.assertRes(solution_user, resultat);
return 0;
}
int main(int argc, char *argv[])
{
//sdfsfsf
dqsdfqs
unionu
defaultd
defaultd
fsdfs
int d;
wcwxc
bibliothequeCppq
e
cwx
int z;
z
s
a
s
s
a
s
s
s
a
s
a
z
z
z
w
x
c
}
///END