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

Class RGB2YPbPr

pycontrast/datasets/util.py:108–113  ·  view source on GitHub ↗

Convert RGB PIL image to ndarray YPbPr.

Source from the content-addressed store, hash-verified

106
107
108class RGB2YPbPr(object):
109 """Convert RGB PIL image to ndarray YPbPr."""
110 def __call__(self, img):
111 img = np.asarray(img, np.uint8)
112 img = color.rgb2ypbpr(img)
113 return img
114
115
116class RGB2YIQ(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected