how i can find these branching point

2 visualizaciones (últimos 30 días)
mohammed alany
mohammed alany el 14 de Abr. de 2019
Comentada: mohammed alany el 15 de Abr. de 2019
Hi all
Who i can find these four points?
Note: the extention of this image in matlab is logical
b.jpg

Respuestas (1)

Matt J
Matt J el 14 de Abr. de 2019
Editada: Matt J el 14 de Abr. de 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 comentarios
Matt J
Matt J el 15 de Abr. de 2019
That wouldn't leave any fun for you ;)
mohammed alany
mohammed alany el 15 de Abr. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by