Jump to content
  • Advertisement
Sign in to follow this  
Martin Perry

Generate contours from image

This topic is 2061 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!