MCPcopy Create free account
hub / github.com/IceClear/StableSR / bgr2rgb

Function bgr2rgb

scripts/util_image.py:212–212  ·  view source on GitHub ↗
(im)

Source from the content-addressed store, hash-verified

210 return rlt.permute([0, 3, 1, 2])
211
212def bgr2rgb(im): return cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
213
214def rgb2bgr(im): return cv2.cvtColor(im, cv2.COLOR_RGB2BGR)
215

Callers 2

imreadFunction · 0.85
jpeg_compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected