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

Using Refine Mask to improve edge detail

From: Portrait Project: Changing a Sky Background

Video: Using Refine Mask to improve edge detail

In the next few movies, I want to highlight a couple

Using Refine Mask to improve edge detail

In the next few movies, I want to highlight a couple of techniques which will help us to improve our edge detail. And these techniques are especially helpful in situations like this where we're interested in replacing the background. Alright, well let's begin by clicking into our mask. So that we can begin to improve the mask. Next, I want to zoom in on this photograph. And I wannna zoom in past 100%. So, that we can get really close for demonstration purposes in order to identify an edge issue, and then look at how we can solve it.

Alright, so grab your Zoom tool, and then click a few times in order to zoom in on the photograph. And again, zoom in really close, so that you can see, all of the edge detail. Now the photograph appears a bit pixelated because we've zoomed in so far, and that's okay, because what I'm hoping you can see though, is you can see that there's a bit of an edge issue. Where we have a little bit of color contamination. It's a little bit blue on this side, and then there's also sort of this brightness fringe around the edge of this part of the photograph.

Up near the top, it appears a little bit darker, but still we have an issue up in that portion of the image as well. Whenever you have an edge issue, you have to ask yourself, well why is this here? Where did this come from? If you shift click the mask, which will temporarily disable it, you can find the answer. This came from the original capture, with a brighter background you can see we have a little bit of that brightness value here but it doesn't really matter because of the brightness value of the background. When we shift click the mask again, to enable it, we can see that because this is on a darker background, our new clouds there in the background, this shows up a little bit more.

And what this will mean, is that the combination of these two images won't look as good. Well we can solve that by working with refine mask. Let's do that by double-clicking the mask icon. This will open up the properties panel, where we have our mask controls, and here we're going to click on the option for mask edge. When we click on mask edge it will open our refine mask dialogue. Inside of this dialogue we'll be doing two different things. We'll work with shift edge and also decontaminate colors.

In order to illustrate how decontaminate colors works, what I'm going to do first is apply an adjustment which will actually exaggerate the color fringe and the edge highlight. The issue we want to correct. With shift edge, if we drag this to the right, what you'll notice is that we now have more edge detail and more color problems on this side of the image. If I click on the preview checkbox you can see the before and then after. So, I just took something that wasn't that bad, and made it worse.

And I did that because, sometimes, in our images, we'll find that our edges will look like this and they'll need a lot of work. Well, one of the ways we can solve this issue, is by turning on the feature, decontaminate colors. When you do that you have an amount slider. Drag the amount slider all the way to zero and this will remove the feature. But then slowly drag it to the right. What you'll see is it will remove any color issue and it will pull from the color on the inside here. So what was blue is now becoming more brown.

What was bright white is now becoming a bit of a lighter brown. Drag this over further and you can see that it can almost get rid of this issue all together even with edges that look that bad. Alright, now that we've seen how decontaminate colors works, let's go back to shift edge for a moment. We obviously wouldn't want to exaggerate our edge issue by dragging that to the right. What we may want to do is the opposite. If we drag this to the left, we'll see that it will trim off, or clean up all of our edges.

The only problem is if you go too far with this, you can remove some important edge detail in other areas of the photograph. because keep in mind that these controls, they're effecting the entire mask. Not just this little area. So, when it comes to shift edge, it depends upon the resolution of your file. But with this photograph I'm guessing somewhere around -15 works well. Then we also need to combine this with decontaminate colors. And then increase the amount until we see all of those edge details improved.

If we click on the preview check box, you can see the before and then the after. I'm guessing this is going to be tricky to see in your movie. But hopefully you can trust me here that this edge here, which was gray up top, is now brown. The edge which glowed, which had a highlight has now been corrected. When you apply adjustments like this, you'll want to zoom out, you'll want to take a look at the image at the 100% view. Press the space bar key, and pan around. Click on your preview checkbox. Make sure it's improving the edges throughout the photograph and that it isn't doing anything detrimental, like, overly cutting into the edge of the mask.

On my monitor, at least on my screen here, I think the results look awesome. And this is one of those situations where I am so grateful for these controls which allow us to fine tune the edge detail which, in turn, improves the overall project. Alright, well, once you've dialed in the settings there for shift edge and decontaminate colors. Next, you need to determine how you want to output this. In this case, the best option will be this one here which is a new layer with a layer mask. Because that will give us the ability to further fine tune the mask which we actually need to do.

So let's choose that option and then click okay. In doing that, you can see we've created a new layer. This layer has an improved layer mask where we have trimmed off any of that glow, and also corrected any of the color fringing or color contamination that we had around the outer edge of our selection.

Show transcript

This video is part of

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

11 video lessons · 4141 viewers

Chris Orwig
Author

 

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

Congratulations

You have completed Portrait Project: Changing a Sky Background.

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


OK
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 preferencesfrom 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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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.