use case Β· basics Β· alpha matte & edge anatomy Β· onnx-community/ormbg-ONNX

Alpha Matte & Edge Anatomy Explorer

Run ORMBG (Apache-2.0, 44.3 MB WASM q8) once to capture its continuous 0..255 alpha channel, then sculpt threshold, edge softness, and O(WΒ·H) feather blur live in milliseconds with zero re-inference. Move your pointer over the canvas β€” or step coordinates with the keyboard sliders β€” to probe exact raw and refined alpha values at any pixel.

1. Initialise ORMBG & Choose Subject

Initialise ORMBG above, then click Extract Raw Alpha Matte.

Active image: Smiling Portrait (1280Γ—850)

Live Matte Refinement (0 ms re-inference)

0.50
0.50
0 px

Pixel Alpha Probe (pointer or keyboard)

50%
50%
Pixel (x, y)–
Raw Alpha–
Refined Alpha–
Zone–
Source RGB–
Inference–
Raw Solid FG–
Refined Solid FG–
Refined Soft Edge–
Refined Solid BG–
Show the code β€” literal ORMBG pipeline load & epoch cancellation
Show the code β€” off-main-thread RGBA extraction & ImageBitmap transfer
Show the code β€” client-side smoothstep & separable box-blur matte refinement