Ross ROSS = Recommend OSS · open-source software intelligence for agents

pymatting/pymatting

A Python library for alpha matting observed · 2026-08-28

github.com/pymatting/pymatting · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

67/100

  • Activity 76
  • Release rhythm 36
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 385
  • age_days: 2413
  • days_rel: 219
  • days_push: 148
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

1914 stars · 225 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

PyMatting is a Python library for alpha matting that estimates an alpha matte from an input image and a hand-drawn trimap to extract foreground objects. It implements multiple matting algorithms, foreground estimation, fast KNN search, and GPU-accelerated (CUDA/OpenCL) computation.

Use cases

  • cut out a subject from an image given a trimap
  • estimate the alpha channel of a foreground object
  • extract foreground pixels from a photo for compositing onto a new background
  • compute alpha mattes with GPU acceleration
  • compare alpha matting algorithm implementations in Python

When to choose

  • you have a trimap and need high-quality alpha matte estimation in Python
  • you need multiple matting algorithms (closed-form, KNN, random walk, etc.) in one library
  • you want GPU-accelerated foreground estimation via CUDA or OpenCL
  • you need a simple cutout function for image editing pipelines

When to avoid

  • you need automatic background removal without a trimap
  • you work outside Python or need a standalone GUI tool
  • you need real-time video matting at high frame rates

Facets

library · maturity active

image-processing machine-learning image-processing computer-vision graphics python cross-platform alpha-matting trimap foreground-extraction cutout image-segmentation numba cuda opencl gpu

3 sources

Member repositories

RepositoryRoleHealth v2
pymatting/pymattingmain67

For agents

markdown · JSON · MCP: product_card(name="pymatting/pymatting")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem