Class AdjustSaturation
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class AdjustSaturation : public mindspore::dataset::TensorTransform
Adjust the color saturation of the input image.
Public Functions
-
explicit AdjustSaturation(float saturation_factor)
Constructor.
- 参数
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.
-
explicit AdjustSaturation(float saturation_factor)