Connect lines of binary image

조회 수: 1 (최근 30일)
Santi
Santi 2020년 1월 24일
댓글: Rik 2020년 1월 27일
Dear comunity,
I have the following image composed by many (almost closed) lines. I am contacting you because I would like to know if somebody has an elegant solution to connect the lines (some of them are broken). If possible, I would like to avoid the use of morphological operators as it is importat to me to maintain the lines profile.
Thank you in advance for your help,
Santiago
  댓글 수: 6
Santi
Santi 2020년 1월 27일
Dear Mohammad Sami,
That sounds very interesting. Could you please explain a little bit more? (e.g. how to plot the lines...)
Thank you very much.
Rik
Rik 2020년 1월 27일
Have you looked at the documentation for the houghlines function? It includes an example.
As for my suggestion, you can very easily create a non-symmetrical structuring element like this:
r=1;
x=linspace(-1,1,10);
y=linspace(-2,2,10);
[X,Y]=ndgrid(x,y);
SE=sqrt(X.^2+Y.^2) <= r;

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by