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

Function WriteRigid3dToStringStream

src/colmap/scene/database_sqlite.cc:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void WriteRigid3dToStringStream(const Rigid3d& tform,
276 std::stringstream* stream) {
277 WriteBinaryLittleEndian<double>(stream, tform.rotation().w());
278 WriteBinaryLittleEndian<double>(stream, tform.rotation().x());
279 WriteBinaryLittleEndian<double>(stream, tform.rotation().y());
280 WriteBinaryLittleEndian<double>(stream, tform.rotation().z());
281 WriteBinaryLittleEndian<double>(stream, tform.translation().x());
282 WriteBinaryLittleEndian<double>(stream, tform.translation().y());
283 WriteBinaryLittleEndian<double>(stream, tform.translation().z());
284}
285
286void ReadRigRows(sqlite3_stmt* sql_stmt,
287 const std::function<void(Rig)>& new_rig_callback) {

Callers 1

WriteRigSensorsFunction · 0.85

Calls 2

rotationMethod · 0.45
translationMethod · 0.45

Tested by

no test coverage detected