How to delete the branches?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
rui gao
el 23 de Sept. de 2019
Comentada: rui gao
el 4 de Oct. de 2019
I have a matrix which just consist by 0 and 1, like the figure above (1 is black and 0 is white). It's kind of river, but there is some noise like the red arrows above.
Is there some ways to identify these small segment lines and delete these small segment lines?
Calculating the length (pixel) of these small segment lines is not necessary, but I am interested to know it.
Any suggestion will be appreciated.
0 comentarios
Respuesta aceptada
Más respuestas (1)
darova
el 24 de Sept. de 2019
I have an idea:
- Find pairs of branch/end points smaller than desired length
- Select circle area between points. Find biggest area in this circle (if there are) and remove it
- Place modificated circle area into original image
See the attached script
12 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!