Finding Angle between lines
显示 更早的评论
i need to find an angle between lines
has in the image
whats i do
Consider some random vector points

4 个评论
Image Analyst
2018-12-24
What do you have? Endpoint coordinates of each of the line segments? An image with all that stuff on there?
OriAlpha
2018-12-24
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
2018-12-25
回答(2 个)
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
Image Analyst
2018-12-25
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!