not ready for prime time

This commit is contained in:
le vieux
2020-11-16 11:12:29 +01:00
parent fdc2544ad1
commit 7c1ad9633a
3 changed files with 21 additions and 12 deletions

View File

@@ -16,6 +16,7 @@
#include "../floatimg.h"
#include "fonctions.h"
#include "glitches.h"
#include "crapulator.h"
#include "metriques.h"
@@ -83,10 +84,12 @@ if (method) {
qsort(idxvalues, nombre, sizeof(IdxValue), cmp_idxvalues);
}
for (idx=0; idx<nombre; idx++) {
printf("%5d %9.6f %5d\n", idx,
idxvalues[idx].value, idxvalues[idx].idx);
fflush(stdout);
if (verbosity) {
for (idx=0; idx<nombre; idx++) {
printf("%5d %9.6f %5d\n", idx,
idxvalues[idx].value, idxvalues[idx].idx);
fflush(stdout);
}
}
return 0;
@@ -115,7 +118,6 @@ memset(&globbuf, 0, sizeof(glob_t));
foo = glob(pattern, 0, NULL, &globbuf);
fprintf(stderr, "globbing '%s' -> %d, %ld files found\n",
pattern, foo, globbuf.gl_pathc);
if (0 == globbuf.gl_pathc) {
fprintf(stderr, "%s : no file found, aborting\n", __func__);
return -1;
@@ -135,8 +137,11 @@ w = iarray[0], h = iarray[1];
fprintf(stderr, "first image size : %dx%d\n", w, h);
fimg_create(&A, w, h, 3); pFirst = &A;
// brotche_rand48_a(&A, 0.10, 250.555);
fimg_create(&B, w, h, 3); pSecond = &B;
// brotche_rand48_a(&B, 0.10, 250.555);
fimg_create(&Out, w, h, 3);
// brotche_rand48_a(&Out, 0.10, 250.555);
ipng = 0;
for (idx=0; idx<globbuf.gl_pathc; idx++) {