MATLAB Answers


Removing connections between an image containing digits

Asked by Soumyadip
on 19 May 2013


I have been working on a project to extract the digits from a calculator screen. The full image is

Now I successfully extracted only the screen from the above full image and after some image processing operations, I could generate the following image

However, in the above image of the digits, some of them are overlapping. So it is becoming difficult to individually segregate each digit. Can anyone suggest how to remove the connections between the digits? Will any of the utilities in the function bwmorph() help?

1 Answer

Answer by Image Analyst
on 19 May 2013

I might have already suggested this in your earlier series of questions, but did you try watershed segmentation, like in Steve's demo:

  1 Comment

Ok, I am trying to implement watershed segmentation in my code. Meanwhile, I was thinking of applying the 'thin' utility in the bwmorph function. There is a 'bridge' utility in bwmorph to form bridges between pixels, but I need just the opposite. Can you suggest anything regarding that?

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!