Effacer les filtres
Effacer les filtres

How to measure destance between a line's points and a spacific point

1 vue (au cours des 30 derniers jours)
majd tahat
majd tahat le 2 Juin 2018
Hello, i am looking for a way to find the distance between A and the (B,C)edge. for example, if i have 50 pixels on (B,C)edge then it should returen 50 distance value. (the main problem is in defining (B,C)edge without taking other boundaries like (A,B) or (A,C)).
  2 commentaires
Cedric
Cedric le 2 Juin 2018
Modifié(e) : Cedric le 2 Juin 2018
Can you assume that the edge BC is always defined by the first black pixel (vertically, in the downward direction) after which all pixels are black? If so, a basic FIND will identify the edge (using the 'last' option), and computing distances from row/col indices (using differences with row/col of point A) is trivial.
KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Juin 2018
Modifié(e) : KALYAN ACHARJYA le 3 Juin 2018
What you want exactly? The distance between A and B?? And Distance between A & B? Clarify the problem.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Image Filtering and Enhancement dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by