MCPcopy Create free account
hub / github.com/93won/360_visual_inertial_odometry / LoadMatrix4f

Method LoadMatrix4f

src/util/ConfigUtils.cpp:263–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263Eigen::Matrix4f ConfigUtils::LoadMatrix4f(const cv::FileNode& node) {
264 Eigen::Matrix4f matrix = Eigen::Matrix4f::Identity();
265
266 if (node.isSeq() && node.size() == 4) {
267 for (int i = 0; i < 4; ++i) {
268 cv::FileNode row = node[i];
269 if (row.isSeq() && row.size() == 4) {
270 for (int j = 0; j < 4; ++j) {
271 matrix(i, j) = (float)(double)row[j];
272 }
273 }
274 }
275 }
276
277 return matrix;
278}
279
280} // namespace vio_360

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected