Class AdjustHue

Inheritance Relationships

Base Type

Class Documentation

class AdjustHue : public mindspore::dataset::TensorTransform

Note

Apply hue adjustment on input image.

Public Functions

explicit AdjustHue(float hue_factor)

Constructor.

Parameters

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

Example
/* 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() override = default

Destructor.