我需要使用 open cv 和 python 找出图像中两个边缘之间的接触角,所以有人可以建议我如何找到它吗?如果不是代码,请让我知道相同的算法。
问问题
525 次
1 回答
0
- Simplify edge A and B into a line equation (using only the few last pixels)
- Get the line equations of the two lines (form y = mx + b)
- Get the angle orientations of the two lines θ=atan|1/m|
- Subtract the two angles from each other
Make sure to do the special case of infinite slope, and also do some simple math to get Final_Angle = (0;pi)
于 2013-06-20T11:17:54.370 回答