Photocritic loves prime lenses. And so should you.

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…

39-1.jpg

39-2.jpg

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 email me!

Money made from this advert will be invested in prime lenses.
This post, "Sharpen those photos: Unsharp Mask", is part of these categories: All articles, Featured Articles, Presenting your work, was posted by Haje Jan Kamps and saw the light of day on the 4th of July 2006. I hope you liked it.

Insights, suggestions and comments

By Andrew Ferguson on July 4th, 2006 (permalink)

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.

By Phil Balchin on July 4th, 2006 (permalink)

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.

By bigstusexy on July 5th, 2006 (permalink)

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-

By Amit K on September 26th, 2006 (permalink)

Beautifully explained ! Specially the film part and digital part and then the explanation. Its worth reading the whole article
Thanks

By Travis Tackett on October 25th, 2006 (permalink)

Great article. one of the better explanations I’ve found on the ‘net so far.

Thanks
Travis

By Paul Crisanti on November 21st, 2006 (permalink)

Good info-thanx

By Ed Perchick on November 27th, 2006 (permalink)

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.

By Ancke on April 8th, 2008 (permalink)

Cool! Great info for my project. Thanx!!!

By Daniel Condurachi on April 15th, 2008 (permalink)

Great, just great… thank you very much for sharing with me. I really didn’t know all this stuff about sharping. Thanks’!

By Jeff Ratliff on July 21st, 2008 (permalink)

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.

By joju antony on August 12th, 2008 (permalink)

thanks for the useful information.

By Gavin Appleby on September 9th, 2008 (permalink)

Fantastic finally a good explanation of USM and some good starter settings.

By Nuker on October 14th, 2008 (permalink)

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

By Daniel Mc Adam on February 12th, 2009 (permalink)

Thanks for the information its easy to understand and well presented.

By antony madhu on August 26th, 2009 (permalink)

your article is good and easy to fallow. Iam not good at photoshopping.But I can take good photos and have a good knowledge about photography.sometimes when I do this and that in photoshop, the colours become smudgy(like water spilled on a water colour painting)I can’t explain more than this.you will have to see the photo to understand.I could not remove it with the photoshop filters.Pl.advice if you have the time.thank you. My email id is there.

By Andrew on November 4th, 2009 (permalink)

Hey man—

Fantastic article. I’m diving into the world of photography, and this is a good thing to know. I’ll definitely be visiting this blog again.

By clipping mask on November 20th, 2009 (permalink)

thank you for the tips

thanks for sharing

keep on posting:)

By Iram Rolon on December 28th, 2009 (permalink)

Thanks you, Finally I understand

By Roger on January 4th, 2010 (permalink)

A reminder not to do any but the most minimal sharpening on an image until you know how that image is to be used (e.g. for web site, ink-jet printer, publisher) along with its final image resolution and size. The parameter settings for USM sharpening are highly sensitive to the image size and resolution (i.e. pixel distances vary with size) – so be leery of the above recommendations. It is best to experiment and examine the final print output.

Many (magazine, book) publishers do NOT want you to apply any image sharpening – they will do it themselves once they determine how the image is to be printed.

Sharpening should always be the last step in a work flow for the above reasons.

Remember, image sharpening is intended to enhance the final photo product, NOT to fix blurry pictures.

By Mark on January 4th, 2010 (permalink)

Great article; very nicely written too. Thanks a lot!

Trackbacks

 

Share your wisdom



Go on, click the button

Ludicrously over-the-top DIY projects (like building your own laser trigger are...
View Results

Get notified!

If you want to get a notification whenever Photocritic makes a new post, fill in the form below!

Email Address:

Powered by Feed My Inbox

I love this on Flickr

On the Book of Face

Photocritic on Facebook

It goes 'tweet'

  • • So, I have a new toy (on loan) for the next few weeks... I'm embarrassingly excited. http://flic.kr/p/7K9Xia (link)
  • • From yesterday's shoot: "Alex through the looking glass" is worth a look on black. http://flic.kr/p/7K8raV #Flickr #portraiture (link)
  • • Oh, all right then. #SelfPortraitFriday - http://flic.kr/p/7KcpuQ (link)
  • • @warandpeace I think contracts r best on paper - not sure I trust my iPhone enough to do model releases. And $10 buys 1,000 sheets of A4 :) (link)
  • • CSI Guy (@csiguy01) is an UK forensics dude in training - his blog is enthralling, well worth a read. #FollowFriday (link)
  • • Portraiture is all about perspective: This great little 2-minute video from #Samsung rams home the point http://is.gd/acZbX (link)
  • follow @photocritic on Twitter!

My books

Macro Photography Photo Workshop

Macro Photography Photo Workshop by Haje Jan Kamps My day job, if it can be called that, is being a writer. I've got one book out there so far and it's awesome, so go ahead and buy a copy! It's available from Amazon.com, Amazon.co.uk, and most decent-sized bookshops, too!

To find out more, check out this post! If you want to know more about the 'being a writer' thing, check this site out.

Put another dime in the jukebox

Put another dime in the jukebox In front of you, five hyperactive men with guitars, drums, and microphones. Behind you, five thousand fans. In your hands, a camera... You're going to need more than just a little bit of good luck to pull this one off. That's where this book comes in.

With nearly a hundred fantastic gig photos, and a ton of info about how to get involved in taking photos like this yourself, you can't go wrong. Buy this book. Grab your camera. Good luck.

Street Photography: London

Street Photography: London Take a Canon EOS 450D. Attach a Canon 50mm f/1.4 lens. Hit the streets of London. See what happens.

Sounds simple - but the results are anything but. Moving, intense, and personal, Street Photography: London is a great collection of the people of London, their passions, and their dreams. Look for yourself!


About

This site is all about learning more about photography, from the incredibly insightful (rarely) to the dreadfully mundane (also, hopefully rarely) via just about everything in between.

If this website seems a little whimsical and random, then that's because the author of this blog, who for the occasion is confusing himself by writing about himself in the third person, is slightly whimsical and random himself.

Enjoy!

- Haje