how can i calculate distance between two points on an image

조회 수: 3 (최근 30일)
Saliha
Saliha 2014년 1월 9일
댓글: Walter Roberson 2017년 2월 16일
hallow
i want to calculate distance between two point on a body image. and to measure angle between two lines on an image............

답변 (2개)

Image Analyst
Image Analyst 2014년 1월 9일
Use imdistline() to do it interactively. Or use hypot() or sqrt() if you know the coordinates.
  댓글 수: 43
Walter Roberson
Walter Roberson 2014년 1월 25일
ginput(3) would allow the user to click on one limb, then click on the join at the body, and then click on the other limb; with the points and the order known, calculating the angle becomes a matter of applying the trig formula I gave earlier.
Saliha
Saliha 2014년 1월 25일
thanx............. let me try it...

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


Usman Siddique
Usman Siddique 2017년 2월 16일
is u are still working on that project ?

Community Treasure Hunt

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

Start Hunting!

Translated by