Class RandomLighting
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
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.
- 参数
alpha – [in] A float representing the intensity of the image (default=0.05).
样例/* 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.
-
explicit RandomLighting(float alpha = 0.05)