フィルターのクリア

Finding Angle between lines

2 ビュー (過去 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 Center および File ExchangeRead, 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