Tutorial · Hair & Edge Matting
How to Cut Out Hair and Fur in Photos (Sub-Pixel Edge Matting)
Hair and animal fur are the ultimate test of any background removal algorithm. Here is how modern on-device neural networks isolate fine strands with sub-pixel alpha gradients.
Updated
Published by AssetHUD
The Challenge of Hair and Fur
Unlike solid objects with sharp borders (like a smartphone or coffee mug), human hair and animal fur consist of thousands of individual strands that blend into the background.
A hard binary mask marks pixels as entirely subject or background. That can lose fine strands and soft edges. Different background removers handle these transitions differently; inspect the exported alpha against contrasting backgrounds instead of assuming all tools use the same mask method.
How BiRefNet Solves Fine Edges
AssetHUD includes the BiRefNet (Bilateral Reference Network) AI model. Instead of making a simple binary cut:
- It predicts a continuous 8-bit alpha matte for every pixel along the contour.
- Individual flyaway hair strands receive proportional alpha values (e.g., 30% or 60% opacity).
- When placed over a new backdrop in Figma or Photoshop, the new background color shows through the hair naturally.
Step-by-Step: Cutting Out Portraits in AssetHUD
- Press Ctrl + Space from any app.
- Drop your portrait or pet photo into the HUD.
- Select the High Precision (BiRefNet) model in settings.
- Press B. When the cutout is ready, zoom in to inspect the edge and check it against a contrasting background.
- Press C to copy the cutout directly to your clipboard.