MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / load_depth

Method load_depth

mapping/src/dataset/replica.py:41–47  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

39 return gt_pose
40
41 def load_depth(self, index):
42 depth = cv2.imread(
43 osp.join(self.data_path, 'results/depth{:06d}.png'.format(index)), -1)
44 depth = depth / 6553.5
45 if self.max_depth > 0:
46 depth[depth > self.max_depth] = 0
47 return depth
48
49 def load_image(self, index):
50 rgb = cv2.imread(

Callers 1

__getitem__Method · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected