Skip to main content
Ctrl K

Browser Alpha Matting

Deterministic C99/WebAssembly & TypeScript library for closed-form alpha matting and unpremultiplied RGBA halo removal in client-side scientific imaging.

1
contributor
Get started
42 commitsLast commit ≈ 1 week ago0 stars0 forks

Description

browser-alpha-matting is a zero-dependency reference library (implemented across C99, TypeScript/ESM, Java 11, Swift 5.9, and D) for deterministic foreground-background alpha matting, trimap boundary refinement, and unpremultiplied RGBA color decontamination directly inside memory-bounded client environments.

Technical Capabilities

  • Closed-Form & Local Linear Color Unmixing: Reconstructs continuous opacity $\alpha \in [0, 1]$ and true foreground chromaticity $F$ along sub-pixel transition boundaries without server-side GPU offloading.
  • Zero-Allocation Scanline Processing: Operates in-place over contiguous Uint8ClampedArray and IEEE-754 buffers for reproducible biomedical microscopy, quantitative figure preparation, and privacy-preserving browser execution.
  • Standards & Verification: Accompanied by cross-language golden test vectors, Maven Central (io.github.utilvo:browser-alpha-matting), Swift Package Index, and ELIXIR bio.tools metadata (biotools:browser-alpha-matting).
Keywords
Programming languages
  • JavaScript 58%
  • Java 21%
  • Swift 9%
  • D 5%
  • Python 3%
  • GDShader 2%
  • TeX 2%
  • TypeScript 1%
License
</>Source code

Contributors