MATLAB: Morphological operation

image processing

i have an image
i want to perform morphological operation and need to get output image as
please help

Best Answer

one way
I = imread('1JK5Q.png');
BW = ~im2bw(I,.8);
BW1 = imdilate(BW,ones(1,4));