- 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.
How to find the minimum distance from one point to other point ?
9 次查看(过去 30 天)
显示 更早的评论
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) ??
0 个评论
回答(2 个)
KALYAN ACHARJYA
2023-6-5
You can do that in multiple ways, one way
I hope this helps!
0 个评论
Star Strider
2023-6-5
@Surendra Ratnu — I thought we covered all of this in How to find angle between a fixed point to multiple point ??.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!