Sub topic 10
Smooth, Feather, Contrast, and Shift Edge in moderation
This chapter covers the four sliders in the Global Refinements section of the Select and Mask Properties panel. It assumes you can open Select and Mask, switch view modes, and have already set Edge Detection and used the Refine Edge Brush. You should also know that a layer mask uses white to reveal, black to hide, and gray for partial transparency.
What the global refinements do
Edge Detection and the brush tools work on the hair, which is the hard part. The global refinements work on the whole selection edge at once. That makes them fast. It also means they can damage the fine detail you just recovered.
| Control | What it changes | Range | Typical hair value |
|---|---|---|---|
| Smooth | Rounds off jagged or bumpy edge outlines | 0 to 100 | 0 to 5 |
| Feather | Blurs the edge into a soft gradient | 0 to 250 px | 0 to 1 px |
| Contrast | Hardens soft edge transitions | 0 to 100% | 0 to 20% |
| Shift Edge | Grows or shrinks the selection | -100% to +100% | -5% to -20% |
Each slider changes the mask, so the preview in your current view mode updates as you move it. Work in On Layers or Overlay view to judge the effect on strands. Then check against a contrasting background such as On White or On Black.
Smooth
Smooth removes small bumps and jagged steps from the selection boundary. It works well on hard-edged parts of a subject, such as a shoulder, a jacket collar, or a jaw line, where an automatic selection leaves a wobbly outline.
On hair, Smooth works against you. Individual strands are small irregular features, so the algorithm treats them as noise and rounds them away. The result is a smooth helmet shape with no flyaways.
Use Smooth in one of these ways:
- Set it to 0 and leave it there for hair-heavy edges.
- Raise it to a small value, around 3 to 8, if the body edge below the hair looks stair-stepped.
- Avoid it entirely if a previous Refine Edge Brush pass was needed to recover thin strands.
If you need smooth shoulders and detailed hair in the same image, treat them as two jobs. Do the body edge with a high Smooth value and the hair region with brush tools. Or run the selection twice and combine the two masks, as described later in this chapter.
Feather
Feather blurs the selection boundary so the mask fades over a distance measured in pixels. It is the right tool when the edge looks cut out, with an obvious sharp line between subject and new background.
Hair already has a natural gradient, so you need very little feathering. A value of 0.3 to 1 px is often enough to take the "scissor-cut" look off an edge. At 5 px or more, the entire edge becomes a soft glow, and you get a halo of the old background around the subject.
Resolution matters. A feather of 1 px on a 1000 px wide web image is much stronger than 1 px on a 6000 px wide photograph. Scale your values to the image. For a high-resolution file, 1 to 2 px can be right where 0.5 px suits a small image.
A useful test is to zoom to 100% on a strand. If the strand looks fuzzy and widened compared with the original photo, reduce Feather.
Contrast
Contrast makes soft edge transitions harder. It pushes partly transparent mask values toward fully on or fully off. It is the counter-move to Feather, and it is useful when Edge Detection with a large Radius has produced a wide, mushy transition zone.
Two things to know:
- Contrast removes the middle values that make hair look natural. At 100%, hair strands become binary pixels, either solid or gone.
- Smart Radius increases edge fuzziness in some cases. A small Contrast value can tighten that again.
A good workflow is to raise Radius to catch strands, then add 10 to 20% Contrast to remove the gray haze between them. If you find yourself above 30%, go back and reduce Radius instead, since the cause is in the Radius setting.
Shift Edge
Shift Edge moves the selection boundary inward (negative values) or outward (positive values). It does not blur or reshape the outline. It simply makes the selected area smaller or larger.
This is the main tool against background fringing, the thin bright or dark outline that appears when the old background color is still present in edge pixels. A negative shift cuts away the outermost contaminated pixels.
- A small negative value, such as -5% to -15%, removes a thin halo.
- A positive value is rarely needed. Use it only if the mask eats into the subject, which usually points to a problem in the base selection.
- Large negative values shrink fine strands first, because they are the thinnest part of the selection.
Shift Edge and Decontaminate Colors solve related problems. Shift Edge discards edge pixels, and Decontaminate Colors recolors them. Try a small shift first, then decontaminate the remainder. The next chapter covers Decontaminate Colors in detail.
The order of operations
The sliders interact, so the order you use them in matters. The following sequence keeps changes small and easy to undo.
Change one slider at a time. After each change, toggle the preview with the F key (cycles view modes) or hold P to see the original selection. If a slider does not improve the result, set it back to 0.
Worked example
Suppose you have a portrait of a person with curly brown hair, and you are cutting it out for a blue background. After Select Subject and a Refine Edge Brush pass, you view the result On White and see three problems:
- A faint brown line around the whole head.
- A gray haze between the curls.
- A stair-stepped line along the left shoulder.
A reasonable set of changes is:
| Problem | Control | Value | Reason |
|---|---|---|---|
| Brown line | Shift Edge | -8% | Removes the outermost contaminated pixels |
| Gray haze | Contrast | 15% | Tightens the transition between curls |
| Stair-step shoulder | Smooth | 0 for hair, brush the shoulder separately | Avoids rounding the curls |
| Overall | Feather | 0.5 px | Takes off the hard cut look |
The shoulder is the difficult case. Smooth is global, so you cannot limit it to one area. Two workable options are:
- Output the selection with a small Smooth value, then clean the shoulder by hand on the layer mask with a soft black or white brush.
- Make a second selection of just the body, with a higher Smooth, and a third of the hair. Combine them as masks on separate layers or in one mask with the Brush tool.
Common mistakes
- Using Smooth on hair to "clean up" a ragged edge. The ragged look is the hair. Fix a bad outline with the brush instead.
- Feathering to hide a bad cutout. Feather makes errors blurry, but the errors are still there on a new background.
- Raising Contrast to 100% to get crisp strands. The result looks like a silhouette traced in a pen.
- Judging against the original background only. A selection that looks correct over the original photo can show clear fringing on a new one. Always check On White and On Black.
- Moving several sliders at once. You then cannot tell which one caused a problem.
Practice
Exercise
A cutout of a dog shows a thin bright outline from the old sky background, and the fur strands are otherwise good. Which global refinement do you try first, what value range is sensible, and why is raising Smooth the wrong choice?
Show answer
Try Shift Edge first, with a small negative value such as -5% to -15%, because it removes the outermost pixels that still carry the sky color. Smooth is wrong because it rounds the outline and removes thin fur strands, and it does nothing about the color of the edge pixels. If a faint tint remains after the shift, use Decontaminate Colors.
Exercise
You raised Radius to capture wispy hair, and now there is a wide gray haze around the head. You are tempted to set Contrast to 60%. What should you do instead, and what is a sensible Contrast value?
Show answer
First reduce Radius, because the haze comes from an edge zone that is too wide. If some haze remains, add a small Contrast value of about 10 to 20%. At 60% most of the partially transparent strand pixels become fully on or off, so the hair looks like a hard silhouette.
Exercise
Why does the same Feather value of 1 px look different on a 1000 px wide image and a 6000 px wide image?
Show answer
Feather is measured in pixels, not as a proportion of the image. On the small image 1 px is a larger share of the subject, so it softens the edge visibly. On the large image the same 1 px is a tiny share, so the effect is hard to see. Scale the value to the image resolution and check at 100% zoom.