Is this possible to convert a thick line or curve into its thinner version
11 views (last 30 days)
Is this possible to convert a thick line or curve into its thinner version in an image using Matlab / Octave? Please view the image. Right side curves (alphabets) are thicker and need to be converted into the left ones. i.e., a single line version is needed.
Ahmet Cecen on 18 Nov 2014
Take an image with the best exposure possible, having high contrast between the paper white and font black. Use a simple tresholding method like Otsu's and get a BW binary image. Use:
a) erosion (imerode) with a disk structural element (strel)
b) use bwulterode
c) you can also use bwmorph with 'skel' option.
I am sure there are other ways to do it too. Just a couple simple ones that might help start.
More Answers (2)
Image Analyst on 18 Nov 2014
You can skeletonize it after thresholding.
binaryImage = grayImage < 128; % or whatever.
skeletonImage = bwmorph(binaryImage, 'skel', inf);
You cannot use imerode() because it will break apart your object into multiple objects. You cannot use bwulterode because it will shrink the blob down to a single point.