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

Method __call__

pycontrast/datasets/util.py:118–121  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

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