# PyMatting: A Python Library for Alpha Matting

arXiv: https://arxiv.org/abs/2003.12382 · HTML: https://mlsanity.com/paper/2003.12382/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 25 Mar 2020.

## Built on by (most cited first, 7 of 7)

- [BLIP-Diffusion: Pre-trained Subject Representation for Controllable Text-to-Image Generation and Editing](https://mlsanity.com/paper/2305.14720/) (2023)
- [Deep Spectral Methods: A Surprisingly Strong Baseline for Unsupervised Semantic Segmentation and Localization](https://mlsanity.com/paper/2205.07839/) (2022)
- [Materialistic: Selecting Similar Materials in Images](https://mlsanity.com/paper/2305.13291/) (2023)
- [VaxNeRF: Revisiting the Classic for Voxel-Accelerated Neural Radiance Field](https://mlsanity.com/paper/2111.13112/) (2021)
- [Semantic Aware Diffusion Inverse Tone Mapping](https://mlsanity.com/paper/2405.15468/) (2024)
- [Robotic Waste Sorter with Agile Manipulation and Quickly Trainable Detector](https://mlsanity.com/paper/2104.01260/) (2021)
- [Structure from Motion-based Motion Estimation and 3D Reconstruction of Unknown Shaped Space Debris](https://mlsanity.com/paper/2408.01035/) (2024)

## Abstract (arXiv)

An important step of many image editing tasks is to extract specific objects from an image in order to place them in a scene of a movie or compose them onto another background. Alpha matting describes the problem of separating the objects in the foreground from the background of an image given only a rough sketch. We introduce the PyMatting package for Python which implements various approaches to solve the alpha matting problem. Our toolbox is also able to extract the foreground of an image given the alpha matte. The implementation aims to be computationally efficient and easy to use. The source code of PyMatting is available under an open-source license at https://github.com/pymatting/pymatting.
