| 10 | namespace glomap { |
| 11 | |
| 12 | struct Camera : public colmap::Camera { |
| 13 | Camera() : colmap::Camera() {} |
| 14 | Camera(const colmap::Camera& camera) : colmap::Camera(camera) {} |
| 15 | |
| 16 | Camera& operator=(const colmap::Camera& camera) { |
| 17 | *this = Camera(camera); |
| 18 | return *this; |
| 19 | } |
| 20 | |
| 21 | bool has_refined_focal_length = false; |
| 22 | |
| 23 | inline double Focal() const; |
| 24 | inline Eigen::Vector2d PrincipalPoint() const; |
| 25 | inline Eigen::Matrix3d GetK() const; |
| 26 | }; |
| 27 | |
| 28 | double Camera::Focal() const { return (FocalLengthX() + FocalLengthY()) / 2.0; } |
| 29 |
nothing calls this directly
no outgoing calls
no test coverage detected