Class AdjustBrightness
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class AdjustBrightness : public mindspore::dataset::TensorTransform
Apply brightness adjustment on input image.
Public Functions
-
explicit AdjustBrightness(float brightness_factor)
Constructor.
- 参数
brightness_factor – [in] Adjusts image brightness, non negative real number.
样例/* Define operations */ auto decode_op = vision::Decode(); auto adjust_brightness_op = vision::AdjustBrightness(2.0); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op, adjust_brightness_op}, // operations {"image"}); // input columns
-
~AdjustBrightness() = default
Destructor.
-
explicit AdjustBrightness(float brightness_factor)