@brief Create the simple 3x3 camera matrix, given a principal point and the focal lengths, both in pixels
| 40 | /// @brief Create the simple 3x3 camera matrix, given a principal point and |
| 41 | /// the focal lengths, both in pixels |
| 42 | inline CameraMatrix |
| 43 | getCameraMatrix(const Eigen::Ref<const Eigen::Vector2d> &principalPoint, |
| 44 | const Eigen::Ref<const Eigen::Vector2d> &focalLengths) { |
| 45 | CameraMatrix ret; |
| 46 | // clang-format off |
| 47 | ret << focalLengths[0], 0, principalPoint[0], |
| 48 | 0, focalLengths[1], principalPoint[1], |
| 49 | 0, 0, 1; |
| 50 | // clang-format on |
| 51 | } |
| 52 | |
| 53 | /// @brief Create the simple 3x3 camera matrix, given a principal point and |
| 54 | /// a focal length (symmetrical between x and y), all in pixels |
no outgoing calls
no test coverage detected