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

Function array_to_blob

hloc/utils/database.py:127–131  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

125
126
127def array_to_blob(array):
128 if IS_PYTHON3:
129 return array.tobytes()
130 else:
131 return np.getbuffer(array)
132
133
134def blob_to_array(blob, dtype, shape=(-1,)):

Callers 5

add_cameraMethod · 0.85
add_keypointsMethod · 0.85
add_descriptorsMethod · 0.85
add_matchesMethod · 0.85
add_two_view_geometryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected