Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
127
def
array_to_blob(array):
128
if
IS_PYTHON3:
129
return
array.tobytes()
130
else
:
131
return
np.getbuffer(array)
132
133
134
def
blob_to_array(blob, dtype, shape=(-1,)):
Callers
5
add_camera
Method · 0.85
add_keypoints
Method · 0.85
add_descriptors
Method · 0.85
add_matches
Method · 0.85
add_two_view_geometry
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected