Class AdjustBrightness

Inheritance Relationships

Base Type

Class Documentation

class AdjustBrightness : public mindspore::dataset::TensorTransform

Apply brightness adjustment on input image.

Public Functions

explicit AdjustBrightness(float brightness_factor)

Constructor.

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

参数

brightness_factor[in] Adjusts image brightness, non negative real number.

~AdjustBrightness() = default

Destructor.