forked from tTh/FloatImg
renaming a func
This commit is contained in:
parent
da8cfd1305
commit
1420deaf5e
|
@ -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);
|
||||
|
|
|
@ -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) {
|
|||
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) {
|
|||
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);
|
||||
|
|
|
@ -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…
Reference in New Issue