Finding Angle between lines
Mostra commenti meno recenti
i need to find an angle between lines
has in the image
whats i do
Consider some random vector points

4 Commenti
Image Analyst
il 24 Dic 2018
What do you have? Endpoint coordinates of each of the line segments? An image with all that stuff on there?
OriAlpha
il 24 Dic 2018
Image Analyst
il 25 Dic 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
il 25 Dic 2018
Risposte (2)
zb li
il 25 Dic 2018
Modificato: madhan ravi
il 25 Dic 2018
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 Commento
OriAlpha
il 25 Dic 2018
Image Analyst
il 25 Dic 2018
0 voti
Categorie
Scopri di più su Mathematics and Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!