Identify Shape and Extract Vertices

조회 수: 8 (최근 30일)
Ridge Durrant
Ridge Durrant 2017년 8월 3일
댓글: Image Analyst 2017년 8월 16일
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
Image Analyst
Image Analyst 2017년 8월 16일
Post an image or a screenshot.

댓글을 달려면 로그인하십시오.

답변 (1개)

Elizabeth Reese
Elizabeth Reese 2017년 8월 9일
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.

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by