Identify Shape and Extract Vertices

2 vues (au cours des 30 derniers jours)
Ridge Durrant
Ridge Durrant le 3 Août 2017
Commenté : Image Analyst le 16 Août 2017
Hi. I am using mapshow to overlay several lines on top of each other. I need to write code that will identify which shape confined by these lines has the most corners, and then pull that shape out and have the locations of each vertice in an array.
Thanks!
  1 commentaire
Image Analyst
Image Analyst le 16 Août 2017
Post an image or a screenshot.

Connectez-vous pour commenter.

Réponses (1)

Elizabeth Reese
Elizabeth Reese le 9 Août 2017
As far as an algorithm that will do this, I am not really sure. I did find some MATLAB functions that could help you find the corners. Try taking a look at the following links.
Mapping Toolbox > polyxpoly
Computer Vision System Toolbox > detectHarrisFeatures
Computer Vision System Toolbox > detectMinEigenFeatures
If you use polyxpoly, then you can get back a two-column array of line segment indices corresponding to the intersection points. This could help you make a connectivity matrix and find the longest cycle.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by