1 | initial version |
All you have to do is,
Draw each contour with thickness=CV_FILLED.
Now for each contour apply thinning algorithm as explained here.
See the result I got for your sample image.
2 | No.2 Revision |
All you have to do is,
Draw each contour with thickness=CV_FILLED.
Now for each contour apply thinning algorithm as explained here.
See the result I got for your the above sample image.