how i can find these branching point

2 Ansichten (letzte 30 Tage)
mohammed alany
mohammed alany am 14 Apr. 2019
Kommentiert: mohammed alany am 15 Apr. 2019
Hi all
Who i can find these four points?
Note: the extention of this image in matlab is logical
b.jpg

Antworten (1)

Matt J
Matt J am 14 Apr. 2019
Bearbeitet: Matt J am 14 Apr. 2019
[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 Kommentare
Matt J
Matt J am 15 Apr. 2019
That wouldn't leave any fun for you ;)
mohammed alany
mohammed alany am 15 Apr. 2019
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Elementary Polygons finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by