renaming a func

This commit is contained in:
phyto 2020-12-07 10:30:18 +01:00
parent da8cfd1305
commit 1420deaf5e
3 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ fprintf(stderr, "IdxValues array at %p\n", idxvalues);
/* compute all the needed values */ /* compute all the needed values */
for (idx=0; idx<nombre; idx++) { for (idx=0; idx<nombre; idx++) {
filename = ptr_glob->gl_pathv[idx]; filename = ptr_glob->gl_pathv[idx];
foo = get_float_metric_from_file(filename, &metrique); foo = get_float_metric_a_from_file(filename, &metrique);
if (foo) { if (foo) {
fprintf(stderr, "%s: err %d get metric of '%s'\n", __func__, fprintf(stderr, "%s: err %d get metric of '%s'\n", __func__,
foo, filename); foo, filename);

View File

@ -13,7 +13,7 @@ extern int verbosity;
/* /*
* premier essai... * premier essai...
*/ */
int get_float_metric(FloatImg *pimg, float *where) int get_float_metric_a(FloatImg *pimg, float *where)
{ {
float means[4]; float means[4];
int foo; int foo;
@ -31,7 +31,7 @@ if (foo) {
return 0; return 0;
} }
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
int get_float_metric_from_file(char *fname, float *where) int get_float_metric_a_from_file(char *fname, float *where)
{ {
FloatImg image; FloatImg image;
int foo; int foo;
@ -43,7 +43,7 @@ if (foo) {
return foo; return foo;
} }
fval = -1.0; /* sensible default value */ fval = -1.0; /* sensible default value */
foo = get_float_metric(&image, &fval); foo = get_float_metric_a(&image, &fval);
*where = fval; *where = fval;
// fprintf(stderr, "metric of '%s' = %f\n", fname, fval); // fprintf(stderr, "metric of '%s' = %f\n", fname, fval);

View File

@ -6,7 +6,7 @@
/* first experiments */ /* first experiments */
int get_float_metric(FloatImg *pimg, float *where); int get_float_metric_a(FloatImg *pimg, float *where);
int get_float_metric_from_file(char *imgname, float *where); int get_float_metric_a_from_file(char *imgname, float *where);
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */