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

Function posterize

pycontrast/datasets/RandAugment.py:144–147  ·  view source on GitHub ↗
(img, bits_to_keep, **__)

Source from the content-addressed store, hash-verified

142
143
144def posterize(img, bits_to_keep, **__):
145 if bits_to_keep >= 8:
146 return img
147 return ImageOps.posterize(img, bits_to_keep)
148
149
150def contrast(img, factor, **__):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected