A cutout that looks clean on a white canvas can fall apart the moment you put it on a dark one, or zoom to 200%, or try to match it against another product photo in the same listing.
"Looks clean" is not a measurement. I wanted numbers I could run in CI, compare across runs, and argue about with someone who disagrees.
This post gives you three metrics that each catch a different way a cutout fails, the code to compute them, and real measurements from five versions of the same cutout — including two cases where the numbers disagree in a way that matters.
The setup
One photo: a white ceramic mug on a wood table, 1600x1067 (Unsplash license, free for commercial use). It has a handle with a see-through gap , which is the detail most cutouts destroy.
One real matte: Apple's Vision foreground segmentation ( VNGenerateForegroundInstanceMaskRequest ), run locally on macOS.…