davidAlgis / pyDot2Dot

Create a dot to dot draw from an image
MIT License
0 stars 0 forks source link

Open shape doesn't return the correct behavior #1

Closed davidAlgis closed 1 month ago

davidAlgis commented 1 month ago

When given in input, an open shape like a 'c' : inputTest

The algorithm find the contour of the shape on both "side" of the shape, therefore there are too many points: inputTest_dotted

The expected result will be to have just point on the path in this case as it already defined a contour.

davidAlgis commented 1 month ago

I solved it using the skeleton instead of the contour and the Visvalingam–Whyatt algorithm to retrieve just the important points