Generate contours from image

Started by
1 comment, last by Martin Perry 11 years, 4 months ago
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
Advertisement
I don't know much about this, but there's a link at the bottom of countorc's documentation to The Contouring Algorithm, which may interest you.
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]
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.

This topic is closed to new replies.

Advertisement