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; |
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); |
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; |
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 |
|
} |