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

Class RGB2YIQ

pycontrast/datasets/util.py:116–121  ·  view source on GitHub ↗

Convert RGB PIL image to ndarray YIQ.

Source from the content-addressed store, hash-verified

114
115
116class RGB2YIQ(object):
117 """Convert RGB PIL image to ndarray YIQ."""
118 def __call__(self, img):
119 img = np.asarray(img, np.uint8)
120 img = color.rgb2yiq(img)
121 return img
122
123
124class GaussianBlur(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected