Sub topic 8
Blending Cut-Out Edges
Assume you know how to create a selection, apply a layer mask, and use the Layers panel. You should also understand that a layer mask hides pixels without deleting them.
A cut-out can have the correct shape and still look pasted on. The usual causes are a hard or uneven edge, a bright fringe from the original background, or sharpness that does not match the scene. Edge blending makes the boundary between the foreground and background believable.
Inspect the edge before refining it
Place the foreground above the background and add a layer mask if it does not already have one. Zoom in to 100% or 200%, then inspect the edge against both light and dark parts of the background.
Use a temporary solid-colour layer beneath the foreground to reveal problems:
- Use black to reveal pale halos.
- Use white to reveal dark halos.
- Use a saturated colour to reveal leftover background colours.
- Temporarily disable the mask to compare the original edge.
Do not judge the edge only while zoomed in. A detail that looks soft at 200% may look natural at final size.
Refine the layer mask
Select the mask thumbnail, not the image thumbnail. Paint with black to hide unwanted areas and white to restore areas. Use a soft brush for natural transitions, but reduce hardness only where the scene requires it. A building edge may need a hard mask; hair, smoke, or foliage needs a broken, varied edge.
For a more controlled adjustment, choose Select > Modify > Contract or Feather before creating or editing the mask. Small values are usually enough. Large feather values create a visible glow.
If the mask has a thin, uneven outline, open Select and Mask. Use Shift Edge to move the boundary inward or outward, and use Decontaminate Colors carefully to reduce colour contamination. Decontamination changes the foreground pixels, so duplicate the layer or convert it to a Smart Object first.
> callout note > A believable edge is not equally soft everywhere. Match softness to the subject, camera focus, motion, and distance from the camera.
Remove halos and match softness
A pale halo often comes from the background that was visible around the original subject. First try contracting the mask by one or two pixels. If the halo remains, use a clipped Hue/Saturation adjustment layer and lower the saturation of the fringe colour. A clipped adjustment affects only the layer directly below it.
You can also paint on a new empty layer set to Color mode and sample a nearby foreground colour. Paint gently over a coloured fringe. Keep this layer separate so the correction remains editable.
The edge should also match the background's sharpness. Apply a small Gaussian Blur to a duplicate of the foreground, then mask the blur so it affects only distant or out-of-focus edges. Avoid blurring the entire subject merely to hide a poor selection.
| Problem | Likely cause | First correction |
|---|---|---|
| Bright outline | Original background remains | Contract the mask slightly |
| Coloured fringe | Background colour contaminated the edge | Desaturate or paint in Color mode |
| Cut-out looks sharp | Foreground focus differs from the plate | Apply selective blur |
| Edge looks foggy | Excessive feathering | Reduce feather or sharpen the mask boundary |
Exercise
Exercise
A subject has a one-pixel white halo against a dark wall. What should you try first, and why?
Show answer
Select the layer mask and contract it by one or two pixels. This hides the remaining light background before using colour correction or painting.