Sharpening Using an Edge Mask in Photoshop

Sharpening in Photoshop Part Four

Using an edge mask to sharpen images in Photoshop is really handy to sharpen around edges, particularly where detail is required such as rugged landscapes or nature portraits.  The image below will be used to sharpen around edges to give a cleaner finish.

Image to be used for edge mask sharpening.

Create a Mask for Edge Mask Sharpening.

With the image opened up in Photoshop, switch over to the channels list then select a channel with the most amount of contrast.

Channels will be located just to the right of the layers tab. Only select one channel (red, green or blue) then decide which one would be best to use. For this one, i decided to use the green channel (highlighted) as it has the best result for contrast.

Next is to duplicate this channel.

Duplicate the channel by right clicking it then selecting duplicate channel.
We now have a duplicated channel. Keep this selected for the next part.

Creating Edge Mask

Working with the duplicate mask, create an edge mask to be used for sharpening.  First we need to Photoshop to find edges by using Filter > Stylize > Find Edges.

Selecting find edges filter.
How image appears after using find edges.

Inverting Image.

To invert selection, go to Image > Adjustments > Invert.
Result after inverting image.

So far so good, i now have a nice image that clearly shows edges ready for sharpening.  But it’s not finished yet as we need to thicken the edges.  To do this select Filter > Other > Maximum.

Selecting maximum filter.
Its important to keep a really low setting here as the lines will be too big. I only set a number to two. When finished click ok.

What i do next is select Median in Filters.  Go to Filters > Noise > Median.

Selecting Median.
Selecting median size. I only chose a very low number as 3 was enough.

Next is to set adjustments levels.  Go to Image > Adjustments >Levels.  What we are doing here is is getting rid of any random pixels from our image by setting a high black point.

Selecting levels in Photoshop.
How my image looks after changing mid tone level.

Next we need to create a Gaussian Blur.  Go to Filter > Blur > Gaussian Blur.  What i am achieving here is to feather edges on my mask.

Selecting Gaussian Blur.
Setting Gaussian Blur.

Creating Edge Mask Selection

At this point create an edge mask from this selection to use on the image in the layers panel.  To do this, hold down the control key, then click on your duplicate channel to create an edge mask.

Edge mask selection. You should see lines in a running motion if you did this correctly.

Furthermore go back to the layer tab and go to Select > Inverse.  Then go to Filter > Sharpen > Unsharp Mask and apply your changes.  Click ok when happy.

Then go back to your channels tab and select all RGB channels.  Finally deselect your copied channel.


Image after using edge masking. The edges have improved clarity.


Leave a Reply

Your email address will not be published. Required fields are marked *