Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using the Minimum filter to clean up edges

From: Portrait Project: Changing a Sky Background

Video: Using the Minimum filter to clean up edges

In this movie, I want to highlight another advanced technique that we can use, which Alright, well now that we saw how we can do that with our old layer

Using the Minimum filter to clean up edges

In this movie, I want to highlight another advanced technique that we can use, which will help us to improve the edge detail that we have on our mask. And in order to begin to take a look at how we can use this technique, what I want to do is go back to the layer which we worked on previously, which was this one right here. And let's go ahead and click into the mask. And the reason why I want to go back here is because I want to practice this technique on this layer, then we'll apply what we learned to our top-most layer.

The underlined layer here is the one which still has a bit of that color fringing and a little bit of the edge glow as well. Let's go back to the same spot that we went before, which was the surfboard fin. To do that, grab the Zoom tool, and then click a few times to zoom in really close to this so that we can begin to identify the problem area. When we get up close with this image, as we saw before, we saw some color fringing. We also have a bit of this glow around the outer part of the image.

Well, what I want to do is get rid of that. And I only want to get rid of it in this specific area. You know, the previous technique corrected the entire mask. Yet, what about the situations where you have kind of a persistent problem in one area, and you only want to fix it there. Well, what you do is you click into the mask, then next, choose a selection tool. Perhaps like, the lasso tool. Here, you can tap the L key to select that tool or click on it. You want to choose a feather amount just to soften the edge.

I'll bring this down to about 2 pixels. And then next, make a lasso selection around the area that you want to work on, around those edges that you want to deal with. In this case, this part of the image, because I want to correct the edge issue that we have around the fin of the surfboard. Well, once you've made your selection, with a little bit of a feather or soft edge, the next thing we're going to do is use an old school technique which involves using the Filter > Other > Minimum.

So we need to make sure that we're targeting the mask because we'll apply this filter to the mask, not the image. So again, make sure you're clicking into that layer mask. Then navigate to the Filter pulldown menu and here, choose Other, and then Minimum. What this will do is it will minimize the white area on the mask in this area. In other words, it will just trim off that edge. Let me show you how this works. Here we choose Filter > Other > Minimum. This will open up the Minimum dialog. If I increase the radius even just a few pixels, you can see that what's happening is it's dramatically cutting into the space in this part of the image.

Here it obviously doesn't look good, but it does illustrate the point of how this slide or how these controls work. Rather than a radius of 10, we want something more like 1. And if we click on the Preview checkbox, you should see here's our before, and here's the after. It's really taking care of that edge issue, yet it's only taking care of it inside of the selected area. And that's the beauty of this technique is it allows you to target a certain area of your photograph. And this is really helpful when you have those situations where that area of the mask, or that area of the edge, needs just a little bit more cleanup work or a little bit more touch up work.

Alright, to apply this, click OK. Then last but not least, you choose Select and then Deselect. Alright, well now that we saw how we can do that with our old layer here, let's turn the visibility of that layer off, and then turn this one on. Next, I'm going to zoom out a little bit, so I can see a bit more of the picture. I'm going to zoom out to about, right around here, maybe a little bit closer. Well, one of the things that I notice on the top layer is I still have a little bit of an edge glow on this part of the surfboard.

To clean that up, we'll target the mask. We'll go ahead and use our lasso tool. I think about a 2, and maybe a little bit higher feather amount. And I'm going to go ahead and lasso up a selection. And because we're just working on the mask, it doesn't really matter if our selection is that precise. Because what this will do is just say, limit the filter to the area which I've selected. Let me zoom in so we can see that area here. It looks like this edge is pretty good over here. But I got a little bit to close to the hair.

So hold down the Option key on a Mac, Alt on Windows to subtract from the selection, or you can hold down the Shift key if you need to add to the selection. So either hold down Option or Alt to subtract, Shift, click and drag in order to add. And all that you want to do is just make sure that you're bringing this right to the edge but not past that, because you don't want it to affect other areas of the image. Alright. The next step, you know it, right, you go to Filter, then you choose Other, and then select filter which is titled Minimum.

This will allow us to trim off a little bit of that edge glow that we have there. Click OK to apply that, and then choose Select and Deselect, and you can evaluate and see the results. Here I've zoomed in a little bit too close, so I need to zoom out a little bit to see if that looks better. And you know what? I think it does. And perhaps more important is you've picked up a really valuable technique, which will help you to improve your edge detail when you have situations where you need to target a specific area, like we needed to do here with this photograph.

Show transcript

This video is part of

Image for Portrait Project: Changing a Sky Background
Portrait Project: Changing a Sky Background

11 video lessons · 4638 viewers

Chris Orwig


Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed Portrait Project: Changing a Sky Background.

Return to your organization's learning portal to continue training, or close this page.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.