RandomPosterizationΒΆ

Reduces the number of bits for each color channel.

Abstract Signature:

RandomPosterization(factor: int, value_range: Tuple[int, int] = [0, 255], seed: int)

PyTorch

API: torchvision.transforms.RandomPosterize
Strategy: Direct Mapping

Keras

API: keras.layers.RandomPosterization
Strategy: Direct Mapping

TensorFlow

API: keras.layers.RandomPosterization
Strategy: Direct Mapping