If you let a user blur the background behind a matted person, the fix for the glow around their shoulders is not free. On 1080p frames, filling the person's hole with Telea inpainting before the blur took 398.0 ms per frame on the CPU, against 162.4 ms for the plain blur. That is about 2.5 times. On a simple wall it removed nearly all of the halo. On a busy bookshelf it removed much less, and in one setting it made things worse. This post is the budget rule I would use before shipping, written as practice and assumptions rather than a war story.

Where the halo comes from

The halo is not a bad matte. The usual pipeline blurs the whole original frame and pastes the sharp person on top, so the blurred layer still contains the person's colour. That colour leaks outward by roughly the blur radius. A black jacket leaves a dark edge on a light wall, a red one leaves a red tint, a white one leaves a bright rim. In the synthetic samples the leaked colour tracked the blurred alpha with a correlation of 0.9989 to 1.0000 across four jacket colours and three blur strengths. So it is not glowing, it is the person's colour mixed into the background.

Strength matters. With Gaussian sigma at 6, 18 and 40, the halo reached about 11, 30 and 66 px, and the colour error in the first 4 px next to the edge (CIELAB ΔE76) was 16.72, 21.53 and 24.23. Around 2.3 is roughly the point where a difference starts to be noticeable, which is only a reference line, since nobody scored these by eye. If your product offers a strength slider, the top of the slider is where the halo gets expensive to ignore.

What the fix buys

The fix is to remove the person first, let Telea fill the hole from the nearby pixels, blur that, then paste the person back. At sigma 18 on a black figure against a light wall, the first-4-px error fell from 21.53 to 0.53. On a 3-second real clip (static background, 330 by 450, 90 frames) it went from 17.10 to 0.63, and the frame-to-frame flicker at the edge fell from 0.322 to between 0.016 and 0.052, because the halo no longer follows the person around.

Real footage credit: Wikimedia Commons, VOA Learning English, public domain, cropped, matted and put on a new background. The remaining test images are self-made.

Where it stops working

Three things I would write down as risks before promising a client anything. First, a mask that is 3 px smaller than the person leaves the edge in the "background", and the error only dropped from 21.53 to 17.98. Second, bigger is not safer. On the wall, growing the hole by 15 px still gave 1.94, but on the high-contrast bookshelf the same 15 px gave 21.47, worse than no fix at all (15.75), because the fill wiped out real texture near the person. Even a tight hole left 0.34 on the wall and 6.72 on the shelf. Third, feathering did not help: it changes the person's edge, not the background, where the colour has already spread. A 3 px feather raised the error from 21.53 to 29.40, though that metric is harsher on feathering than an eye would be.

Also worth saying plainly: Telea and normalized convolution estimate a smooth background. They do not recover what was behind the person. Moving backgrounds, handheld footage, long clips, 4K and GPU timings were not measured.

A budget rule

Per frame at 1080p on one CPU thread, plain blur was 162.4 ms, normalized convolution 389.8 ms, Telea 398.0 ms. If you render server-side and bill yourself by the second, multiply it out. A 10-second clip at 30 fps is 300 frames, so roughly 49 s against 119 s of CPU. Those two totals are my own estimate, 300 times the 162.4 ms and 398.0 ms single-frame medians, not a measured run; nobody timed a whole clip. The numbers describe OpenCV on a CPU, an Apple-silicon Mac, one run, and say nothing about a GPU or a browser.

My working assumption would be three tiers. Plain backgrounds and strong blur: pay for the fix. Cluttered backgrounds: cap the strength near sigma 6, where the halo was about 11 px on the plain synthetic wall (not measured on a cluttered one), and skip the fill unless the mask is tight. Anything where you cannot afford 2.5 times the cost: ship the plain blur, and say so in the feature description.

Where ImgIng fits

ImgIng, at https://imging.ai/ , has a video matting page still labelled Beta, aimed at desktop Chrome or Edge. Its blur-original background mode produced the same kind of edge, which looks like the original frame being blurred with the person in it, though how it works inside is a guess on my part. For a clean edge, one option is a transparent export, which can only be WebM, then the order above on your own side. Long clips, 4K, older machines, fast motion, occlusion and semi-transparent objects may be slow or leave edge errors there.