MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / imsave

Function imsave

utils/utils_image.py:67–71  ·  view source on GitHub ↗
(img, img_path)

Source from the content-addressed store, hash-verified

65 return img
66
67def imsave(img, img_path):
68 img = np.squeeze(img)
69 if img.ndim == 3:
70 img = img[:, :, [2, 1, 0]]
71 cv2.imwrite(img_path, img)
72
73# convert uint to 4-dimensional torch tensor
74def uint2tensor4(img):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected