MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / imsave

Function imsave

ldm/modules/image_degradation/utils_image.py:203–207  ·  view source on GitHub ↗
(img, img_path)

Source from the content-addressed store, hash-verified

201# matlab's imwrite
202# --------------------------------------------
203def imsave(img, img_path):
204 img = np.squeeze(img)
205 if img.ndim == 3:
206 img = img[:, :, [2, 1, 0]]
207 cv2.imwrite(img_path, img)
208
209def imwrite(img, img_path):
210 img = np.squeeze(img)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected