Sharpen those photos: Unsharp Mask
Introduction
The Unsharp Mask is an old photography trick that has become available to ‘the common man’ through the introduction of digital editing tools such as Adobe Photoshop.
In this article, I will share with you my knowledge and experience of the Unsharp mask tool in the darkroom, and also a thorough introduction to its digital name brother, the Photoshop USM filter.
The name
Traditionally, the sharpening process happened by adding a mask to the original negative. This mask was a blurred (unsharp…) version of the negative, hence the name; Unsharp mask. The final result has nothing to do with unsharp; the whole purpose of this technique is to make an image appear sharper than the negative can convey
Digital USM
So - if you have no idea how to sharpen your photos in a dark-room, why should you care about doing so on a computer? Well, because the computer does the exact same thing, and - despite what you would expect - the computer doesn’t do it better than someone competent in the darkroom. However; The computer offers you the option of a quick undo, which will cut down the learning time a lot.
In this writeup, I’ll be focussing (pun intended) on how things are done in Photoshop - The newest version at the time of writing, to be exact. I am aware that Gimp and Paint Shop Pro can do the same things, and if anyone wants to node the specifics for these packages - feel free.
However; If you are serious about photography, you are not going to get around photoshop - PSP and Gimp are good for a lot, but Photoshop is the industry standard, and it is the package I have been using for years and years (illegaly for ages, legally the past two years or so). If you can get your hands on a copy of PS Elements or PS LE, both of theses should have fully functional USM filters built in, and they are not quite as expensive as the all-singing, all-dancing full version.
(Learning time? But isn’t this a simple tool?)
The USM built into digital image manipulation packages is an extremely powerful tool. If you ask me, it is the reason to own Photoshop (well, that, and levels. And Variations. And CMYK separation tools. And colour proofing tools. Ah, never mind), but like all other powerful tools, it also makes it possible to thoroughly fuck up an image.
On what images to use the USM tool.
Always. Seriously. Even if you only apply it lightly, I have yet to see a picture that didn’t benefit from a run through USM. All digital files need USM applied to them. Even if you have a tack-sharp image on a medium format slide, you will need to apply USM after digitising the image. Why? Because you do; Inherent in the digitalisation tools (digital cameras*, scanners, etc) is a loss of apparent sharpness.
Not convinced how much of a difference USM makes? Check out these before and after images…


Digital cameras and USM
If you feel that you are photo-savvy enough to use the USM tool on a regular basis, you should have a close look at your digital camera. Usually, there will be a setting in a menu somewhere that says “sharpness” or “sharpen”. You’ll want to turn this down as much as it’ll go. Why? All consumer / prosumer digital cameras sharpen the images in-camera. Why? Because the average consumer only sees the pictures that come out of their camera, and if those images are soft, they will run to the manufacturer and complain, out of ignorance. Sad, but true.
Professional cameras (Canon EOS D30, D60, Nikon D100 and the higher-end models) don’t compensate as much, and also offer the option to turn the sharpening off altogether. This is A Good Thing, because it leaves the photographer with full control. And photographers are control freaks (especially anally-retentive perfectionist photographers), so that’s sweet.
When to use USM
When working on an image, you probably have a long series of steps that you go through. Myself, I always do all basic editing (image corrections, manipulation etc) first, then I apply USM, and then I handle the colour corrections. Most design professionals will tell you to do the USM last, while most photographers will make up their own rules (being photographers and all…). The order DOES matter, as the USM filter is destructive (kinda like JPEG compression algorithms), and you will notice a difference in behaviour of the other filters and corrections you do. Give it a try, and see what you prefer yourself.
How to apply the USM filter.
Open a file in photoshop - the larger the file, the better (the more data the USM filter has to work with, the better.) When I am working on seriously high-precision project, I will first take the 6-megapixel image from my camera, interpolate it up to about 18 megapixels, then do the editing and unsharp mask, before scaling it back down. It might be superstition, but the results do seem to look a lot more refined.
Right - after opening the file, crop it. Then, go to Filter -> Sharpen -> Unsharp mask. You should now see a relatively innocent-looking window with three little sliders, marked A, R and T. Amount; Radius, and Threshold.
Let’s start with the last one first. Threshold. I usually leave this on 0, and so can you, most of the time. However, if you have an image with large amounts of noise (esp. if you are working with digital files that have been made a lot brighter, or taken on a high digital ISO value), you might want to set this to somewhere between 1-5. This also prevents small details from being accentuated. On a portrait, for example, using a high threshold might make skin look smoother (than if you didn’t set the threshold), but the hair of the model will not come out as sharp as if you didn’t set a threshold. As I said; I usually leave this on 0, but if you ever need it; Now you know what it does.
The radius is a sneaky thing. In general, the more pixels the picture has, the larger the radius. You’ll want to get sharp images, but not overly so. On a 6 megapixel image, I usually set the radius between 3 and 6 - but it all depends on what you want and need. Experiment. Also, if the image is more blurry than normal, you’ll want a higher radius. If your image is sharper than normal (i.e has already been sharpened in your camera), you might want to use less. To find how to set the radius, set the amount to 100 %, the Threshold to 0, and experiment. Then, set the threshold, and see if you are still happy with the image. Then tweak the amount:
The amount of USM applied is a function of the threshold and the radius (see below). This is usually the last slider you set. In general, the amount should be between 50 - 150 per cent.
When you are happy with the way the image looks, press ‘OK’, and the whole image is processed. Never - EVER - run USM on an image twice. Wanna know why? Try, and you’ll see. It just looks horrible.
For starting values of the USM filter for different uses, try the ones suggested by PhotographyJam:
Subject Amount Radius Threshold Soft subjects 150 1 10 Portraits 75 2 3 Moderate sharpening 225 0.5 0 Maximum sharpening 65 4 3 All-purpose sharpening 85 1 4 preparing for Web 400 0.3 0
Advanced use of USM
Right, now you know how to use the basics of USM, but what else can you do with this tool? Lots. For one thing, you can make a ‘fake’ idea of depth of field: Make a loose selection around the items you want to be in your virtual DOF. Then, ‘feather’ the selection a great deal (selection -> feather). If you are working on full-size files, somewhere between 20 and 60 px feather should do it. Then, apply an USM mask. This sharpens the parts of the image you selected, while leaving the non-selected portions intact. This looks a lot more natural than blurring everything else in the image.
Variable USM: every now and then, you’ll find that an image that has USM applied looks good on one side, but not on another. Hit undo (undo the USM), and duplicate the layer you are trying to USM. Then apply the USM to your new layer. Make a layer mask, and put a gradient fill in this layer mask (or use the same feather technique as above). This way, a portion of your layer will become translucent, but your original layer will still show through. This offers the illusion of a partially implemented USM, which looks pretty damn funky.
Manual USM
Remember what we said about photographers being control freaks? Well, here goes nothing: If you want to manually do an USM filter on your images (either to learn and understand how it works, or for full control), here is a quick and dirty way on how to do it. I am not going into details here - if you are pedantic enough to want to try this, you are probably able to work out how to implement every step, too!
- Make sure your image has a contrast you like. Adjust levels and colours.
- Duplicate your image into a new layer, two times (the ‘background’ layer will be your backup and reference, so you can see the changes by hiding the top layers)
- Blur the top layer a bit (1.5 - 10 px, depending on resolution. 3 is usually a good start)
- Lower the brightness and contrast (approx 25 should do it).
- Subtract this image from your original (Image - Apply image - set source to original, and mode to subtract). This should leave uou with just the unsharp mask.
- Move the unsharp mask layer to the top.
- Invert the unsharp mask layer.
- Set the channel mode of the unsharp mask layer to multiply.
- Merge layers.
- Fix levels / brightness.
- Congratulations.
The strength of the manual mask can be controlled through the amount of blur, the contrast of the layer, and the opacity of the layer. You get an infinite number of toys to play with here - enjoy!
If anything still is unclear (pun intended), feel free to msg me!
Sources: Experience and ‘a few’ hours of photoshopping.
Digg
Facebook
del.icio.us
Stumble Upon
here
#1 - July 4th, 2006 at 17:03
Hey,
Thanks for posting this. The Unsharp Mask is something that I’ve needed to learn for a while but haven’t been able to find a good tutorial that gave me all the details. This is the most useful article I’ve read on your site yet; I’d be a big fan of seeing more of these in the future.
#2 - July 4th, 2006 at 22:51
Indeed, the USM filter is a godsend, and i did like your wite-up on the old-school way of doing things. You’ve also mentioned that the usm filter is destructive, well, you can do usm sharpening i a non-destructive way:
1. duplicate the layer
2. with the new layer, run the Filter->Other->High Pass filter, then set the radius + threshold as you’ved suggested, a grey image with the faint outline you mentiond (from the darkroom method?) will be displayed.
3. Set the layer mode from ‘normal’ to ‘Overlay’ an you’ll have the same effect as the USM filter.
Probably a bit beyond the scope of this article, but this smethod offers even more power, e.g. you can rub out areas of the sharp mask, you can reduce the opacity etc.
#3 - July 5th, 2006 at 15:22
Bah! I feel sooo upset and stupid that I can’t get this to work. I’ve been looking into doing unsharpening or smart sharpening (as labeled as a tut on the gimp site) with gimp.
Also my Photoshop elements doesn’t have the layer action subtract. I can set the layer mode to subtract, just like in gimp but I don’t see layer actions. A few of toutorials talk about what I call layer actions (they do more work than just setting the layer mode) and I think that may be key.
My questions would be:
When you say lower the contrast 25 should be enough. Do you mean move the contrast slider to the left, taking the value to -25?
Second the bluring option we are using gaussian blur right? Is that IIR or RLE? (which I have no idea what the difference is :D)
Finally my biggest question, could you post what the layers should look like on each step, or maybe a PSD file of how the layer should at the sets with the layer name labeled? I know this is a lot to ask and if you don’t want to I fully understand!
I’m going to go look around the net (I should be working :P) for other tuts to disect to see if I could get it working, my results were no where near like the automated tool.
Also if interested in looking around the net aready I’ve come accross a method that is said to help with halo control and the results I’ve seen were impressive. (No I don’t exactly know what halos are and I don’t have a direct like but I do know where I got it and could be easy to find again)
Stu-
#4 - September 26th, 2006 at 12:29
Beautifully explained ! Specially the film part and digital part and then the explanation. Its worth reading the whole article
Thanks
#5 - October 25th, 2006 at 20:32
Great article. one of the better explanations I’ve found on the ‘net so far.
Thanks
Travis
#6 - November 21st, 2006 at 16:02
Good info-thanx
#7 - November 27th, 2006 at 12:24
This is a great article, and very useful - although I have found, since I’ve started using Smart Sharpen in Photoshop CS2, that USM is rarely used anymore.
#8 - January 24th, 2007 at 15:12
nude fake
Interesting post. I came across this blog by accident, but it was a good accident. I have now bookmarked your blog for future use. Best wishes. Wwe Divas Blog.
#9 - April 8th, 2008 at 13:06
Cool! Great info for my project. Thanx!!!
#10 - April 15th, 2008 at 09:31
Great, just great… thank you very much for sharing with me. I really didn’t know all this stuff about sharping. Thanks’!
#11 - July 21st, 2008 at 05:00
Thanks for posting this. I have a couple of questions. One is the same as Stu:
“Lower the brightness and contrast (approx 25 should do it).”
Do you mean increase to 25 (both brightness & contrast?) or decrease to -25?
The other has to do with the order of the layers:
“Move the unsharp mask layer to the top.”
If I’m following the instructions correctly, the blur, adjust, and apply refer to the top layer. Isn’t that the unsharp mask layer which is already on top?
Thanks again for your help and for posting this.
#12 - August 12th, 2008 at 13:18
thanks for the useful information.
#13 - September 9th, 2008 at 13:09
Fantastic finally a good explanation of USM and some good starter settings.
#14 - October 14th, 2008 at 10:02
Hi,
Very detail info, but I still have some doubt normally do i still need to sharpen the image before using USM? Only use-”USM” to replace “Sharpen” function?
Thanks