Class AdjustHue
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class AdjustHue : public mindspore::dataset::TensorTransform
说明
Apply hue adjustment on input image.
Public Functions
-
explicit AdjustHue(float hue_factor)
Constructor.
- 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
- 参数
hue_factor – [in] How much to shift the hue channel, must be in the interval [-0.5, 0.5].
-
~AdjustHue() = default
Destructor.
-
explicit AdjustHue(float hue_factor)