(filename)
| 57 | return img |
| 58 | |
| 59 | def load_depth_image(filename): |
| 60 | try: |
| 61 | img_depth = Image.fromarray(np.array(Image.open(filename)).astype("uint16")) |
| 62 | except IOError as e: |
| 63 | print('Could not load image {:s}, IOError: {:s}'.format(filename, e)) |
| 64 | return None |
| 65 | return img_depth |
| 66 | |
| 67 | def normalize(x): |
| 68 | return x / np.linalg.norm(x) |
nothing calls this directly
no outgoing calls
no test coverage detected