Finding Angle between lines
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i need to find an angle between lines
has in the image
whats i do
Consider some random vector points![Annotation 2018-12-24 235825.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/199711/Annotation%202018-12-24%20235825.jpeg)
![Annotation 2018-12-24 235825.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/199711/Annotation%202018-12-24%20235825.jpeg)
4 commentaires
Image Analyst
le 25 Déc 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).
Réponses (2)
zb li
le 25 Déc 2018
Modifié(e) : madhan ravi
le 25 Déc 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
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!