Mercurial > hg > minc-tools
changeset 2338:59f1bf3119f3
Fix pct_T calculation by taking into account a possibly non-zero histogram floor
author | bert <bert> |
---|---|
date | Mon, 25 Jul 2005 19:55:37 +0000 |
parents | c16224e56bb5 |
children | c67f3b6f11c9 |
files | progs/mincstats/mincstats.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/progs/mincstats/mincstats.c +++ b/progs/mincstats/mincstats.c @@ -5,7 +5,10 @@ * University of Queensland, Australia * * $Log: mincstats.c,v $ - * Revision 1.14.2.3 2005-03-16 19:02:52 bert + * Revision 1.14.2.4 2005-07-25 19:55:37 bert + * Fix pct_T calculation by taking into account a possibly non-zero histogram floor + * + * Revision 1.14.2.3 2005/03/16 19:02:52 bert * Port changes from 2.0 branch * * Revision 1.14.2.2 2004/10/18 15:02:13 bert @@ -1050,6 +1053,7 @@ stats->pct_T = ((double)pctt_bin + (pctT - cdf[pctt_bin]) * pdf[pctt_bin + 1]) * hist_sep; } + stats->pct_T += hist_centre[0]; /* Add histogram minimum */ switch (BMTMethod) { case BMT_KITTLER: