Sub topic 3
Removing color fringing with Decontaminate Colors
This chapter assumes you know the Select and Mask workspace, the Layers panel, and how layer masks work (white reveals, black hides). You should already have a refined hair or fur selection from the earlier chapters.
Removing color fringing with Decontaminate Colors
Semi-transparent edge pixels in a hair cutout often keep the color of the old background. This is color fringing. In the Output Settings section of Select and Mask, turn on Decontaminate Colors and set Amount between 50 and 100 percent. Photoshop replaces the color of edge pixels with colors sampled from the subject's interior and leaves the transparency unchanged.
Outputting to a layer mask and keeping the edit non-destructive
Set Output To to New Layer with Layer Mask. Photoshop creates a new layer with the selection stored as a layer mask. The original layer stays untouched, and you can paint on the mask later to reveal or hide areas.
Checking the cutout on light, dark, and colored backgrounds
Place a solid light fill, a solid dark fill, and a saturated colored fill beneath the cutout, one at a time. Zoom to 100 percent. A light fill exposes dark halos. A dark fill exposes light fringing. A colored fill shows leftover color from the original background.
Fixing halos, lost strands, and rough edges
- Halos: Raise Decontaminate Colors Amount, or shrink Shift Edge by one or two pixels.
- Lost strands: Paint them back on the layer mask with a soft brush at low opacity.
- Rough edges: Apply Smooth or Feather in small steps, staying under 3 pixels.
> Avoid large Feather values. They make hair look blurred and remove fine detail.
When to fall back to channel-based masking
If strands stay lost after refinement, use channels. Open the Channels panel, choose the channel with the most contrast between hair and background, and duplicate it. Use Levels to make the hair white and the background black. Ctrl-click (Cmd-click on macOS) the channel thumbnail to load it as a selection, then add it as a layer mask. This method suits smoke, glass, and very fine fur.
Exercise
Why should Decontaminate Colors be applied before you output to a layer mask?
Show answer
Output to a layer mask keeps the original colors of edge pixels. Decontaminate Colors needs to run during output to replace those colors, so it has to be set in Output Settings first.