error in detecting components using bwlabel
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
SHOBA MOHAN
el 29 de En. de 2018
Comentada: Image Analyst
el 30 de En. de 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169591/image.jpeg)
0 comentarios
Respuesta aceptada
Walter Roberson
el 29 de En. de 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 comentarios
Image Analyst
el 30 de En. de 2018
Or you could sum the image vertically to find the gaps between the symbols.
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!