how i can find these branching point

조회 수: 2 (최근 30일)
mohammed alany
mohammed alany 2019년 4월 14일
댓글: mohammed alany 2019년 4월 15일
Hi all
Who i can find these four points?
Note: the extention of this image in matlab is logical
b.jpg

답변 (1개)

Matt J
Matt J 2019년 4월 14일
편집: Matt J 2019년 4월 14일
[I,J] = find(binaryimg<max(binaryimg(:))/2);
IJ = [I,J];
[~,idx] = min(IJ*[1 1; -1 1; 1 -1; -1 -1].');
Corners = IJ(idx,:);
For some elaboration on why this works, see this thread,
  댓글 수: 6
Matt J
Matt J 2019년 4월 15일
That wouldn't leave any fun for you ;)
mohammed alany
mohammed alany 2019년 4월 15일
ok, can you give more help about what you say above? "Then I would use houghlines to find all sides of the remaining polygon and their end points"
because i dono't have engough information in matlab,
Thank you

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

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by