Class RandomColor

Inheritance Relationships

Base Type

Class Documentation

class RandomColor : public mindspore::dataset::TensorTransform

Blend an image with its grayscale version with random weights t and 1 - t generated from a given range. If the range is trivial then the weights are determinate and t equals to the bound of the interval.

Public Functions

RandomColor(float t_lb, float t_ub)

Constructor.

Parameters
  • t_lb[in] Lower bound random weights.

  • t_ub[in] Upper bound random weights.

~RandomColor() = default

Destructor.