Finding Angle between lines

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 Kommentare

Image Analyst
Image Analyst am 24 Dez. 2018
What do you have? Endpoint coordinates of each of the line segments? An image with all that stuff on there?
OriAlpha
OriAlpha am 24 Dez. 2018
ya i have both
Image Analyst
Image Analyst am 25 Dez. 2018
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 am 25 Dez. 2018
below one is not clear
could you give me again

Melden Sie sich an, um zu kommentieren.

Antworten (2)

zb li
zb li am 25 Dez. 2018
Bearbeitet: madhan ravi am 25 Dez. 2018

0 Stimmen

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
Image Analyst
Image Analyst am 25 Dez. 2018

0 Stimmen

See this link where it goes over it in extreme detail. Then use norm() and dot().

Kategorien

Mehr zu Mathematics and Optimization finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 24 Dez. 2018

Beantwortet:

am 25 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by