Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I segment and label edges in a binary matrix?

1 Ansicht (letzte 30 Tage)
Neuroesc
Neuroesc am 20 Sep. 2024
Geschlossen: DGM am 24 Sep. 2024
I have a binary matrix that contains a polygon with different edges and vertices. Edges are false, non-edges are true. I would like to detect the edges of the polygon (i.e. lines with different orientations) like this:
The aim would be to get an output Matrix, the same size as my input one, where the edge values are labelled according to which edge they correspond to.
I have looked through Matlab's segmentation and edge detection functions but can't seem to find anything that does this.
Thanks for any help.

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by