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

Doug Hull
Doug Hull 2014년 1월 21일
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 2014년 1월 21일
For the initial part of this discussion, see this http://www.mathworks.com/matlabcentral/answers/112850#comment_190861

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 1월 21일

0 개 추천

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

consortium
consortium 2014년 1월 21일
편집: consortium 2014년 1월 21일
Thanks, I already tried it but I can detect all connected lines here is results obtained
consortium
consortium 2014년 1월 22일
I must try another way another method, now I want joins this discontinuous lines

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2014년 1월 21일

댓글:

2014년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by