|
|
|
@ -73,7 +73,7 @@ for (idx=0; idx<nombre; idx++) { |
|
|
|
|
foo, filename); |
|
|
|
|
return -1; |
|
|
|
|
} |
|
|
|
|
if (verbosity) |
|
|
|
|
if (verbosity > 1) |
|
|
|
|
fprintf(stderr, "%5d %s %f\n", idx, filename, metrique); |
|
|
|
|
idxvalues[idx].idx = idx; |
|
|
|
|
idxvalues[idx].value = metrique; |
|
|
|
@ -84,7 +84,7 @@ if (method) { |
|
|
|
|
qsort(idxvalues, nombre, sizeof(IdxValue), cmp_idxvalues); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (verbosity) { |
|
|
|
|
if (verbosity > 1) { |
|
|
|
|
for (idx=0; idx<nombre; idx++) { |
|
|
|
|
printf("%5d %9.6f %5d\n", idx, |
|
|
|
|
idxvalues[idx].value, idxvalues[idx].idx); |
|
|
|
@ -151,7 +151,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) { |
|
|
|
|
cptr = globbuf.gl_pathv[curpix]; /* aliasing filename */ |
|
|
|
|
|
|
|
|
|
/* read the next file in B */ |
|
|
|
|
fprintf(stderr, "%5d / %5ld : loading %s\r", idx, |
|
|
|
|
fprintf(stderr, "%5d / %5ld : load %s\r", idx, |
|
|
|
|
globbuf.gl_pathc, cptr); |
|
|
|
|
foo = fimg_load_from_dump(cptr, &B); |
|
|
|
|
if (foo) { |
|
|
|
@ -208,11 +208,17 @@ return 0; |
|
|
|
|
/* -------------------------------------------------------------- */ |
|
|
|
|
void help(void) |
|
|
|
|
{ |
|
|
|
|
puts("\tINTERPOLATOR\noptions:"); |
|
|
|
|
puts("\tINTERPOLATOR"); |
|
|
|
|
puts("usage:\n\tinterpolator [options] <inglob> <outdir> <nbsteep>"); |
|
|
|
|
|
|
|
|
|
/* may be we can make options incoherent, like
|
|
|
|
|
* the options of 'fonderie' software ? |
|
|
|
|
*/ |
|
|
|
|
puts("options:"); |
|
|
|
|
puts("\t-S nn\tmysterious sort"); |
|
|
|
|
puts("\t-v\tincrease verbosity"); |
|
|
|
|
puts("\t-w nn\tinput effect"); |
|
|
|
|
puts("\t-x nn\toutput effect"); |
|
|
|
|
|
|
|
|
|
exit(0); |
|
|
|
|
} |
|
|
|
|