Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

All you have to do is,

  1. Find contour.
  2. Draw each contour with thickness=CV_FILLED.

  3. Now for each contour apply thinning algorithm as explained here.

See the result I got for your sample image.

image description

All you have to do is,

  1. Find contour.
  2. Draw each contour with thickness=CV_FILLED.

  3. Now for each contour apply thinning algorithm as explained here.

See the result I got for your the above sample image.

image description