Sign in to follow this  
Martin Perry

Generate contours from image

Recommended Posts

Hi,

I want to generate contours from image based on several values (tressholds in A, B, C....). So far, I am using Marching Squares, which works fine. Now for the problem. If I use MATLAB "contourc" function, I got far better results. My main problem is with duplicite contours.
Is there any better and still easy to implement algorithm besides Marching Squares ? And If anonyo knew, what MATLAB is using...

Thanks

Share this post


Link to post
Share on other sites
I don't know much about this, but there's a link at the bottom of [url="http://www.mathworks.com/help/matlab/ref/contourc.html"]countorc[/url]'s documentation to [url="http://www.mathworks.com/help/matlab/creating_plots/contour-plots.html#f10-2614"]The Contouring Algorithm[/url], which may interest you.

Share this post


Link to post
Share on other sites
I alreday read documentation for contourc. From that, it seems like similar aproach to marching squares. Hovewer, their algorithm doesn´t generate too much nested contours and has less contours for image while maintaining almost same visual as my Marching Squares.

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