Accepted Answer

% You can change the thresholds values as per your requirements/More accurate
BW=im2bw(rgb2gray(imread('bin1.png')));% You provided the RGB Image
BW1=bwmorph(BW,'thicken',20);
BW2=bwmorph(BW1,'majority',50);
figure,
imshow(BW2);

3 Comments

Or do the sorts of morphological operations, you will get the result
I am very appreciated for this answer. Thank you a lot.
KALYAN ACHARJYA
KALYAN ACHARJYA on 21 Aug 2018
Edited: KALYAN ACHARJYA on 21 Aug 2018
My Pleasure @Attawut

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!