Menu

Color contamination after background removal: measuring fringe pixels
πŸ“°

Color contamination after background removal: measuring fringe pixels

DEV Community: computervisionΒ·οΏ½JayΒ·about 2 hours ago
#w93jO2D5
#devtocomputervision#technology#devto#dev#alpha
Long article (1805 words) β€” no AI summary yet.
Reading 0:00
15s threshold

In my last post I measured cutout edge geometry : how wide the alpha ramp is, how rough the outline is, whether thin details like a mug handle survive. All three metrics read the alpha channel. I ended with an explicit limitation: they say nothing about color contamination β€” a green fringe left by the original background that alpha alone cannot see.

This post closes that gap. It gives you three metrics that read the RGB channels, code to compute them, and real numbers from six versions of the same cutout. Two of the cases are ones where the metrics disagree β€” and the disagreement is the useful part.

Full disclosure, same as before: I work on PicViva , an image tool. The measurement code here is framework-free and works on anyone's cutout. I'm not comparing products in this post.

The setup: a cutout where I know the truth

Measuring a metric is easy. Knowing whether it's telling you the truth is harder.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.