{
  "id": 21757068,
  "title": "Feathering the mask did not fix the halo around a blurred background: 29.40 vs 21.53",
  "url": "https://urgent.news/2026/11/25/feathering-the-mask-did-not-fix-the-halo-around-a-blurred-background",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T08:07:54.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/yue_shu_c621a4a637f22396f/feathering-the-mask-did-not-fix-the-halo-around-a-blurred-background-2940-vs-2153-75b"
  },
  "original_language": "en",
  "account": "Blurring the background of a video clip and then feathering the person's mask to isolate them can sometimes result in a halo or ring around the person. In a test, a black figure was cut out of a clip with a 18-pixel blur on a light wall. The edge band scored 21.53 without any feathering. When the mask was feathered by 3 pixels, the score increased to 29.40, indicating a worse appearance. Shrink the mask by 2 pixels and feather by 2 pixels, and the score improved slightly to 21.93. The metric revealed that feathering often pushes the person's color into the measured band, making the halo appear worse than it actually is. A more effective approach was to remove the person from the frame, blur the background, and then place the person back on top. This method reduced the edge score from 17.10 to 0.63 in one test. Removing the person from the frame, blurring the result, and then adding the person back on top reduced the edge score from 17.10 to 0.63. Other tests showed that smaller masks, holes in the background, and certain inpainting methods could also impact the halo's visibility. The cost and performance of different methods were also considered, with the CPU implementation being slower than the Telea fill method. ImgIng's video matting tool utilizes blurred backgrounds, which can result in a halo appearing around the person. To achieve a cleaner edge, it is recommended to blur the background layer that has the person removed instead of blurring the entire footage and then placing a keyed copy of the person over it. For more complex scenarios, such as deep learning inpainting and hand-held shots, further testing may be necessary.",
  "summary": "You cut a person out of a clip, blur the background, and a faint ring of the person's own color sits along the edge. The usual advice is to feather the mask. In this test that made the ring score worse, so here are the numbers. Labels used below: [measured] means a number from this test, [not tested] means it was not run. Everything was run once, on one 3-second clip and some synthetic figures,…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}