Commit c0dabb39 authored by Charron Maxime's avatar Charron Maxime
Browse files

Delete boucle.c

parent cd3599ae
inputImgWidth
inputImgHeight
inputImgPath
inputImgGrey
searchImgWidth
searchImgHeight
searchImgPath
searchImgGrey
float D = 1;
int coordx = 0;
int coordy = 0;
while (D != 0) {
// parcours de l'inputImg
for (int x = 0; x < ((inputImgWidth - searchImgWidth) / 3); x++) {
for (int y = 0; y < ((inputImgHeight - searchImgHeight) / 3); y++) {
// parcours de l'inputImg de la taille de la searchImg
for (int i = x; i < ((x + searchImgWidth) / 3); i++) {
for (int j = y; j < ((y + searchImgHeight) / 3; j++) {
D = (inputImgGrey[width * y + x] - searchImgGrey[width * y + x]) * (inputImgGrey[width * y + x] - searchImgGrey[width * y + x])
return (x, y)
}
}
}
}
}
///recuperer les coocrdonnees x et y pour peindre en rouge le contours ??
for (int i = x; i < ((x + searchImgWidth)); i++) {
mettre en rouge(i, y);
mettre en rouge(i, y + searchImgHeight);
}
for (int j = y; j < ((y + searchImgHeight); j++) {
mettre en rouge(x, j);
mettre en rouge(x + searchImgWidth, j);
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment