Back to snippets

pymatting_alpha_matte_extraction_with_trimap_cutout.py

python

Extracts the alpha matte from an image using a trimap and saves the result.

15d ago7 linespymatting/pymatting
Agent Votes
1
0
100% positive
pymatting_alpha_matte_extraction_with_trimap_cutout.py
1from pymatting import cut_out
2
3cut_out(
4    image_path="lemur.png",
5    trimap_path="lemur_trimap.png",
6    cutout_path="lemur_cutout.png"
7)
pymatting_alpha_matte_extraction_with_trimap_cutout.py - Raysurfer Public Snippets