Sub topic 7
Edge Detection: Radius and Smart Radius
Prerequisites and purpose
This chapter assumes that you can create a base selection, open the Select and Mask workspace, and understand that a layer mask uses white to reveal pixels and black to hide them. You should also know how to switch between view modes.
Edge Detection helps Photoshop decide which pixels belong to the subject and which belong to the background. It is especially useful when hair, fur, or other fine details cross the selection boundary.
A hard-edged selection treats the boundary as a simple line. Hair does not behave like a simple line. Individual strands may be partly transparent, overlap the background, or contain colors sampled from the background. Edge Detection examines a band around the selection boundary and looks for this transition.
Setting Radius
In Select and Mask, expand Edge Detection and adjust Radius. Radius is the width of the area, measured in pixels, where Photoshop searches for a better edge.
A small radius works well when the subject has a clear boundary, such as a shoulder against a plain background. A larger radius gives Photoshop more room to find loose strands, but it can also include unwanted background.
| Image condition | Starting approach |
|---|---|
| Sharp, clean outline | Use a small Radius |
| Short fur or slightly soft hair | Increase Radius gradually |
| Long, wispy strands | Try a larger Radius, then inspect carefully |
| Busy or similarly colored background | Keep Radius restrained and use the brush manually |
Start with a small value, such as 2–5 pixels, and increase it while watching the preview. The correct value depends on the image resolution. A 5-pixel radius has a different visual effect on a 400-pixel-wide image than on a 4000-pixel-wide image.
Using Smart Radius
Enable Smart Radius when the image contains both simple and complex edges. Smart Radius changes the effective search width along the boundary. It can use a narrower area around a solid shirt and a wider area around hair.
Smart Radius is not a hair detector. It is an adaptive edge setting. It may improve a selection with mixed edge types, but it can also make the boundary uneven or absorb background details.
Use this process:
- Set Radius to a modest value.
- Turn on Smart Radius.
- Inspect solid edges, loose hair, and areas with similar colors separately.
- Increase Radius only if fine detail is still missing.
- Turn Smart Radius off if it produces a dirty or unstable edge.
Common errors and correction
If the selection loses hair, increase Radius slightly and inspect the affected area. Do not immediately use a very large value. A large radius can pull background pixels into the subject and create a cloudy edge.
If the selection includes too much background, reduce Radius or disable Smart Radius. Then use the Refine Edge Brush only where detail needs special treatment. Edge Detection establishes a useful boundary; it does not replace local painting.
Remember that Radius affects the analysis around the existing boundary. It does not automatically repair a base selection that completely misses a large part of the subject. Correct major selection errors before relying on Edge Detection.
Exercise
A portrait has a clean jacket edge but wispy hair against a similar-colored background. Should you begin with a large Radius and leave Smart Radius enabled permanently?
Show answer
No. Begin with a modest Radius, test Smart Radius, and inspect both edge types. Increase the Radius only enough to recover hair, then disable Smart Radius if it creates background contamination.