Azzera filtri
Azzera filtri

error in detecting components using bwlabel

2 visualizzazioni (ultimi 30 giorni)
I used bwlabel for detecting connected components but i got error output i.e 3 objects are detected instead of 8. I am attaching input image. Expecting your suggestion.

Risposta accettata

Walter Roberson
Walter Roberson il 29 Gen 2018
bwlabel assumes that the white pixels are where the data is and that the black pixels are holes. When you have black text on a white background you need to invert the image.
  4 Commenti
SHOBA MOHAN
SHOBA MOHAN il 30 Gen 2018
Thanks Walter. I will try with your inputs.
Image Analyst
Image Analyst il 30 Gen 2018
Or you could sum the image vertically to find the gaps between the symbols.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by