MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / RGB2YCbCr

Class RGB2YCbCr

pycontrast/datasets/util.py:92–97  ·  view source on GitHub ↗

Convert RGB PIL image to ndarray YCbCr.

Source from the content-addressed store, hash-verified

90
91
92class RGB2YCbCr(object):
93 """Convert RGB PIL image to ndarray YCbCr."""
94 def __call__(self, img):
95 img = np.asarray(img, np.uint8)
96 img = color.rgb2ycbcr(img)
97 return img
98
99
100class RGB2YDbDr(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected