MCPcopy
hub / github.com/naver/dust3r / _read_depthmap

Method _read_depthmap

dust3r/datasets/wildrgbd.py:35–40  ·  view source on GitHub ↗
(self, depthpath, input_metadata)

Source from the content-addressed store, hash-verified

33 return osp.join(self.ROOT, obj, instance, 'masks', f'{view_idx:0>5d}.png')
34
35 def _read_depthmap(self, depthpath, input_metadata):
36 # We store depths in the depth scale of 1000.
37 # That is, when we load depth image and divide by 1000, we could get depth in meters.
38 depthmap = imread_cv2(depthpath, cv2.IMREAD_UNCHANGED)
39 depthmap = depthmap.astype(np.float32) / 1000.0
40 return depthmap
41
42
43if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

imread_cv2Function · 0.90

Tested by

no test coverage detected