CHROMA KEY NOTES / 015
Edge Softness: Feather a Cutout Without Losing Detail
Edge softness sets the width of the transition band that starts at the cut point, so it changes how opaque the edge pixels are, not how many of them are removed. Feather is computed as 15 plus 2.8 times the slider value, in the same green-excess units the cut point uses: 15 units at 0, 65.4 at the default of 18, 295 at 100. Set it just wide enough to cover the edge that is already in the photo, and go back toward 0 for anything with a hard silhouette.
Open the green screen remover ↗
Two sliders, two different jobs
Tolerance and softness are usually sitting next to each other in the same panel, which invites the reading that they are two amounts of the same thing. They are not. Tolerance decides on which side of a colour-distance line a pixel falls and therefore whether the pixel is background at all. Softness only applies to pixels that survived that test but sit close to it, and it decides how much alpha they keep.
The arithmetic is short enough to quote. The tool computes a cut point from the tolerance slider, compares every pixel against it by green excess, and then, for each surviving pixel that touches a removed neighbour, builds a ramp of length 15 + softness × 2.8 and runs smoothstep along it. Distance measured from the cut point, divided by that length, clamped to one, is the alpha multiplier. In other words the ramp starts at the cut point no matter what the slider says, and the slider moves only the far end.
What actually changes when you drag it
I replicated the processing chain from the page's own script in a short Python program and ran it over a 640 × 420 studio frame, 268,800 pixels, with tolerance held at its default of 24 and softness swept from 0 to 100 one step at a time. Nothing about the background decision changes, because that decision was already made. What changes is the population of edge pixels and how opaque each of them is.
| Softness | Band width | Partial edge pixels | Mean alpha of that band | Edge pixels rounded to clear |
|---|---|---|---|---|
| 0 | 15 | 135 | 0.62 | 2 |
| 10 | 43 | 285 | 0.47 | 11 |
| 18 (default) | 65.4 | 1,630 | 0.83 | 20 |
| 50 | 155 | 1,580 | 0.26 | 70 |
| 100 | 295 | 1,506 | 0.09 | 144 |
Two things stand out. The first is that the partial pixel count is not a straight line. It sits around 135 to 285 from 0 to 10, jumps to 1,630 between softness 15 and 16 when the ramp first reaches the second row of pixels inside the subject, and then declines slowly to 1,506 as the slider approaches 100. Somebody expecting a smooth improvement from a smooth slider will find a step instead.
The second is the direction of the mean alpha. It rises from 0.62 to 0.83 at the default and then falls steadily to 0.09 at the top of the range. A wider band does not make edges softer in the sense of smoother; it makes them dimmer, because the ramp is being stretched across pixels that are further and further from the cut point. Past a certain width the entire band rounds down to zero and the edge is a hard cut again, only a few pixels further in. That is exactly what happens at softness 100 combined with tolerance 100: 1,648 pixels go from opaque to fully transparent at rounding, and the partial count collapses to zero.
Why softness cannot fix a bad cut
On the same studio frame the number of fully cleared pixels moved from 209,104 to 209,246 across the whole softness range. That is 142 pixels, or 0.05% of the image, and the movement is entirely made of edge pixels that were rounded away. No amount of dragging the softness slider removed a single additional patch of background, because removing background happens earlier, in the connectivity pass.
This is worth stating plainly because it matches what people report in other software. On a stacked comparison of two key passes, the author found that the order alone decided which half of the background disappeared, since each pass judged the same pixels against its own threshold rather than narrowing the first one. Softness shares that limitation from the other side: it is a second-order control applied after the first-order decision has already been made.
Picking a value for the edge you have
The useful question is not "how much softening do I want" but "how wide is the transition in my photo". If the edge is one pixel wide, a fifteen-unit band already spans it, and anything larger spends opacity on pixels that are solid subject. If the edge is genuinely soft, because the subject is hair, fur, or moving, a narrow band will clip the outermost strands to zero and leave a crisp silhouette where a soft one belongs.
Things that go wrong at each end
At or near 0
- A staircase appears on diagonal and curved edges, because every edge pixel gets either full or zero alpha and there is no in-between value.
- The green spill reduction has almost nothing to work on. The unmix step scales the green channel down by one minus alpha, so with alpha near one the correction is near zero. On the studio frame the mean green reduction was 28.2 units at softness 0 and 6.3 at the default, simply because the default creates far more pixels at intermediate alpha.
- Downstream resizing has no gradient to interpolate, so a 2x reduction can produce a visibly stepped outline where a soft edge would have averaged out.
At or near 100
- The edge becomes translucent for a width of 295 green-excess units, which reaches well inside the subject on a frame whose entire separation between background and subject is narrower than that.
- Rounding to zero eats 144 pixels at tolerance 24 and 1,648 at tolerance 100, so the practical effect is a slightly shrunk subject, not a softer one.
- If you composite onto a dark background, a band of low-alpha pixels reads as a dark rim; the partial pixels keep a faint green cast that the spill step cannot fully remove because there is so little green left in a pixel whose alpha is 0.09.
A workflow that does not depend on luck
Work in the order the sliders are applied, not the order they are presented. First set tolerance so that the background is removed and nothing inside the subject is; check the cutout on white and on a dark background, because a rim shows up on one and hides on the other. Then lower softness to 0 and walk it up two or three steps at a time, watching the edge only. Stop at the first setting where the transition in your photo is covered. If the edge still looks ragged, the problem is upstream, in the lighting or in the subject colour, and no softness value will repair it.
For a transparent cutout heading into printing or a store listing it is usually better to stop early: a small hard band composites predictably onto any colour, while a wide translucent rim depends on what is behind it. The printing walkthrough and the white background comparison both come down to the same thing, which is that a pixel that is only partly there gets interpreted differently by every program that touches it.
Where the subject is the thing the band cannot save
There is one situation where no softness value is even the right question: when the colour you are trying to protect is the colour you are keying out. Softness only shapes pixels that sit near the cut point. A subject whose own colour scores below that cut point is not near the boundary, it is on the far side of it, so the band has nothing to shade and the pixels are removed as background.
The green preset makes this easy to see because the score is a single number. A mid-green polo shirt scores 208.1, which sits above the cut point of 198.6 at tolerance 24 and below the 209 at tolerance 40, so the shirt survives at the default and vanishes in one step if the slider moves up. A houseplant leaf at 188.7 is already below 198.6 and keeps none of its 81,600 pixels at the default. In both cases the softness slider produces no useful effect, because there is no partial edge to feather once the whole area has been classified as backdrop.
The practical consequence is an ordering rule. Decide which side of the cut point your subject sits on before touching softness, because softness cannot move a colour across it. If a green garment or a green prop is part of the shot, the choice that decides the outcome is the backdrop, not the sliders: the same plant that kept 0 of 81,600 pixels on a green key kept all 81,600 on a sampled blue one at every tolerance setting.
Questions people actually ask
- Does edge softness remove more background?
- No. On the studio frame it moved the fully cleared count by 142 pixels across the whole slider, against roughly 209,000 that were already cleared by tolerance.
- What softness should I use for a hard product edge?
- Start at 0. The minimum band of 15 units is already wider than a one-pixel transition, so 0 gives the truest silhouette; raise it only if the edge in the photo is visibly soft.
- Why does a high softness make the edge look faded on a checkerboard?
- Because the ramp reaches solid subject pixels and gives them a low alpha. At softness 100 the band is 295 units wide and its mean alpha is 0.09, so pixels that used to be opaque are nearly invisible.
- Why did the edge get harder when I pushed softness to the top?
- Because every pixel in the widened band rounded down to zero and was deleted. At tolerance 100 that carries off 1,648 pixels and leaves no partial ones at all.
- Do I set tolerance or softness first?
- Tolerance first. It decides where the boundary is, and softness can only shape what happens after that point, never recover background the tolerance left in place.