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

Function ToPythonMask

src/pycolmap/utils.h:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19typedef Eigen::Matrix<bool, Eigen::Dynamic, 1> PyInlierMask;
20
21inline PyInlierMask ToPythonMask(const std::vector<char>& mask_char) {
22 return Eigen::Map<const Eigen::Matrix<char, Eigen::Dynamic, 1>>(
23 mask_char.data(), mask_char.size())
24 .cast<bool>();
25}

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected