counting negative values

This commit is contained in:
2019-09-25 09:21:00 +02:00
parent d294102ca4
commit 54269cc007
3 changed files with 28 additions and 1 deletions

View File

@@ -31,7 +31,12 @@ for (foo=0; foo<4; foo++)
printf(" %c %14.6f\n", "RGBA"[foo], moyennes[foo]);
fvalue = fimg_get_maxvalue(fimg);
printf("max value %f\n", fvalue);
printf("max value %f\n", fvalue);
foo = fimg_count_negativ(fimg);
if (foo) {
fprintf(stderr, "%d negative values\n", foo);
}
return 0;
}