MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / load_depth_image

Function load_depth_image

dataset_loaders/cambridge_scenes.py:59–65  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

57 return img
58
59def 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
67def normalize(x):
68 return x / np.linalg.norm(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected