Function sharpen

Source
fn sharpen(img: &mut Frame, scratch: &mut Frame, amount: f32, r: usize)
Expand description

Unsharp mask: img + amount * (img - box_blur(img, r)). One separable box pass; the vertical pass reads the h-blurred scratch and combines with the untouched original in place.