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.

Example
/* 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

参数

contrast_factor[in] Adjusts image contrast, non negative real number.

~AdjustContrast() = default

Destructor.