Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
Surendra Ratnu
Surendra Ratnu el 5 de Jun. de 2023
Respondida: Star Strider el 5 de Jun. de 2023
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) ??

Respuestas (2)

KALYAN ACHARJYA
KALYAN ACHARJYA el 5 de Jun. de 2023
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!

Star Strider
Star Strider el 5 de Jun. de 2023

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by