Sub topic 9
Refine Mask Edges with Feathering and Select and Mask
This chapter assumes you can make a selection of a subject, turn it into a layer mask, and read a mask (white reveals, black conceals). It also assumes you can open the Layers panel and the Properties panel. Here you will fix the most common flaw in a first composite: an edge that looks cut out.
Why edges give a composite away
A mask made straight from a selection has a hard, one-pixel transition from white to black. Real photographs rarely have edges like that. The camera lens softens edges, hair breaks into fine strands, and the background colors bleed a little onto the subject.
Three problems show up again and again:
- Jagged or cut-out edge. The transition is too sharp for the rest of the photo.
- Halo. A thin line of the old background color stays around the subject, often a bright or dark fringe.
- Lost detail. Hair, fur, or leaves are chopped off or turned into a solid blob.
You have two main tools for these problems: feathering, which softens the whole edge evenly, and Select and Mask, which refines the edge based on what the image actually contains.
Feathering: a blur on the edge
Feathering blurs the boundary between selected and unselected pixels. A feather radius of 2 px means the transition from fully selected to unselected spreads over roughly that distance. On a mask, this is a gray ramp between white and black.
You can feather in two places. They behave differently.
| Method | Where | When it applies | Can you change it later? |
|---|---|---|---|
| Select > Modify > Feather | Menu, on a live selection | Before you create the mask | No. You must redo the selection. |
| Feather slider in the Properties panel | Properties panel, with the mask selected | After the mask exists | Yes. It is non-destructive. |
The Properties panel slider is usually the better choice, because you can drag it back and forth and compare. To use it:
- Click the mask thumbnail in the Layers panel.
- Open the Properties panel (Window > Properties).
- Drag Feather until the edge no longer looks cut out. Start between 0.5 px and 2 px.
Choosing a radius
The right radius depends on the pixel dimensions of the image, not only on how the result looks at a zoomed-out view. A 4000 px wide photo needs a larger radius than a 1000 px wide one to give the same visible softness. Match the softness of the edges already in the photo. Look at the focus of the subject: a sharply focused subject needs a small feather, while a subject shot with a wide aperture and a soft background needs more.
Use the Feather with care. A large radius also pulls background in along the whole outline, which creates a glow around the subject. If you see a glow, lower the radius and fix the rest with the tools below.
Select and Mask
Select and Mask is a dedicated workspace for refining an edge. You can open it in two ways:
- With the mask selected, choose Select > Select and Mask, or click Select and Mask in the Properties panel.
- With a selection active, use the same menu item or the button in the options bar of a selection tool.
The workspace has a tool column on the left, an options bar at the top, and a Properties panel on the right. The View menu in that panel lets you look at your work against different backgrounds. Two views help most:
- Overlay shows the area that is masked out in a translucent color, much like Quick Mask.
- On Black or On White shows the subject over a solid color. A halo is easy to see this way. Check the edge against a color that is the opposite of the halo.
You can switch views with the F key to cycle and X to briefly show the original image.
Refine Edge Brush and Brush tools
The left column has three brushes you will use:
- Refine Edge Brush Tool. Paint along areas where the edge is fuzzy, such as hair. Photoshop re-evaluates the pixels under the brush and decides which belong to the subject. It adds fine detail that a normal selection tool misses.
- Brush Tool. Paint to add areas to the selection, or hold Alt (Windows) or Option (Mac) to subtract areas.
- Quick Selection Tool and Object Selection Tool. Use them to fix larger regions that are wrong.
Set the Refine Edge Brush with a size slightly larger than the problem zone. Paint once along the border with a steady stroke. Painting many times over the same spot does not improve the result and can make it worse.
The Global Refinements sliders
These sliders act on the whole edge. The table shows what each one does and how to use it.
| Control | What it does | Typical use |
|---|---|---|
| Smooth | Rounds off jagged or bumpy outlines | Low values (2 to 10) when the edge is stair-stepped |
| Feather | Blurs the edge evenly | Small values (0.5 to 2 px) to match photo softness |
| Contrast | Sharpens the soft transition back up | Raise it to clean up a noisy feathered edge |
| Shift Edge | Moves the border inward (negative) or outward (positive) | Negative values (for example -10% to -30%) to remove a halo |
Shift Edge is the most useful slider for halos. Because the halo is background pixels just inside the outline, moving the border inward by a small amount cuts them off. Raise Smooth or Contrast a little after that if the edge looks rough.
Decontaminate Colors
Hair and semi-transparent edges often pick up color from the old background. Turning on Decontaminate Colors replaces those edge colors with colors from nearby subject pixels. It has an Amount slider.
This option changes pixels, so it cannot output to a mask alone. In the Output To menu you must choose one of the options that creates new pixels:
- New Layer or New Layer with Layer Mask
- New Document or New Document with Layer Mask
Choose Selection or Layer Mask if you want a non-destructive result with no pixel changes. With Decontaminate Colors on, those two are unavailable. For a Smart Object, you should know that a decontaminated copy is a new, separate layer, so you will have an extra layer to manage.
Choosing the output
| Output To | Result | Destructive? |
|---|---|---|
| Selection | A refined selection you can use any way | No |
| Layer Mask | Adds a mask to the current layer | No |
| New Layer | A cut-out copy of the pixels | Yes, new pixels |
| New Layer with Layer Mask | Pixels plus a mask | Partly |
| New Document | A separate file | Yes |
For this composite, choose Layer Mask unless you need decontamination.
A repeatable workflow
The diagram shows a sensible order. Do the broad fixes first and the fine ones last.
- Create the mask from your selection.
- Zoom to 100% and open Select and Mask.
- Set the view to a color that exposes the problem.
- Fix the largest problem first. Use Shift Edge for halos, the Refine Edge Brush for hair, and Smooth with a small Feather for jagged edges.
- Pick Layer Mask as the output and press OK.
- Switch off the view and check the edge over the real background.
Common errors
- Feathering too much. The subject looks blurry or glows. Lower the radius to match the softness of the rest of the image.
- Judging the edge on the wrong background. An edge that looks clean on white may show a dark fringe on the real background. Always do the final check over the actual composite.
- Using Decontaminate Colors and expecting a mask. The output option is limited, as described above. Pick a new-layer output, or turn the option off.
- Painting the Refine Edge Brush across the whole subject. It should cover only the edge zone. Painting over solid areas can make them semi-transparent.
- Refining the selection, then refining the mask again. Each pass blurs a little more. Refine once, from the original selection when you can.
If the mask is already made and the edge is still not right, finish with the Brush tool on the mask. Use black to hide leftover background and white to bring back lost detail. The previous chapter covers that technique.
Exercise
A composite subject has a thin bright fringe of the old sky around the edge, and the hair looks chopped off. Which two Select and Mask controls fix these, and which Output To choice would you pick if you also turn on Decontaminate Colors?
Show answer
Lower Shift Edge to a negative value to move the border inward and cut off the fringe, and paint over the hair with the Refine Edge Brush Tool to recover the fine strands. With Decontaminate Colors on, Layer Mask and Selection are unavailable, so you would choose New Layer with Layer Mask (or New Document with Layer Mask).
Exercise
Why is the Feather slider in the Properties panel usually a better choice than Select > Modify > Feather?
Show answer
The Properties panel slider works on the existing mask and can be changed at any time, so it is non-destructive. Select > Modify > Feather is applied once to the selection before the mask is made, so changing it means redoing the selection.