--- ray/src/px/pmblur2.c 2012/10/05 18:54:40 2.4 +++ ray/src/px/pmblur2.c 2012/10/13 05:18:18 2.5 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pmblur2.c,v 2.4 2012/10/05 18:54:40 greg Exp $"; +static const char RCSid[] = "$Id: pmblur2.c,v 2.5 2012/10/13 05:18:18 greg Exp $"; #endif /* * pmblur2.c - program to computer better motion blur from ranimove frames. @@ -207,15 +207,14 @@ neigh_zmin(const float *zb, int n) } -/* Fill in missing pixels from immediate neighbors */ +/* Expand foreground pixels to mitigate aliasing/fill errors */ static void fill_missing(void) { int n, m; for (n = imres.xr*imres.yr; n--; ) - if (zbuf[n] >= .9*FHUGE && - zbuf[m = neigh_zmin(zbuf,n)] < .9*FHUGE) + if (zbuf[n] > 1.25*zbuf[m = neigh_zmin(zbuf,n)]) copycolor(imbuf[n], imbuf[m]); }