필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
majd tahat
majd tahat 2018년 6월 2일
편집: KALYAN ACHARJYA 2018년 6월 3일
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
Cedric
Cedric 2018년 6월 2일
편집: Cedric 2018년 6월 2일
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 2018년 6월 3일
편집: KALYAN ACHARJYA 2018년 6월 3일
What you want exactly? The distance between A and B?? And Distance between A & B? Clarify the problem.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by