From e76d08a87cd92799581a9529070f510da211ddb1 Mon Sep 17 00:00:00 2001 From: oguyon Date: Tue, 25 Jun 2024 21:42:27 -1000 Subject: [PATCH] verbose --- src/COREMOD_arith/image_stats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/COREMOD_arith/image_stats.c b/src/COREMOD_arith/image_stats.c index 525d3b08..1a1b25a5 100644 --- a/src/COREMOD_arith/image_stats.c +++ b/src/COREMOD_arith/image_stats.c @@ -424,6 +424,8 @@ double arith_image_percentile(const char *ID_name, double fraction) nelement = data.image[ID].md[0].nelement; + printf("IMAGE PERC %f, %ld pix\n", fraction, nelement);//TBE + void *array_raw = malloc(ImageStreamIO_typesize(datatype) * nelement); if(array_raw == NULL) { @@ -439,7 +441,7 @@ double arith_image_percentile(const char *ID_name, double fraction) case _DATATYPE_FLOAT: arrayF = array_raw; quick_sort_float(arrayF, nelement); - value = 0.0;//(double) arrayF[(long)(fraction * nelement)]; + value = (double) arrayF[(long)(fraction * nelement)]; break; case _DATATYPE_DOUBLE: