 |
| Traditionally the sharpness of an image was determined by the resolving power of the lens, the choice of the aperture (see Confusing Circles and Airy Disks) and the ISO of the film (with the ultra low ISO films having the finest detail). Some photographers make the mistake thinking that resolution or the amount of pixels in a sensor affect the sharpness. To some extent they are right in that very high resolution captures finer detail, but they still find that the digital images will appear soft. Rather, the apparent softness of the image is due to low acutance. Acutance, also occasionally referred to as Edge Gradient is the subjective sharpness of edges in an image mapped out onto a gradient line. The steeper to curve, the ‘sharper’ the image. Another way of describing acutance is to say that the edge contrast is low – that there is not a clear distinction between black and white (in the example image). |
|
| Bayers pattern on a CCD sensor |
|
 |
|
What does this have to do with the sensor though? Currently digital sensors are made up of an array of light gathering pixels with each individual pixel measuring the light in a tiny area. If you consider the image below you will see that the pixel only records the average light for its whole area. It does not differentiate between detail within the pixel itself. Thus, in the example given the pixel recording both black and white tonal values will render them as a single grey. To further exacerbate the problem the sensor actually sees in black and white. A layer of filters (red, green and blue) actually lies on top of the light measuring pixels. This layer of filters arranged in the Bayers Pattern only records one colour per pixel. Advanced computing software within the camera then meshes all the information together using a process called Bayer Interpolation to form a colour image. The problem is compounded by another attribute of most sensors, and that is the anti-alias filter.
Due to the nature of the sensor recording light in an array pattern it is possible to come across diagonal lines with stepped rather than smooth edges. In photography these lines are sometimes referred to as jaggies, and I have once heard them called shark’s teeth. Here is how the camera would see a line in relation to how our eye would see a line. To combat this effect the anti alias filter is placed above Bayer filter, essentially defocusing the image ever so slightly so as to smooth out the effect known as aliasing. It is actually possible to have this filter removed by a technician with some cameras. The result is an image with much greater acutance, but with the tendency to alias. Aliasing is a problem that occurswith the reconstructed image from the bayers pattern where colour artefacts, purple fringing and moiré occur. It essentially means that the camera’s computing cannot properly match the spatially different colours in the bayers pattern through interpolation.
Due to the tendency of the camera to lower edge sharpness of an image, it becomes necessary in post-processing to sharpen the image as a FINAL step in the post-processing workflow. It is important that this be done LAST as further processing will tend to degrade the image.
|
The Unsharp Mask
The ubiquitous unsharp mask is far and away the best known of the sharpening methods available. The name derives from the unsharp mask used in traditional printing to create a slightly defocused image that would be used to reduce contrast, correct colour and increase density (and therefore detail) in a negative or positive transparency. In digital imaging the result is to boost contrast along the edges of an image and create the appearance of a sharper image. It is important to note, the unsharp mask, and in fact any sharpening method, does not increase the resolution, it only affects contrast to areas of fine detail.
| Original image masked by a blurred copy to obtain edges that will be 'sharpened' by increasing contrast |
|
When the Unsharp mask (USM for short) is selected (Filter>Sharpen>Unsharp Mask) a panel appears with a 100% crop of an area in the image. Three sliders appear below this crop. Because sharpening takes place at a very detailed level it is extremely important that your whole image is zoomed in to 100% and that you have on your screen an area of fine detail where the effects of sharpening will most easily be seen. To see the effects taking place as you adjust the sliders make sure that the Preview option is ticked.
 |
The three sliders interact with one another so it is possible to obtain similar results using different settings (it is quite likely that different authors on photography will recommend different settings or ways in obtaining the settings. It is important for each individual photographer to work through different suggestions and come to a workflow that they are comfortable with). There is no golden setting that can be used for all images (if there were we wouldn’t need the Unsharp Mask!). Images with more or less detail, greater or fewer megapixels, larger or smaller sizes as well as the amount of interpolation all mean that sharpening should really be done on an image by image basis.
There is a small cheat though, one which some stock photographers use when preparing images for stock libraries. A great many libraries require images to be submitted at a size of 48MB (this is just a little smaller than the file size of a 35mm transparency scanned at 4000dpi). The recommendation by some of these libraries, if they require sharpening at all, is to have a setting of roughly 95-100% on a radius of 0.8-1. Remember though, this is sharpening for a very specific output. Sharpening for prints, the web or even final digital files can be very different. The reason the above settings are suggested is because they have a very slight effect on the image, meaning that further post-processing can still take place by a client if necessary (without compromising the quality of the image).
Putting theory to practice (This requires an understanding of layers - see tutorial)
Whenever you sharpen an image make sure that the sharpening is taking place on a new layer copy (new merged layer if there are more than 1 layer below). Hit ‘SHIFT + Ctrl + ALT + E’ to merge the layers into a new separate layer at the top of the layer stack. You can rename this layer sharpening so that it is easy to find.
|
 |
I have already mentioned the ‘cheat’ used by some photographers. This is not the best way to get the optimum quality out of an image though. One technique I have found that seems to work in getting your settings right is to slide the amount slider right across to the right and then slowly slide the radius across until edges seem to be ‘damaged’ by the USM. The sharpening will still be too severe (for a natural looking image) so the next step is to reduce to the amount until the image looks crisp. Once you have your sharpened image you can toggle back and forth between the sharpened layer and the layers below to see the difference that the sharpening has made.
Note that the sharpening amount has been left to 500%. After obtaining the radius move the amount down until you are happy with the final 'look'. For this image I would use a radius of 0.9 or 1 for sharpening a full sized image from a 12 MP camera. I'll adjust the amount closer to 100% for my final sharpening.
|
 |
 |
With a little practice sharpening using the USM becomes second nature. This does not mean it is the only way to sharpen though. It just happens to be the most common way in which to achieve acceptable results. The next article in the series will look at the pitfalls to sharpening and an advanced approach that can sharpen while avoiding nasties like noise and sharpening artefacts. |