# pymatting

A Python library for alpha matting

Canonical page: https://www.reposhelf.co.uk/projects/github/pymatting/pymatting.html

- Project ID: pymatting/pymatting
- Source: GitHub
- Original project: https://github.com/pymatting/pymatting
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: MIT
- Repository availability checked: 2026-11-03T18:38:39.819Z
- Demo page loaded: 2026-11-16T13:56:33.694Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> We introduce the PyMatting package for Python, which implements various methods to solve the alpha matting problem.

> Given an input image and a hand-drawn trimap \(top row\), alpha matting estimates the alpha channel of a foreground object which can then be composed onto a different background \(bottom row\).

- Website and Documentation:
- Alpha matting implementations for:
- Closed Form Alpha Matting \[\[1\]\]\(\#1\)
- Large Kernel Matting \[\[2\]\]\(\#2\)
- KNN Matting \[\[3\]\]\(\#3\)

## Author-documented requirements and audience

> We introduce the PyMatting package for Python, which implements various methods to solve the alpha matting problem.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/pymatting/pymatting/blob/master/README.md

Extraction checked: 2026-11-03T18:38:39.959Z

Last recorded source update: 2026-09-08T13:39:16.000Z

Saved release: v1.1.16 — 2026-09-08T13:39:17.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=pymatting%2Fpymatting). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
