Digital Unsharp Masking
The same differencing principle is used in the unsharp-masking tool in many digital-imaging software packages, such as Adobe Photoshop and GIMP. The software applies a Gaussian blur to a copy of the original image and then compares it to the original. If the difference is greater than a user-specified threshold setting, the images are (in effect) subtracted. The threshold control constrains sharpening to image elements that differ from each other above a certain size threshold, so that sharpening of small image details, such as photographic grain, can be suppressed.
Digital unsharp masking is a flexible and powerful way to increase sharpness, especially in scanned images. However, it is easy to create unwanted and conspicuous edge effects, or increase image noise. However, these effects can be used creatively, especially if a single channel of an RGB or Lab image is sharpened. Undesired effects can be reduced by using a mask – particularly one created by edge detection – to only apply sharpening to desired regions, sometimes termed "smart sharpen".
Typically three settings control digital unsharp masking:
- Amount is listed as a percentage, and controls the magnitude of each overshoot (how much darker and how much lighter the edge borders become). This can also be thought of as how much contrast is added at the edges. It does not affect the width of the edge rims.
- Radius affects the size of the edges to be enhanced or how wide the edge rims become, so a smaller radius enhances smaller-scale detail. Higher Radius values can cause halos at the edges, a detectable faint light rim around objects. Fine detail needs a smaller Radius. Radius and Amount interact; reducing one allows more of the other.
- Threshold controls the minimum brightness change that will be sharpened or how far apart adjacent tonal values have to be before the filter does anything. This lack of action is important to prevent smooth areas from becoming speckled. The threshold setting can be used to sharpen more-pronounced edges, while leaving subtler edges untouched. Low values should sharpen more because fewer areas are excluded. Higher threshold values exclude areas of lower contrast.
Various recommendations exist as to good starting values for these parameters, and the meaning may differ between implementations. Generally a radius of 0.5 to 2 pixels and an amount of 50–150% is a reasonable start.
It is also possible to implement USM manually, by creating a separate layer to act as the mask; this can be used to help understand how USM works, or for fine customization.
Read more about this topic: Unsharp Masking
Famous quotes containing the word masking:
“Love, love, loveall the wretched cant of it, masking egotism, lust, masochism, fantasy under a mythology of sentimental postures, a welter of self-induced miseries and joys, blinding and masking the essential personalities in the frozen gestures of courtship, in the kissing and the dating and the desire, the compliments and the quarrels which vivify its barrenness.”
—Germaine Greer (b. 1939)