Sub topic 11
Removing Color Fringing with Decontaminate Colors
Assume you know how to create a selection, open Select and Mask, and use a layer mask. This chapter focuses on correcting edge pixels after hair or fur has been separated from its original background.
Why color fringing appears
Hair strands are partly transparent. During the original photograph, background light enters or reflects through those strands. When Photoshop creates a cutout, some of the background color remains in the edge pixels. A subject photographed against a blue sky may have blue halos. A subject photographed against green foliage may show green edges.
A hard-edged selection cannot solve this reliably. It either leaves the colored pixels or removes too much hair. Decontaminate Colors changes the color of edge pixels so they better match nearby subject pixels.
Using Decontaminate Colors
Open the selection in the Select and Mask workspace. In the Properties panel, expand Output Settings, then enable Decontaminate Colors. Adjust the Amount slider gradually.
| Amount | Typical result |
|---|---|
| Low value | Removes mild color contamination while preserving natural edge color |
| Medium value | Corrects stronger halos around hair and fur |
| High value | Can remove fringing aggressively but may alter the subject's real colors |
Decontaminate Colors samples colors from the subject and replaces contaminated colors near the boundary. Because the operation changes pixel colors, Photoshop usually requires an output option that creates a new layer or a new document. You cannot use it with every output mode.
A useful starting point is an Amount between 10% and 30%. Increase it only while the halo is visible. Watch the subject's hair, clothing, and skin as you adjust the slider. Real highlights can look like contamination, especially in blond hair or white fur.
Choosing an editable output
Set Output To to New Layer with Layer Mask. Photoshop creates a corrected layer and attaches the selection as a mask. The original layer remains available, so you can reduce the corrected layer's opacity, edit its pixels, or paint on its mask later.
This output is safer than New Layer, which creates a cutout without the same mask-based control. It also gives you a practical way to compare the corrected subject with the original.
Checking the result
Test the cutout against at least one background that contrasts with the original. A dark background exposes light halos. A light background exposes dark or colored fringes. A saturated background, such as red or blue, reveals neutralizing errors that gray may hide.
If the edge color changes too far inward, lower Amount. If a halo remains, inspect the mask first. Paint black on the mask to hide unwanted background pixels, or paint white at low opacity to restore a missing strand. Keep brush strokes small and follow the direction of the hair.
Exercise
A subject photographed against green leaves has a green halo, but increasing Decontaminate Colors makes the hair gray. What should you try?
Show answer
Lower the Amount, inspect the mask for leftover background, and remove the remaining halo with careful mask painting rather than increasing color correction.