Class AdjustGamma

Inheritance Relationships

Base Type

Class Documentation

class AdjustGamma : public mindspore::dataset::TensorTransform

AdjustGamma TensorTransform.

说明

Apply gamma correction on input image.

Public Functions

explicit AdjustGamma(float gamma, float gain = 1)

Constructor.

Example
/* Define operations */
auto decode_op = vision::Decode();
auto adjust_gamma_op = vision::AdjustGamma(10.0);

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

参数
  • gamma[in] Non negative real number, which makes the output image pixel value exponential in relation to the input image pixel value.

  • gain[in] The constant multiplier.

~AdjustGamma() = default

Destructor.