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

Method __call__

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

Source from the content-addressed store, hash-verified

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