(filename)
| 137 | return img |
| 138 | |
| 139 | def load_depth_image(filename): |
| 140 | try: |
| 141 | img_depth = Image.fromarray(np.array(Image.open(filename)).astype("uint16")) |
| 142 | except IOError as e: |
| 143 | print('Could not load image {:s}, IOError: {:s}'.format(filename, e)) |
| 144 | return None |
| 145 | return img_depth |
| 146 | |
| 147 | def normalize(x): |
| 148 | return x / np.linalg.norm(x) |
nothing calls this directly
no outgoing calls
no test coverage detected