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

Comparing ray/src/px/pf3.c (file contents):
Revision 2.21 by greg, Fri Dec 8 17:56:26 2023 UTC vs.
Revision 2.22 by greg, Thu Dec 14 18:53:58 2023 UTC

# Line 102 | Line 102 | dobox(                 /* simple box filter */
102                  scan = scanin[y%barsize];
103                  for (x = xcent+1-xbrad; x <= xcent+xbrad; x++) {
104                          offs = x < 0 ? xres : x >= xres ? -xres : 0;
105 <                        if (offs && !wrapfilt)
105 >                        if ((offs != 0) & !wrapfilt)
106                                  continue;
107                          d = x_c < 1.0 ? x_c*x - (c+.5) : (double)(x - xcent);
108                          if (d < -0.5) continue;
# Line 143 | Line 143 | dogauss(               /* gaussian filter */
143                  scan = scanin[y%barsize];
144                  for (x = xcent-xrad; x <= xcent+xrad; x++) {
145                          offs = x < 0 ? xres : x >= xres ? -xres : 0;
146 <                        if (offs && !wrapfilt)
146 >                        if ((offs != 0) & !wrapfilt)
147                                  continue;
148                          dx = (x_c*(x+.5) - (c+.5))/rad;
149                          weight = lookgauss(dx*dx + dy*dy);
# Line 180 | Line 180 | dothresh(      /* gaussian threshold filter */
180                  for (c = -orad; c <= orad; c++) {
181                          offs = ccent+c < 0 ? ncols :
182                                          ccent+c >= ncols ? -ncols : 0;
183 <                        if (offs && !wrapfilt)
183 >                        if ((offs != 0) & !wrapfilt)
184                                  continue;
185                          x = ringndx[c*c + r*r];
186                          if (x < 0) continue;
# Line 197 | Line 197 | dothresh(      /* gaussian threshold filter */
197                  if (d >= 0.5) break;
198                  for (x = xcent+1-xbrad; x <= xcent+xbrad; x++) {
199                          offs = x < 0 ? xres : x >= xres ? -xres : 0;
200 <                        if (offs && !wrapfilt)
200 >                        if ((offs != 0) & !wrapfilt)
201                                  continue;
202                          d = x_c < 1.0 ? x_c*x - (ccent+.5) : (double)(x - xcent);
203                          if (d < -0.5) continue;
204                          if (d >= 0.5) break;
205                          sumans(x, y, rcent, ccent,
206 <                        pickfilt((*ourbright)(scanin[y%barsize]+(x+offs)*NCSAMP)));
206 >                                pickfilt((*ourbright)(scanin[y%barsize]+(x+offs)*NCSAMP)));
207                  }
208          }
209   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines