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

Method __call__

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

Source from the content-addressed store, hash-verified

84class RGB2Lab(object):
85 """Convert RGB PIL image to ndarray Lab."""
86 def __call__(self, img):
87 img = np.asarray(img, np.uint8)
88 img = color.rgb2lab(img)
89 return img
90
91
92class RGB2YCbCr(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected