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

Comparing ray/src/px/pmblur2.c (file contents):
Revision 2.4 by greg, Fri Oct 5 18:54:40 2012 UTC vs.
Revision 2.6 by greg, Thu Aug 2 18:33:45 2018 UTC

# Line 52 | Line 52 | static int
52   headline(char *s, void *p)
53   {
54          IMGHEAD *ip = (IMGHEAD *)p;
55 <        char    fmt[32];
55 >        char    fmt[MAXFMTLEN];
56  
57          if (isview(s)) {
58                  ip->gotview += (sscanview(ip->vp, s) > 0);
# Line 207 | Line 207 | neigh_zmin(const float *zb, int n)
207   }
208  
209  
210 < /* Fill in missing pixels from immediate neighbors */
210 > /* Expand foreground pixels to mitigate aliasing/fill errors */
211   static void
212   fill_missing(void)
213   {
214          int     n, m;
215  
216          for (n = imres.xr*imres.yr; n--; )
217 <                if (zbuf[n] >= .9*FHUGE &&
218 <                                zbuf[m = neigh_zmin(zbuf,n)] < .9*FHUGE)
217 >                if (zbuf[n] > 1.25*zbuf[m = neigh_zmin(zbuf,n)])
218                          copycolor(imbuf[n], imbuf[m]);
219   }
220  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines