Sharpen¶
Sharpens an image using unsharp mask.
Sharpen[image, r] is image + 2 (image - Blur[image, r]), so a single bright
pixel comes back with a ring of negative values around it:
$ wo 'Round[1000 ImageData[Sharpen[Image[{{0., 0., 0., 1., 0., 0., 0.}}], 1]]]'
{{0, 0, -199, 1398, -199, 0, 0}}
It shares Blur's radius specification, including the pair form and the cap
at half the image:
An integer image is rounded back onto the levels it can hold, and clipped to them:
A radius that is not a non-negative number is reported: