ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mksource.c
(Generate patch)

Comparing ray/src/gen/mksource.c (file contents):
Revision 2.1 by greg, Tue Apr 12 03:30:43 2005 UTC vs.
Revision 2.2 by greg, Sat Jul 30 17:01:30 2005 UTC

# Line 234 | Line 234 | get_threshold(const TRITREE *tree)
234          memset((void *)exphisto, 0, sizeof(exphisto));
235          for (i = 0; i < NTRUNKBR; i++)
236                  get_ehisto(&tree->kid[i], exphisto);
237 <                                                /* use 99th percentile */
237 >                                                /* use 98th percentile */
238          for (i = 0; i < 256; i++)
239                  samptotal += exphisto[i];
240 <        samptotal /= 100;
240 >        samptotal /= 50;
241          for (i = 256; (--i > 0) & (samptotal > 0); )
242                  samptotal -= exphisto[i];
243          return(ldexp(.75, i-COLXS));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines