Class RandomEqualize

Inheritance Relationships

Base Type

Class Documentation

class RandomEqualize : public mindspore::dataset::TensorTransform

Randomly apply histogram equalization on the input image with a given probability.

Public Functions

explicit RandomEqualize(float prob = 0.5)

Constructor.

Parameters

prob[in] A float representing the probability of equalization, which must be in range of 0, 1.

Example
/* Define operations */
auto decode_op = vision::Decode();
auto random_op = vision::RandomEqualize(0.5);

/* dataset is an instance of Dataset object */
dataset = dataset->Map({decode_op, random_op},  // operations
                       {"image"});              // input columns
~RandomEqualize() = default

Destructor.