| 32 | } |
| 33 | |
| 34 | Eigen::Matrix3d Camera::GetK() const { |
| 35 | Eigen::Matrix3d K; |
| 36 | K << FocalLengthX(), 0, PrincipalPointX(), 0, FocalLengthY(), |
| 37 | PrincipalPointY(), 0, 0, 1; |
| 38 | return K; |
| 39 | } |
| 40 | |
| 41 | inline poselib::Camera ColmapCameraToPoseLibCamera(const Camera& camera) { |
| 42 | poselib::Camera pose_lib_camera( |
no outgoing calls
no test coverage detected