Пример #1
0
 def get_depth_image(self, idx):
     assert idx < self.num_samples
     img_filename = os.path.join(self.depth_dir, "%06d.png" % (idx))
     return utils.load_depth(img_filename)
Пример #2
0
 def get_depth(self, idx):
     idx = self.sample_ids[idx]
     img_filename = os.path.join(self.depth_dir, "%06d.png" % (idx))
     return utils.load_depth(img_filename)
Пример #3
0
 def get_depth(self, idx):
     assert (idx < self.num_samples)
     img_filename = os.path.join(self.depth_dir, '%06d.png' % (idx))
     return utils.load_depth(img_filename)
Пример #4
0
 def get_depth_image(self, idx):
     # assert idx < self.num_samples
     img_filename = os.path.join(self.depth_dir, f"{self.index_format}.png" % (idx))
     return utils.load_depth(img_filename)