Class RandomLighting

Inheritance Relationships

Base Type

Class Documentation

class RandomLighting : public mindspore::dataset::TensorTransform

Add AlexNet-style PCA-based noise to an image.

Public Functions

explicit RandomLighting(float alpha = 0.05)

Constructor.

Parameters

alpha[in] A float representing the intensity of the image (default=0.05).

Example
/* Define operations */
auto decode_op = vision::Decode();
auto random_op = vision::RandomLighting(0.1);

/* dataset is an instance of Dataset object */
dataset = dataset->Map({decode_op, random_op},  // operations
                       {"image"});              // input columns
~RandomLighting() = default

Destructor.