Minimum distance between two Irregular forms

조회 수: 11(최근 30일)
WHAT is the min distance between these two shapes?
note: i know the connecting points of big figure.
didnot.jpg

채택된 답변

Image Analyst
Image Analyst 2019년 3월 31일
편집: Image Analyst 2019년 4월 1일
If you have the stats toolbox, try this:
distances = pdist2(xyShape1, xyShape2)
minDistance = min(distances(:))
[minRows, minColumns] = find(distances == minDistance)
  댓글 수: 18
mohammed alany
mohammed alany 2019년 4월 1일
many thanks, now it's work correctly.

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by