MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / Camera

Class Camera

deps/glomap/glomap/scene/camera.h:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace glomap {
11
12struct 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
28double Camera::Focal() const { return (FocalLengthX() + FocalLengthY()) / 2.0; }
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected