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.

Parameters

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

样例
/* 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
~AdjustBrightness() = default

Destructor.