Class AdjustGamma
- Defined in File vision.h 
Inheritance Relationships
Base Type
- public mindspore::dataset::TensorTransform(Class TensorTransform)
Class Documentation
- 
class AdjustGamma : public mindspore::dataset::TensorTransform
- 
说明 Apply gamma correction on input image. Public Functions - 
explicit AdjustGamma(float gamma, float gain = 1.0)
- Constructor. - 参数
- gamma – [in] Non negative real number, which makes the output image pixel value exponential in relation to the input image pixel value. 
- gain – [in] The constant multiplier. Default: 1.0. 
 样例
- /* Define operations */ auto decode_op = vision::Decode(); auto adjust_gamma_op = vision::AdjustGamma(10.0); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op, adjust_gamma_op}, // operations {"image"}); // input columns 
 
 - 
~AdjustGamma() override = default
- Destructor. 
 
- 
explicit AdjustGamma(float gamma, float gain = 1.0)