Skip to content

Matting & Background Removal

Cut the subject cleanly out of its background

inImageImage

What this capability means

Takes an image, sometimes with a hint point or box naming the subject, and outputs an image with an alpha channel — foreground kept, background transparent. Unlike segmentation it outputs a soft alpha matte rather than a hard class mask, and the semi-transparent transition at the edges is exactly what it must get right.

How it is done

A segmentation network first proposes the subject region, then a dedicated matting model estimates per-pixel opacity and foreground colour in the boundary band. Training data comes from compositing known subjects onto random backgrounds plus finely annotated alpha ground truth. Promptable segmentation models have made one-click cutouts easy, and video matting adds a requirement for temporal consistency across frames.

Representative products

4

Adobe

Firefly

An image generation and editing tool aimed at creators

2Caps
App Closed
ImageTextImage
2023

Stability AI

Stable Diffusion

Released text-to-image weights openly and small enough to run on consumer GPUs

2Caps
Model Open weights
TextImageImage
2022

SenseTime

SenseAvatar

Generates lip-synced digital-human video from a portrait and a voice track

1Caps
API Closed
ImageAudioVideo
2022

Hugging Face

Diffusers

A unified implementation and scheduler for diffusion models

2Linked
Tool Open source
2022

Organizations involved

Typical uses

  • Re-backgrounding and layout of product photos
  • ID-photo and portrait cutouts
  • Virtual backgrounds for short video and live streaming
  • Asset extraction for design and compositing

How it is evaluated

IoU
Intersection over union of the foreground region
SAD / MSE
Absolute or squared error of the alpha channel against truth
Gradient error
Whether edge transitions look like a real matte

Limits and hard parts

  • Hair, fur and mesh produce ragged or grey fringes instead of clean semi-transparent edges
  • When subject and background colours are close, or the background is busy, the boundary decision fails
  • Frame-by-frame video matting flickers at the edges and needs extra temporal handling

Concepts behind it

Computer Vision

Semantic SegmentationIntermediate

Colouring every pixel: not a box around the object, but a colouring book

4Linked
Figures 2 · Data 1

Deep Learning

Convolutional Neural NetworksIntermediate

Replacing full connections with “look locally, reuse the same filter everywhere” — the idea that made image recognition work

5Linked
Figures 2 · Data 1