It is possible deleting Skeleton small branches in opencv or scikit image?
image-processing, mathematical-morphology, opencv, scikit-image
Solution
Here is the result from scikit-image:
from skimage import io
from skimage import morphology
image = io.imread('opencv.png')
out = morphology.skeletonize(image > 0)
Problem
Is it possibile deleting small branches during skeleton procedure? As in this picture: http://felix.abecassis.me/wp-content/uploads/2011/09/skel_opencv.png Only O letter is perfect but not all the others letters. THere is a way during the procedure or after to deleting this little branches? I use python opencv, but a solution also with pymorph or scikit-image is good. Here there is the code i used for skeletonization: Code Original image: http://felix.abecassis.me/wp-content/uploads/2011/09/opencv.png