forked from tTh/FloatImg
minor tweaks
This commit is contained in:
parent
160a4afe7b
commit
3572966edb
|
@ -73,7 +73,7 @@ for (idx=0; idx<nombre; idx++) {
|
||||||
foo, filename);
|
foo, filename);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (verbosity)
|
if (verbosity > 1)
|
||||||
fprintf(stderr, "%5d %s %f\n", idx, filename, metrique);
|
fprintf(stderr, "%5d %s %f\n", idx, filename, metrique);
|
||||||
idxvalues[idx].idx = idx;
|
idxvalues[idx].idx = idx;
|
||||||
idxvalues[idx].value = metrique;
|
idxvalues[idx].value = metrique;
|
||||||
|
@ -84,7 +84,7 @@ if (method) {
|
||||||
qsort(idxvalues, nombre, sizeof(IdxValue), cmp_idxvalues);
|
qsort(idxvalues, nombre, sizeof(IdxValue), cmp_idxvalues);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verbosity) {
|
if (verbosity > 1) {
|
||||||
for (idx=0; idx<nombre; idx++) {
|
for (idx=0; idx<nombre; idx++) {
|
||||||
printf("%5d %9.6f %5d\n", idx,
|
printf("%5d %9.6f %5d\n", idx,
|
||||||
idxvalues[idx].value, idxvalues[idx].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 */
|
cptr = globbuf.gl_pathv[curpix]; /* aliasing filename */
|
||||||
|
|
||||||
/* read the next file in B */
|
/* 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);
|
globbuf.gl_pathc, cptr);
|
||||||
foo = fimg_load_from_dump(cptr, &B);
|
foo = fimg_load_from_dump(cptr, &B);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
|
@ -208,11 +208,17 @@ return 0;
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
void help(void)
|
void help(void)
|
||||||
{
|
{
|
||||||
puts("\tINTERPOLATOR\noptions:");
|
puts("\tINTERPOLATOR");
|
||||||
|
puts("usage:\n\tinterpolator [options] <inglob> <outdir> <nbsteep>");
|
||||||
|
|
||||||
/* may be we can make options incoherent, like
|
/* may be we can make options incoherent, like
|
||||||
* the options of 'fonderie' software ?
|
* 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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue