What is the mathematical proof for the formula to find angle between 3 points in an image?

1 回表示 (過去 30 日間)
NIKHIL PATIL
NIKHIL PATIL 2016 年 5 月 18 日
編集済み: Ahmet Cecen 2016 年 5 月 18 日
Hi everyone,
I'm trying to find angle between 3 points (say a, b, & c with b at the canter) in an image. I've used this formula for calculating the angle
angle_in_radian = atan2(norm(cross(n1,n2)),dot(n1,n2))
where n1 is the vector formed using points a & b while n2 is the vector formed using points c & b
The above formula corresponds to atan2(Y,X) in matlab i.e. norm(cross(n1,n2)) gives us Y and dot(n1,n2) gives us X
The formula works correct. I need the mathematical derivation of this formula. I searched about the vectors, the cross and dot products but didn't found expected result.
Please help me, i need to add this point in my thesis.
Thanks in advance

回答 (1 件)

Ahmet Cecen
Ahmet Cecen 2016 年 5 月 18 日
編集済み: Ahmet Cecen 2016 年 5 月 18 日
https://en.wikipedia.org/wiki/Scalar_projection
https://en.wikipedia.org/wiki/Cross_product
Get the expression for sine and cosine there. Divide sine by cosine and you will get the expression you are looking for.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by