Private/openCV
프로젝트 개인 정리
익명132
2017. 7. 15. 08:02
CV_8U
: 1-byte unsigned integer (unsigned char
).CV_32S
: 4-byte signed integer (int
).CV_32F
: 4-byte floating point (float
).
Q. vector < vector <int>> 와 v[MAX][MAX] 의 속도차이가 과연 클까?
-> vector<int> 로 i + j*col 이런 식으로 사용하거나, 기존 array를 이용하라고 말씀하심
결국 opencv의 Vec3f 를 사용했다.
디버깅의 필요성을 뼈저리게 느낌
기초 디버깅 : http://blog.naver.com/PostView.nhn?blogId=skout123&logNo=50134413712
회전행렬에 대하여 ----
임의의 축 회전변환
Rodrigues' rotation formula
점 p를 회전축 v(단위벡터) 에 대해서 세타만큼 회전시킨 값을 구할 수 있는 식.
https://math.stackexchange.com/questions/1019910/rotation-matrix-in-spherical-coordinates/1404353
이게 더 맞는듯 하다.
https://math.stackexchange.com/questions/275134/rotation-matrix-sending-the-north-pole-to-a-specified-point-on-the-sphere