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

Function ComputeCameraCenter

src/colmap/mvs/texture_mapping.cc:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130Eigen::Vector3f ComputeCameraCenter(const float* R, const float* T) {
131 const Eigen::Map<const Eigen::Matrix<float, 3, 3, Eigen::RowMajor>> R_m(R);
132 const Eigen::Map<const Eigen::Vector3f> T_m(T);
133 return -R_m.transpose() * T_m;
134}
135
136std::vector<Eigen::Vector3f> ComputeFaceNormals(const PlyMesh& mesh) {
137 const size_t num_faces = mesh.faces.size();

Callers 1

SelectViewsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected