| 32 | } |
| 33 | |
| 34 | array clamp(const array &in, float min = 0.0f, float max = 255.0f) { |
| 35 | return ((in < min) * 0.0f + (in > max) * 255.0f + |
| 36 | (in >= min && in <= max) * in); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * radius effects the level of details that will effected during sharpening |
no outgoing calls
no test coverage detected