First, you can binarize the image and then use ‘bwmorph’ function to thicken the white lines present in the image.
Format of usage is as follows: bwmorph(img, ‘thicken’, n)
Here, ‘n’ is the number of times to perform the operations. You can control the thickening by controlling this parameter.
After thickening if you like to connect the unconnected pixels, then you can use ‘bwmorph(img, ‘bridge’)’ and then can use ‘imdilate’ function to enhance the connected line.
a=imread('1.bmp');
a=rgb2gray(a);
a=imbinarize(a);
b=bwmorph(a,'thicken',1);
b=bwmorph(b,'bridge');
se = strel('line',10,180);
b = imdilate(b,se);
imshow(b);
Hope this will help you.
댓글 수: 0
로그인 to comment.