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

Function ReadRigid3dFromStringStream

src/colmap/scene/database_sqlite.cc:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263Rigid3d ReadRigid3dFromStringStream(std::stringstream* stream) {
264 Rigid3d tform;
265 tform.rotation().w() = ReadBinaryLittleEndian<double>(stream);
266 tform.rotation().x() = ReadBinaryLittleEndian<double>(stream);
267 tform.rotation().y() = ReadBinaryLittleEndian<double>(stream);
268 tform.rotation().z() = ReadBinaryLittleEndian<double>(stream);
269 tform.translation().x() = ReadBinaryLittleEndian<double>(stream);
270 tform.translation().y() = ReadBinaryLittleEndian<double>(stream);
271 tform.translation().z() = ReadBinaryLittleEndian<double>(stream);
272 return tform;
273}
274
275void WriteRigid3dToStringStream(const Rigid3d& tform,
276 std::stringstream* stream) {

Callers 1

ReadRigRowsFunction · 0.85

Calls 2

rotationMethod · 0.45
translationMethod · 0.45

Tested by

no test coverage detected