Class AdjustContrast

Inheritance Relationships

Base Type

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() = default

Destructor.