MCPcopy Create free account
hub / github.com/XiaoBaiiiiii/colmap-pcd / add_descriptors

Method add_descriptors

scripts/python/database.py:192–196  ·  view source on GitHub ↗
(self, image_id, descriptors)

Source from the content-addressed store, hash-verified

190 (image_id,) + keypoints.shape + (array_to_blob(keypoints),))
191
192 def add_descriptors(self, image_id, descriptors):
193 descriptors = np.ascontiguousarray(descriptors, np.uint8)
194 self.execute(
195 "INSERT INTO descriptors VALUES (?, ?, ?, ?)",
196 (image_id,) + descriptors.shape + (array_to_blob(descriptors),))
197
198 def add_matches(self, image_id1, image_id2, matches):
199 assert(len(matches.shape) == 2)

Callers

nothing calls this directly

Calls 1

array_to_blobFunction · 0.85

Tested by

no test coverage detected