MCPcopy Index your code
hub / github.com/cvg/Hierarchical-Localization / blob_to_array

Function blob_to_array

hloc/utils/database.py:134–138  ·  view source on GitHub ↗
(blob, dtype, shape=(-1,))

Source from the content-addressed store, hash-verified

132
133
134def blob_to_array(blob, dtype, shape=(-1,)):
135 if IS_PYTHON3:
136 return np.fromstring(blob, dtype=dtype).reshape(*shape)
137 else:
138 return np.frombuffer(blob, dtype=dtype).reshape(*shape)
139
140
141class COLMAPDatabase(sqlite3.Connection):

Callers 1

example_usageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected