Browse Source

renaming a func

master
phyto 2 years ago
parent
commit
1420deaf5e
  1. 2
      Fonderie/interpolator.c
  2. 6
      Fonderie/metriques.c
  3. 4
      Fonderie/metriques.h

2
Fonderie/interpolator.c

@ -66,7 +66,7 @@ fprintf(stderr, "IdxValues array at %p\n", idxvalues); @@ -66,7 +66,7 @@ fprintf(stderr, "IdxValues array at %p\n", idxvalues);
/* compute all the needed values */
for (idx=0; idx<nombre; 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) {
fprintf(stderr, "%s: err %d get metric of '%s'\n", __func__,
foo, filename);

6
Fonderie/metriques.c

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

4
Fonderie/metriques.h

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

Loading…
Cancel
Save