MCPcopy Create free account
hub / github.com/DIVE128/DMVSNet / read_img

Function read_img

filter/pcd.py:60–64  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

58
59# read an image
60def read_img(filename):
61 img = Image.open(filename)
62 # scale 0~255 to 0~1
63 np_img = np.array(img, dtype=np.float32) / 255.
64 return np_img
65
66
67# read intrinsics and extrinsics

Callers 1

filter_depthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected