Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C# OpenCV
hi
anyone could give me an example of an algorithm for thinning (skeletonization) using OpenCV in C # / C + + or without OpenCV.?
need an algorithm that leave a letter or word with only one pixel wide.
Please can someone help me?
 
Thank you!
Posted 29-May-12 11:07am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Beware, thinning is not equal to erosion! You find a good article about thinning here: Thinning Algorithm[^]
  Permalink  
Comments
stib_markc at 30-May-12 4:57am
   
5! for the link.
nv3 at 30-May-12 5:02am
   
Thanks!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please try this:
 
This is a morphological image processing. As an example of algorithm:
Iteratively delete (or erode) pixels inside the object (letter) to shrink it without shortening it or breaking it apart. Note that this is an iterative process. In general, you may stop the iteration after several times. Iterate it 3-5 times gives good and fast result.
 
You may find third party for this kind of image processing. The following thir party has that function.
http://www.artuxsoft.com[^]
http://www.artuxsoft.com/image-erosion.aspx[^]
 
Regards.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

you can use distance transform(with chessborad distance metric,seems good.) first, then find the minimum distance points on the image which is will be the skeleton that you want. Smile | :)
 
see also this : http://homepages.inf.ed.ac.uk/rbf/HIPR2/distance.htm[^]
 
jkchan
http://cgmath.blogspot.com
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Here is an overview See weather this help[^]
 
This will give an overview
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 30 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid