라디안-각도 상호 변환
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 [어느 개발자의 지식채널]
'Vision' 카테고리의 다른 글
패터인식 (0) | 2021.07.21 |
---|---|
유익한 블로그 (0) | 2021.07.21 |
각도구하기 방법2 (RotatedRect 이용) (0) | 2021.07.20 |
각도구하기 방법 1(도형의 꼭지점 이용) (0) | 2021.07.19 |
Angle&Gradient&Distance (0) | 2021.07.19 |