MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / getCameraMatrix

Function getCameraMatrix

plugins/videobasedtracker/GetCameraMatrix.h:42–51  ·  view source on GitHub ↗

@brief Create the simple 3x3 camera matrix, given a principal point and the focal lengths, both in pixels

Source from the content-addressed store, hash-verified

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

Callers 1

getBlenderCameraMatrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected