opencv cvFastArctan整理
C语言中的atan和atan2 https://www.cnblogs.com/dutlei/archive/2013/01/14/2860332.html
cvFastArctan 具体源码查看路径
函数声明路径:/opencv-3.3.1/build/include/opencv2/core/core.hpp
函数定义路:/opencv-3.3.1/sources/modules/core/src/mathfucs.cpp
CV_IMPL float cvFastArctan(float y, float x) { return cv::fastAtan2(y, x); }
所以可直接参考学习这篇博文
fastAtan2解密 http://blog.csdn.net/lien0906/article/details/49587759
对比以上两篇文章发现,atan范围是-pi/2~pi/2, atan2范围是-pi~pi, 返回值都是弧度,转化成角度需要*180/PI; 而fastAtan2和cvFastArctan返回值是角度,且范围在0~360度