more cleanup

This commit is contained in:
2020-09-07 13:13:03 +02:00
parent 6228533479
commit 3cf887e103
2 changed files with 22 additions and 13 deletions

View File

@@ -409,6 +409,7 @@ int essai_histogramme(char *fname, int k)
{
FloatImg fimg;
int foo;
fprintf(stderr, ">>> %s ( '%s' %d )\n", __func__, fname, k);
foo = fimg_create_from_dump(fname, &fimg);
@@ -419,13 +420,15 @@ if (foo) {
foo = fimg_essai_histo(&fimg, "out.png", k);
if (foo) {
fprintf(stderr, "essai_histo -> %d\n", foo);
fprintf(stderr, "essai_histo -> error %d\n", foo);
return foo;
}
fimg_destroy(&fimg);
fprintf(stderr, "\\o/ end of %s\n", __func__);
return -1;
return 0;
}
/* --------------------------------------------------------------------- */
enum nCmd { Equalize=1, Rotate, Sfx0, F3x3, MIRE, Wfits, Wpng, Wtiff,
@@ -536,7 +539,7 @@ switch(opt) {
foo = essai_ecriture_tiff(filename);
break;
case Histo:
foo = essai_histogramme(filename, 0);
foo = essai_histogramme(filename, 98765);
break;
default:
fprintf(stderr, "%s : bad command\n", command);