MCPcopy Create free account
hub / github.com/colmap/colmap / WriteMatrix

Function WriteMatrix

src/colmap/controllers/undistorters.cc:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template <typename Derived>
54void WriteMatrix(const Eigen::MatrixBase<Derived>& matrix,
55 std::ofstream* file) {
56 using index_t = typename Eigen::MatrixBase<Derived>::Index;
57 for (index_t r = 0; r < matrix.rows(); ++r) {
58 for (index_t c = 0; c < matrix.cols() - 1; ++c) {
59 *file << matrix(r, c) << " ";
60 }
61 *file << matrix(r, matrix.cols() - 1) << '\n';
62 }
63}
64
65// Write projection matrix P = K * [R t] to file and prepend given header.
66void WriteProjectionMatrix(const std::filesystem::path& path,

Callers 2

WriteProjectionMatrixFunction · 0.85
RectifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected