Unsharp Masking - Digital Unsharp Masking

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:

    We were that generation called “silent,” but we were silent neither, as some thought, because we shared the period’s official optimism nor, as others thought, because we feared its official repression. We were silent because the exhilaration of social action seemed to many of us just one more way of escaping the personal, of masking for a while that dread of the meaningless which was man’s fate.
    Joan Didion (b. 1935)