Class AdjustGamma

Inheritance Relationships

Base Type

Class Documentation

class AdjustGamma : public mindspore::dataset::TensorTransform

AdjustGamma TensorTransform.

Note

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

Parameters
  • 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.