Sub topic 15
When to fall back to channel-based masking
This chapter assumes you can open Select and Mask, use the Refine Edge Brush, and read a layer mask (white reveals, black hides). It also assumes you know the Channels panel exists. You do not need to have used it before.
Select Subject and Select and Mask handle most hair cutouts. Some photos defeat them, and a channel-based mask is the fallback. It builds a mask from the brightness of the image itself instead of from an AI estimate of where the edge is.
Why channels can succeed where Select and Mask fails
Select and Mask guesses where the subject ends and the background begins. Edge Detection and Refine Hair look for a color or tonal change near your base selection. If the background and the hair are similar in color, that guess breaks down.
A channel-based mask does not guess. Each color channel (Red, Green, Blue) is a grayscale image showing how much of that color each pixel contains. One of those three images often shows hair and background at very different brightness levels, even when the full-color image does not. You can exaggerate that difference with Levels or Curves until the hair is nearly black and the background nearly white, or the reverse. The result is a grayscale image, and a grayscale image is already a mask.
That also explains why the technique preserves fine strands. A layer mask is a grayscale image, and so is a channel. Every gray level in between becomes partial transparency, so a thin strand that is 40% covered becomes a 40% mask value.
When to reach for it
Try the normal workflow first. Switch to channels when you see these signs:
- High contrast in one channel. Dark hair against a bright sky, white studio backdrop, or blown-out window.
- Persistent lost strands. You have raised Radius, painted with the Refine Edge Brush, and tried Refine Hair, but wispy strands stay missing or turn into a blotchy halo.
- Backgrounds the AI misreads. Busy backgrounds, similar-colored foliage behind hair, or backlit hair with a glowing rim.
- A need for repeatable precision. The cutout is for print or a client, and you want a mask you can reopen and adjust through Levels.
Channels work poorly in the opposite case. If hair and background have the same brightness in all three channels, such as brown hair against a brown wall, no channel will separate them. Stay in Select and Mask and paint manually.
| Situation | Better first choice |
|---|---|
| Dark hair, bright plain background | Channels |
| Light hair, dark plain background | Channels (inverted) |
| Similar color hair and background | Select and Mask with manual painting |
| Complex subject with hard edges and some hair | Select and Mask, then channels for the hair only |
| Semi-transparent fabric or smoke | Channels |
The workflow
The goal is a channel that looks like a finished mask: solid white where the subject must be kept, solid black where the background must go, and gray strands at the edge.
1. Find the best channel
Open the Channels panel (Window > Channels). Click the Red, Green, and Blue channels one at a time. Look at the hair only. Choose the channel where hair and background differ most in brightness. In portraits, Blue is often the noisiest and Red is often the cleanest, but check your photo and do not assume.
2. Duplicate it
Drag the chosen channel onto the New Channel button at the bottom of the panel. Photoshop creates an alpha channel named, for example, "Red copy". Never edit the original color channels. Changing them changes the actual image.
3. Increase contrast
With the copy selected, open Image > Adjustments > Levels (Ctrl/Cmd+L). Drag the black point slider and the white point slider toward the middle so the background goes fully to one extreme and the hair goes to the other. Watch the thin strands as you do this. If you push too far, the finest strands disappear into the background. Stop when the background is clean but the wisps are still visible.
Levels is a good starting point. Curves gives finer control if the background has a gradient. Avoid the Brightness/Contrast command, which clips tones less predictably.
4. Fix the interior and the outside
The channel will still have gray areas in the face, clothing, and background away from the hair. Paint these solid instead of fixing them with Levels, which would damage the hair.
- Choose the Brush tool with a hard-edged tip.
- Set the foreground to white and paint the subject's interior, staying clear of the hair edge.
- Set the foreground to black and paint the background, again staying clear of the hair.
If the hair is dark in the channel and the background is white, invert the channel first with Ctrl/Cmd+I so that the subject area is white. Whichever direction you choose, the final rule is: white keeps, black hides.
Use a soft brush or the Dodge and Burn tools with a low exposure along the hair edge only when you need to nudge a gray region, and keep the changes small.
5. Load the channel as a selection
Hold Ctrl (Windows) or Cmd (Mac) and click the alpha channel thumbnail. Marching ants appear. They only outline areas that are at least 50% selected, so they will not show every strand. The selection still holds the partial values, and the layer mask will reflect them.
Click the RGB composite channel at the top of the panel to return to the full-color view.
6. Apply it as a mask
Go back to the Layers panel, select the subject layer, and click the Add Layer Mask button. The mask is created from the active selection. You now have a non-destructive cutout, the same kind of output you made from Select and Mask.
If the result looks inverted (the subject is gone and the background remains), select the mask thumbnail and press Ctrl/Cmd+I.
Combining both methods
You do not have to choose one method for the whole subject. A common approach is to mix them:
- Use Select Subject and Select and Mask for the body, clothing, and hard edges.
- Make a channel mask for the head and hair only.
- Combine them. Paint the channel mask region into the layer mask with a brush, or load one selection and add the other with Shift-click on the channel while a selection is active.
This keeps clean, hard edges where you need them and the channel's fine tonal detail where hair needs it.
Finishing the edge
A channel mask carries the original background color into the hair, just like a Select and Mask result before Decontaminate Colors. Bright backgrounds leave light fringes on dark hair.
Choose one fix:
- Reselect the layer mask and open Select and Mask from the Properties panel, then enable Decontaminate Colors and output to a new layer.
- Add a Clipping-masked Hue/Saturation or Color adjustment layer, and paint the correction only along the hair edge.
- Paint on the layer itself with the Brush set to Color blend mode, sampling nearby hair color with Alt/Option.
After that, run the same composite check you used earlier: place the cutout over light, dark, and colored backgrounds and look for halos and missing strands.
Common errors
- Editing a color channel directly. The photo itself changes. Undo, and work on the duplicate.
- Clipping the strands in Levels. Pushing the sliders until the background is perfect also erases thin hair. Reduce contrast and clean the background with the brush instead.
- Painting over the hair edge. A hard brush stroke through the hair area removes strand detail. Keep brush work away from the transition zone.
- Reading the marching ants as the final result. The ants hide partial values. Judge the mask in the layer view, not the outline.
- Forgetting to invert. If the subject disappears, invert the mask.
Exercise
A photo shows a woman with dark, wispy hair against a bright white studio wall. Select Subject works, but Select and Mask loses the fine strands even with a large Radius. Describe the steps for building a channel-based mask, including which channel to edit, how to adjust it, and how to apply it.
Show answer
Open the Channels panel and view Red, Green, and Blue to find the channel where the dark hair contrasts most with the white wall. Duplicate that channel by dragging it to the New Channel button, so the original is not changed. On the copy, use Levels to push the wall toward white and the hair toward black, stopping before the thin strands vanish. Paint the face and body solid with a hard brush, staying clear of the hair edge, and paint the outside background solid in the opposite value. Because the hair is dark, invert the channel if needed so the subject is white. Ctrl/Cmd-click the channel to load it as a selection, click the RGB channel, select the subject layer, and click Add Layer Mask. If the subject is hidden, invert the mask. Finally, check for fringing on light, dark, and colored backgrounds.
Exercise
Why will a channel-based mask not help for brown hair against a brown wall of the same brightness?
Show answer
A channel mask works by finding a channel where hair and background differ in brightness, then increasing that difference with Levels. If they are the same brightness in every channel, no amount of contrast adjustment can separate them, so Select and Mask with manual painting is the better choice.