error in detecting components using bwlabel
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SHOBA MOHAN
am 29 Jan. 2018
Kommentiert: Image Analyst
am 30 Jan. 2018
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.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Jan. 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 Kommentare
Image Analyst
am 30 Jan. 2018
Or you could sum the image vertically to find the gaps between the symbols.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!