| 163 | }; |
| 164 | |
| 165 | static inline |
| 166 | double |
| 167 | rampSmooth(double t) |
| 168 | { |
| 169 | t *= 2.; |
| 170 | if (t < 1) { |
| 171 | return t * t / (2.); |
| 172 | } else { |
| 173 | t -= 1.; |
| 174 | |
| 175 | return -0.5 * (t * (t - 2) - 1); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | class RectangleProcessorBase |
| 180 | : public ImageProcessor |