# How to find the minimum distance from one point to other point ?

조회 수: 8 (최근 30일)
Surendra Ratnu 2023년 6월 5일
답변: Star Strider 2023년 6월 5일
In image, we have two boundaries (M- inner boundary and N-outer boundary). Suppose M boundary has 1000 points and N has 1500 points. I want to calculate the distance and angle from point V(fixed point) to boundary M. How will i calculate the minimum diatance from point M on the boundary m to boundary N (for every point on the boundary m) ??

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

### 답변 (2개)

KALYAN ACHARJYA 2023년 6월 5일
You can do that in multiple ways, one way
• Segment both boundaries into two separate images.
• Store the pixel indices in a cell array (two cell array)
• Calculate the Euclidean distance between each pair of indices (all possible combinations).
• Find the minimum distance value.
I hope this helps!
##### 댓글 수: 0이전 댓글 -2개 표시이전 댓글 -2개 숨기기

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

Star Strider 2023년 6월 5일

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

### 카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

R2023a

### Community Treasure Hunt

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

Start Hunting!

Translated by