Is there some well-known algorithm which turns user's drawings into smoothed shapes?

后端 未结 2 1146
耶瑟儿~
耶瑟儿~ 2020-12-31 09:13

My requirements: A user should be able to draw something by hand. Then after he takes off his pen (or finger) an algorithm smooths and transforms it into some basic

相关标签:
2条回答
  • 2020-12-31 09:46

    Based on your description I guess you're looking for a vectorization algorithm. Here are some pointers that might help you:

    • https://en.wikipedia.org/wiki/Image_tracing
    • http://outliner.codeplex.com/ - open source vectorizer of the edges in the raster pictures.
    • http://code.google.com/p/shapelogic/wiki/vectorization - describes different vectorization algorithm implementations
    • http://cardhouse.com/computer/vector.htm

    There are a lot of resources on vectorization algorithms, I'm sure you'll be able to find something that fits your needs. I don't know how complex these algorithms are to implement them, though,

    0 讨论(0)
  • 2020-12-31 09:50

    The Douglas-Peucker algorithm is used in geography (to simplify a GPS track for instance) I guess it could be used here as well.

    0 讨论(0)
提交回复
热议问题