Class AdjustHue

Inheritance Relationships

Base Type

Class Documentation

class AdjustHue : public mindspore::dataset::TensorTransform

说明

Apply hue adjustment on input image.

Public Functions

explicit AdjustHue(float hue_factor)

Constructor.

参数

hue_factor[in] How much to shift the hue channel, must be in the interval [-0.5, 0.5].

样例
/* Define operations */
auto decode_op = vision::Decode();
auto adjust_hue_op = vision::AdjustHue(0.2);

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

Destructor.