Bonjour
j'ai un code comme ça :
#elif
PROGRAM == DO_SEGMENTATIONexitCode = (doSegmentation(argc, argv)) ? 0 : 1; // 1
avec :
bool doSegmentation(int argc, PCSTR argv[])
{
if (argc < 1) {
puts("Wrong parameters: usage: recognition imageFile");
returnfalse;
}
puts("here");getch();
e_constants.reset();
// Loading
if (DUMP_PROGRESS)
printf("Image: %s\n Loading...", argv[1]);
ImageFile image;
puts("here1");getch();
VERIF(image.load(argv[1])); // 2 ====
puts("here2");getch();
image.showWindow("Input image");
}
Questions :
1. D'abord je ne coprent pas la ligne du code,je ne comprend pas la notation ? 0:1
2. que veux dire la ligne du code 2
3.mon programme affiche uniquement les messages here et here1 , pourquoi??
merci d'avance