this implements simple unsharp mask sharpening. it operates on a pixel level
and is resolution dependent. it is best applied just before the output, in
display referred after a curve.
for scene-referred deblurring, see the deconv
module.
input
output
amount
how much to increase sharpnessthrs
the threshold to not boost noise