(self, depthpath, input_metadata)
| 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 | |
| 43 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected