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

Function load_depth_image

dataset_loaders/seven_scenes.py:139–145  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

137 return img
138
139def 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
147def normalize(x):
148 return x / np.linalg.norm(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected