how i can find these branching point

1 次查看(过去 30 天)
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