I\'m looking for a fast thinning algorithm that can be readily implemented using OpenCV. The mention of the library is because there are certain things that can be done in a
Not sure if this will help you, but I've used this library and found it very useful, (which includes thinning/skeletonisation). You can download the source here:
http://www.aforgenet.com/framework/
and a good article of its use here:
http://www.codeproject.com/KB/GDI-plus/Image_Processing_Lab.aspx
Please check some thinning implementations in my blog:
Both using OpenCV 2.x API.
I used Zhang-Suen as well Guo-Hall; both produced satisfactory results but not the best ones. Then I tried "A Modified Parallel Thinning Algorithm" by Y. Y. ZHANG and P.S.P Wang. It was far better than the previous two algorithms. Anyone looking for a good thinning algorithm should try it since it is faster and more effective than the other two.
for the sake of completeness, I'm posting here a set of thinning algorithms implemented using OpenCV and C/C++ that I found out on the net while answering this question. These have adequately answered this question for my needs. Putting them here in case others have similar requirements.