Skip to content

Commit

Permalink
verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
oguyon committed Jun 26, 2024
1 parent c2c951d commit e76d08a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/COREMOD_arith/image_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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:
Expand Down

0 comments on commit e76d08a

Please sign in to comment.