Minimum distance between two Irregular forms

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

채택된 답변

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개)


Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by