Class AdjustSaturation

Inheritance Relationships

Base Type

Class Documentation

class AdjustSaturation : public mindspore::dataset::TensorTransform

Adjust the color saturation of the input image.

Public Functions

explicit AdjustSaturation(float saturation_factor)

Constructor.

Parameters

saturation_factor[in] Adjust image saturation, non negative real number.

样例
/* Define operations */
auto decode_op = vision::Decode();
auto adjust_saturation_op = vision::AdjustSaturation(2.0);

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

Destructor.