Vision

각도,라디안

junl 2021. 7. 21. 10:23

라디안-각도  상호 변환

 degree -> radian
 radian =  degree * π / 180

radian -> degree
 degree =  radian * 180 / π


#define ToRadian( degree )  ( (degree) * (PI / 180.0f) )
 #define ToDegree( radian )  ( (radian) * (180.0f / PI) ) 


출처: https://lightschord.tistory.com/category/Image Processing [어느 개발자의 지식채널]

 

기울기 이용한 각도 구하기

https://lightschord.tistory.com/22?category=204271

double degree = atan2( dx, dy ) * 180 / PI;

출처: https://lightschord.tistory.com/22?category=204271 [어느 개발자의 지식채널]