Sign in to follow this  
TWN

Masking algorithm

Recommended Posts

I'm making an application that can do a mask/selection of an image like in Photoshop. I need an algorithm that works like the "Magic Wand" in Photoshop. In general any information on masking/selection would be much appreciated. Thanks.

Share this post


Link to post
Share on other sites
How advanced does it need to be?
Something simple like a flood fill until the contrast (compared to the center or previous pixel) exceeds a threshold value might be sufficient.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this