Class Normalize

Inheritance Relationships

Base Type

Class Documentation

class Normalize : public mindspore::dataset::TensorTransform

Normalize the input image with respect to mean and standard deviation.

Public Functions

Normalize(std::vector<float> mean, std::vector<float> std)

Constructor.

Parameters
  • mean[in] A vector of mean values for each channel, with respect to channel order. The mean values must be in range [0.0, 255.0].

  • std[in] A vector of standard deviations for each channel, with respect to channel order. The standard deviation values must be in range (0.0, 255.0].

~Normalize() = default

Destructor.