The aim of sharpening is to make an image appear sharper. Cameras can apply a certain amount of sharpening automatically to JPEG files, but raw files should be sharpened post-capture using raw conversion or image-editing software prior to printing. Whichever file format you’re dealing with, though, sharpening works in the same way.

When a file is sharpened, the contrast between the pixels in the picture is increased, giving the appearance of a crisper, more detailed image.

Sharpening

Guide to Image Sharpening – FAQ

Why do digital images need sharpening?

Images need sharpening because of the way in which they are created. Unlike film, where the particles of light-sensitive chemicals are packed tightly together in layers, the pixels on a digital camera or scanner’s sensor are arranged in a grid, with regular spaces between them. This creates the ‘softness’.

In digitally created images, the sensor design can result in distortion artefacts, and patterning appears when the sensor cannot resolve detail beyond a certain frequency. In order to reduce this effect, almost all digital cameras are fitted with a very thin anti-aliasing filter, which is positioned just in front of the sensor. These filters (which also usually block infrared light) ‘downsample’ (or blur) the pattern arriving on the sensor, and can slightly reduce overall sharpness, resulting in an ‘unsharp’ image.

Unsharp vs out of focus

An unsharp image is not the same as an image that is out of focus. Sharpening cannot ‘correct’ a focusing error, because the cause of the problem lies in how the photograph was taken, not how it was recorded and processed. An out-of-focus image will always be out of focus. Look at the out-of-focus image below and note how sharpening increases the overall contrast, but cannot recover any real impression of detail – there isn’t any.

Edge sharpening compared to detail sharpening

Every photographer has a preferred method of sharpening, which may differ depending on the type of image being worked on. However, there are two main types. Edge sharpening simply increases the contrast between areas of contrasting tone, which increases the appearance of sharpness around edges. Detail sharpening performs this action universally, on the entire image area.

Sharpening detailDetail

In images that contain a lot of detail, like the stonework in the picture below, it’s a good idea to apply a general Unsharp Mask to increase the definition across the entire image area.

You’ll be amazed by the difference that sharpening can make to a shot, and by the amount of detail that suddenly seems to appear once sharpening is applied.

Edge

One of the areas in which ‘unsharpness’ is most noticeable is where an area consisting primarily of one tone borders another area of a significantly different tone.

By sharpening this edge, the border between the two elements of the scene is made sharper, and the image appears more three-dimensional as a result.

The photograph of the airliner below demonstrates this effect, but for an extreme example a graphic representation below shows an edge between two ‘flat’ tones, black and white. In the upper of these images, there is a thin line of greyish pixels between the black and white areas.

In a real image this would represent values recorded by photosites on the camera’s sensor that straddle the two tones. The pixels are grey because the camera’s processor does not know if they are meant to be black or white.

Edge sharpening effectively gets rid of the midtones, increasing the contrast of the edge.Edge sharpening

Unsharp maskGuide to Image Sharpening – Sharpening in action

Most image-manipulation programs feature simple ‘on/off’-type controls for sharpening, but many also offer an Unsharp Mask, too.

Often abbreviated to USM, Unsharp Mask provides compete control over the amount of sharpening applied to an image.

We’re looking at the Photoshop USM dialog here, but most USM tools operate in the same way, with the same main controls.

Amount

Think of the Amount slider as the volume control of Unsharp Mask. Sliding it to the right increases the effect of the sharpening, while dragging it to the left decreases it. The level at which this slider should be set depends on the type of image, as well as the Radius of sharpening used. A large Amount with a low Radius and low Threshold is good for general detail-sharpening.

Radius

The Radius (in pixels) is controlled using the second slider, and alters the size of the area that is ‘pulled apart’ to form a sharpened edge. Generally, the larger the Radius set, the lower the Amount required. The relationship is not exactly proportional, but a large Radius coupled with a high Amount may result in an unwelcome contrast increase, and haloing.

Threshold

The final slider, Threshold, controls exactly which elements of the image will be sharpened. Setting a high Threshold tells the software to look for obvious edges, whereas setting a low Threshold will sharpen everything. For this reason, a low Unsharp Mask Threshold is better suited to images where a lot of fine detail needs to be extracted, such as a landscape or city scene, and a high Threshold is great for edge sharpening.

Unsharp mask 500

By applying an Unsharp Mask with a large Amount but a small Radius, it is possible to greatly increase the impression of detail

Unsharp mask 51

By setting a modest Amount but a large Radius, overall contrast has been increased dramatically, and the effect is a little unnatural

 

Guide to Image Sharpening – Advanced Sharpening Techniques

Sharpening

Notice how this detail-rich landscape has been transformed using this technique. An ordinary Unsharp Mask pass is fine most of the time, but this technique has increased the contrast between neighbouring pixels more effectively, giving the scene a crisper, three-dimensional quality without looking unnatural

Once the basics of image sharpening have been understood, it is time to look at some more advanced post-capture sharpening techniques using image-manipulation software. Some of the techniques detailed here can be used in combination with each other, so don’t be afraid to experiment.

For the majority of these techniques, Adobe Photoshop CS3 has been used, but most comparable image-manipulation programs offer similar functionality.

If you’re planning to try out these techniques on any JPEG files, make sure that your camera has been set to its default, or minimum, level of sharpening.

Similarly, if you are shooting in raw mode, set the sharpening of your raw-conversion software to its minimum before converting the file and opening it in your chosen image-editing software.

Sharpening for detail

We explained in our earlier article on sharpening how important sharpening is for bringing out fine detail, but there are occasions when your images will benefit from more than just a single application of Unsharp Mask. This technique works best on images that contain no noise but a lot of detail, such as landscapes and cityscapes shot at low ISO settings. It is especially effective for images that are destined to be printed onto matt paper, because the contrast between the different colours in the image is increased. This helps to compensate for the loss of vibrancy and sharpness that sometimes occurs due to the absorbency of the media.

Sharpening for detail step 1

Sharpening for detail step 1

Open the unsharpened image and perform any necessary adjustments, such as Levels or Curves and any spotting or cloning that may be required. Once this is done, apply a heavy Unsharp Mask pass (Filter>Sharpen>Unsharp Mask) using an Amount of 300%, a Radius of 0.8 pixels and a Threshold of 1 as a starting point. Click OK.

Sharpening for detail step 2

Sharpening for detail step 2

The image will probably look horribly oversharpened at this point, but don’t worry, we’re going to address that now. Select Edit>Fade Unsharp Mask and set the mode to Darken. Leave the opacity at 100% for the moment, but as you get more confident with this technique you can fine-tune the effect by adjusting this slider. For now, just click OK.

Sharpening for detail step 3Sharpening for detail step 3

The image should look a lot better now, but another application of Unsharp Mask will finish it off.

This time, though, subtlety is the name of the game.

Setting an Amount of 200%, a Radius of 0.3 pixels and a Threshold of 3 will ensure that detail is sharpened.

Sharpening for detail – Top tips

This technique greatly enhances the appearance of luminance noise, effectively by turning each ‘grain’ black. For this reason, it is best to avoid applying it to noisy images, although, as with all sharpening methods, good results can often be achieved by working selectively on the green channel only, or the Lightness channel in LAB mode (see Top Tip on page 41).

Selective sharpening

When dealing with images that contain different scene elements, applying a uniform sharpening adjustment might not be appropriate. For a portrait such as this one, for example, it is not advisable to sharpen everything, because sharpening can accentuate the appearance of blemishes and wrinkles.

The following technique can be used with any type of sharpening, but we are going to apply a high-pass sharpening filter selectively to the model’s eyes, mouth and jewellery. For the sake of simplicity we are using the Erase tool here, but more confident readers might consider using the Quick Mask tool found in Photoshop and similar programs.

Selective sharpening step 1

Selective sharpening step 1

After making any necessary colour and tonal adjustments, and performing any spotting or cloning that is required, duplicate the background layer (Layer>Duplicate Layer) and name it if you like.

We’ve called ours ‘Sharp’. Now set the blending mode in the Layers palette to Overlay.

Selective sharpening step 1.2Selective sharpening step 2

Click on the new layer if it isn’t already selected, then go to Filter>Other>High Pass.

A window will open showing a greyscale version of the image with only the edges visible.

Don’t worry too much about the best Radius value to enter, the effect can be fine-tuned later.

As a guide, between 1 and 3 pixels works well, and you shouldn’t exceed a Radius of 10 pixels. Click OK.

Selective sharpening step 3

Selective sharpening step 1.2

With the Sharp layer selected, use the Erase tool (E) to erase the parts of the image that you don’t want to be sharpened. If you like, you can adjust the Radius and opacity of the Erase tool to ensure smooth edges to the areas that are being ‘painted out’. This can be laborious, but clicking the eye icon on the background layer makes it invisible, so you can see what you’re doing more clearly. When you’ve finished, adjust the opacity of the sharpened layer if necessary, then flatten the image (Layers>Flatten Image) and save.

Selective sharpening step – Top tip

Remember that your computer screen is a relatively coarse display surface. If you intend to make a large print, you should sharpen your image a little more than appears necessary on screen when the image is viewed at 100%.

Sharpening noisy images

Sharpening noisy images

In the previous article on sharpening, we said that sometimes it is best not to sharpen noisy images in case the noise is accentuated to the detriment of image quality. This is true for uniform sharpening, but it is possible to get good results by selectively sharpening only the green channel. As there are twice as many photodiodes sensitive to green light on a camera’s sensor than those that are sensitive to red or blue, there is always more data in this channel, and it is much ‘cleaner’ than the other two, with considerably less noise. This makes it ideal for sharpening.

Sharpening noisy image step 1

The first thing to do is to reduce the noise in the image as much as possible. For this shot, I used a colour blurring technique. I made a duplicate layer, blurred it by 5 pixels using the Gaussian Blur filter, and blended the layer to Colour before flattening the image.

Sharpening noisy images step 2Sharpening noisy image step 2

After performing noise reduction and any other adjustments, go to the Channels display (Window>Channels) and select the green channel.

The image will switch into black & white.

If you’re curious, take a look at the other two channels, and notice how much blotchier they are than the green channel.

That’s why we don’t want to sharpen those layers.

Sharpening noisy images step 3Sharpening noisy image step 3

Apply a medium USM pass (Filter>Sharpen>Unsharp Mask) of 300%, Radius 0.8, Threshold 3.

Then return to the Channels box and click RGB.

Combined with the other channels, the image should now be crisper, but not too noisy.

Sharpening noisy image – Top tip

Another good way of sharpening noisy images is to switch to LAB colour mode (Image>Mode>LAB Colour) and sharpen the Lightness channel.

When you’ve finished, just switch the image back into RGB mode.