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