Class RandomEqualize
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
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.
- 参数
prob – [in] A float representing the probability of equalization, which must be in range of 0, 1.
样例/* 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.
-
explicit RandomEqualize(float prob = 0.5)