Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Merge Two Closely Overlapping Contours

Hi,

Say I have these two shapes,

image description

They can be represented by contours. I have identified the contour points that are close together. I want to merge them if their edges are close together.

How do I create another contour path that represents the merged shape?

image description

I have tried convex_hull on the concatenation of the two paths, but that only works on convex shapes!

Is there any algorithm that works on concave shapes?