Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 023

Wrinkles, Shadows and Creases in the Backdrop

SHORT ANSWER

A crease usually does not break the key because it is dark. It breaks it because it lost colour. This tool scores every pixel by how much of its own brightness is green excess, so a fold that only loses light scores exactly like the flat cloth and clears with it, while a fold that also picks up warm bounce or neutral spill climbs past the cut point and survives as a stripe. The line you actually see in the export is more often the blend rows at the edges of the fold than the fold itself.

Open the green screen remover โ†—

Why a dark fold is not a second colour

The green preset of this tool does not look at brightness. It computes one number per pixel: how far the green channel sits above whichever of red and blue is higher, as a fraction of that pixel's total light. That fraction is turned into a score where 255 means "no green excess at all" and 0 means "pure key green", and a pixel is cleared when its score falls at or below a threshold that the tolerance slider moves between 247 and 183.

Because the formula divides by the pixel's own sum, halving every channel changes nothing. A flat pixel of rgb(0, 210, 106) has 104 units of green excess over a sum of 316, which is 32.9 percent, and scores 171.1. A fold at half brightness, rgb(0, 105, 53), has 52 units over a sum of 158, which is also 32.9 percent, and scores 170.0. The fold is the same colour to the keyer, only dimmer, and dimmer is not a thing this tool measures.

Table of seven fold depths with their pixel colours, green excess and scores, showing the score staying near 170 while brightness falls by 70 percent.
Fig. 1 โ€” Seven fold depths on the repo's own screen frame. Brightness drops by 70 percent and the score moves by less than three points.

Measured on the 640 by 420 frame this project ships as a test case, at the default tolerance of 24, a crease band that had lost 70 percent of its light scored 168.2 against a threshold of 198.6. It cleared completely. So did bands at 20, 30, 40, 50 and 60 percent. The darkest fold in that run was not the one most likely to leave a mark, and making the cloth darker by hanging it away from the light is never the fix.

What a fold has to lose before the key keeps it

The other half of the story is chroma. A real crease on a real set rarely just gets darker, because the light that reaches into the fold has usually bounced off something first: a white card, a warm practical lamp, a painted wall, or the subject's own shirt. That bounce raises red and blue relative to green, which is exactly what the score measures. A fold losing 10 percent of its green excess scores 183.8, still under the 198.6 threshold. At 20 percent it scores 195.9 and is still cleared, but only just. At 30 percent it scores 208.7 and survives at the default setting, and at 40 percent it scores 220.9.

That is the honest boundary, and it is narrow. Somewhere between a fifth and a third of the cloth's colour separation, a fold stops being a dimmer version of the screen and starts being a different colour that the tool is entitled to keep. It also tells you why the same cloth behaves differently in two rooms: the fold is not the variable, the bounce light is.

Two side-by-side panels contrasting a fold that is only darker and scores 168.2 with a fold that has lost chroma and scores up to 220.9, plus a band diagram of the transition rows.
Fig. 2 โ€” Left: light only. Right: light plus chroma loss. Only the right-hand case crosses the threshold, and only the transition rows leave a line.

Where the visible line actually comes from

Even with a fold that keys out cleanly, exports often keep a faint line at the bottom of it. The row-by-row measurement explains that: the band of a crease is not a rectangle with sharp edges. Between flat cloth and fold bottom there are one or two rows that are a blend of both, and a blend of two colours that each score around 171 is not another 171. It is a colour partway toward neutral, and neutral scores higher.

On the same frame, the 16 pixel band held 8,155 key candidates and every single one was cleared. The nine rows around it held 5,760 pixels and cleared 4,589, a rate of 79.7 percent, leaving 1,171. Across the whole frame the total cleared count was 12,744 instead of the 13,915 you would get with a perfectly flat sheet. So the diagnosis is not "the keyer missed the wrinkle". It is "the keyer cleared the wrinkle and the boundary between two cleared colours is where the residue lives".

What you seeWhat happenedWorth touching in software?
Faint dark stripe behind the subjectFold is darker only, but its blend rows stayedNo. Retouch a few rows, or flatten the cloth.
Broad green patch that will not clearFold lost chroma to warm or neutral bounceNo. Remove the bounce source and reshoot the plate.
Whole fold missing but its outline presentBand cleared, transition rows partially clearedNo. Same 79.7 percent figure at every tolerance.
Edge of the fold as sharp as a cutoutCloth is very even, row grades are 1 pixel wideNo. This is the good case; leave it alone.

Why the two sliders do nothing here

Tolerance moves the threshold along the score axis, and edge softness widens the band of pixels near that threshold that get partial alpha. Neither one changes what the boundary rows are. Running the creased frame at tolerance 0, 24, 60 and 100 moved the band clearance by less than half a percent each time, and running it at feather widths of 15, 65 and 295 pixels produced identical numbers: 4,589 cleared, 1,171 left, three times in a row. If a fold is visibly surviving, it is because its score is on the far side of the line, and the only control that moves the line is the one you should not spend on a crease, because moving it also moves it for the subject.

That is the same arithmetic described in the tolerance walkthrough, applied to a case where the answer is "leave it alone". The reason edge softness feels like it should help is that a crease looks like an edge. It is not: an edge is where the subject meets the cloth, and a crease is a change of shade inside the cloth itself.

The order that actually fixes it

First, the cloth. Steam it or stretch it on a frame so the surface is flat, or at least so the remaining folds run vertically and far behind the subject rather than across the frame. Second, the light. Kill anything coloured bouncing into the cloth from the side: a white card reflecting a warm lamp, a wall painted anything but neutral, or a second light with a different colour temperature. That is the half of the problem the measurements above point at, and it is the half no slider can reach.

Third, distance. A fold that sits within a metre of the subject is beside their silhouette and will show up against the edge you spend the most time on; the same fold two or three metres back is behind them and mostly invisible. Fourth, software. Once the plate is clean, a small amount of hand erasing on the few blend rows is a two-minute job, and it is far cheaper than re-shooting or than raising tolerance until the subject starts to lose the fine edges you were trying to protect.

If a shot does have a broad, clearly wrong-coloured patch that will not clear, that is a different problem with a different answer: the cloth has changed colour, not just brightness, and the measured band for that is the same four-corner check used for uneven lighting. Take a sample from the flat cloth and one from the fold, and compare their scores rather than their appearance. If the fold is within about a fifth of the flat cloth's colour separation they will both clear; past about a third, they will not.

Questions people actually ask

Why does my green screen have darker stripes that survive the key?
Because those stripes lost colour as well as light. A fold that only darkens keeps its green excess and scores 168 to 171 against a threshold of 198.6 at the default tolerance, so it clears; a fold that also picks up warm or neutral bounce loses chroma and climbs past the threshold.
Does raising tolerance fix wrinkles?
No, and on a plain fold it has nothing to do. The fold band cleared at tolerance 0, 24, 60 and 100 alike; the surviving pixels are blend rows, and raising tolerance only creeps toward the subject.
Why is there a thin green line where two folds meet although the folds key out?
Because a crease edge is a row of mixed pixels. The 16 pixel band cleared 8,155 of 8,155 candidates while the nine blend rows cleared 4,589 of 5,760, leaving 1,171 pixels that read as a hairline.
Can edge softness remove that line?
No. Softness only changes the alpha of pixels already near the cut point; feather widths of 15, 65 and 295 produced identical clearance numbers on the same frame.
Is it worth buying a thicker cloth to avoid creases?
Only if you also flatten it. Thicker cloth folds more deeply but hangs straighter once steamed; a thin sheet that is stretched flat behaves better than a heavy one left in a suitcase.
Do cast shadows on the cloth behave the same way as creases?
Yes, in the tested frame. A 100 pixel soft shadow and a 16 pixel hard crease at the same fold depth both cleared their bands at every tolerance and both left residue only on the transition rows.