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

Function imwrite

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

Source from the content-addressed store, hash-verified

207 cv2.imwrite(img_path, img)
208
209def imwrite(img, img_path):
210 img = np.squeeze(img)
211 if img.ndim == 3:
212 img = img[:, :, [2, 1, 0]]
213 cv2.imwrite(img_path, img)
214
215
216

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected