Skip to content

Why does filling holes in the replacement matte also cover the space inside a bent arm?

A hole-filling operation can treat an intentionally enclosed piece of background as an error. Whether an area is enclosed is a geometric fact, not proof that it belongs to the person.

VIDEO SIGNAL AND TIMING DIAGNOSTICSAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Inspect the layers

Inspect the source frame for deliberate openings, especially arm loops, eyeglass frames and gaps in clothing. Outline which openings must show the plate.

Compare the mask before and after filling. Test a frame where the opening first closes, since topology can change mid-gesture.

Controlled edge example

A filled 7-by-7 silhouette with a 3-by-3 background opening gains 9 opaque pixels if the opening is filled. Those pixels are valid background in this controlled example.

Which part of the composite to repair

Exclude real openings from the fill or adjust them over time. Smoothing the surrounding outline will not restore background that the interior mask has already covered.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example