Class RandomPosterize

Inheritance Relationships

Base Type

Class Documentation

class RandomPosterize : public mindspore::dataset::TensorTransform

Reduce the number of bits for each color channel randomly.

Public Functions

explicit RandomPosterize(const std::vector<uint8_t> &bit_range = {4, 8})

Constructor.

Parameters

bit_range[in] Range of random posterize to compress image. uint8_t vector representing the minimum and maximum bit in range of [1,8] (Default={4, 8}).

~RandomPosterize() = default

Destructor.