Separate the connected lines and shapes

Hi,
I want an approach and method to separate the connected lines. Here is my image
and here is the result I would like
How do I solve that problem? Thank you in advance!
Sincerely

2 comentarios

Doug Hull
Doug Hull el 21 de En. de 2014
Will the place you break always be on a "vertical" segment?
I think Regionprops and some heuristics will allow you to do this reasonably. Any a priori knowledge is useful to allow you to make this algorithm.
Image Analyst
Image Analyst el 21 de En. de 2014
For the initial part of this discussion, see this http://www.mathworks.com/matlabcentral/answers/112850#comment_190861

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 21 de En. de 2014

0 votos

call bwmorph to get branchpoints. Then remove then. Then get the endpoints of the segments and compute the angle. Remove any segments that are more vertical than horizontal. Then replace the branchpoints.

3 comentarios

consortium
consortium el 21 de En. de 2014
Editada: consortium el 21 de En. de 2014
Thanks, I already tried it but I can detect all connected lines here is results obtained
consortium
consortium el 22 de En. de 2014
I must try another way another method, now I want joins this discontinuous lines

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 21 de En. de 2014

Comentada:

el 22 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by