Finding Angle between lines

조회 수: 1 (최근 30일)
OriAlpha
OriAlpha 2018년 12월 24일
답변: Image Analyst 2018년 12월 25일
i need to find an angle between lines
has in the image
whats i do
Consider some random vector pointsAnnotation 2018-12-24 235825.jpg
  댓글 수: 4
Image Analyst
Image Analyst 2018년 12월 25일
I doubt you have both. What created that image?
And I'm not going to do an image processing example if you have the endpoints in a vector and can do a simple math thing like the answer below (scroll down).
OriAlpha
OriAlpha 2018년 12월 25일
below one is not clear
could you give me again

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

답변 (2개)

zb li
zb li 2018년 12월 25일
편집: madhan ravi 2018년 12월 25일
A(a,b) B(c,d) C(e,f)
AB = (c-a,d-b),BC = (e-c,f-d)
cosABC = AB*BC/|AB|*|BC| = (c-a,d-b)*(e-c,f-d)/|(c-a,d-b)|*|(e-c,f-d)|
so , acos(cosABC)*180/pi
  댓글 수: 1
OriAlpha
OriAlpha 2018년 12월 25일
its not clear
could you tell me again

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


Image Analyst
Image Analyst 2018년 12월 25일
See this link where it goes over it in extreme detail. Then use norm() and dot().

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by