Class RandomSharpness
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class RandomSharpness : public mindspore::dataset::TensorTransform
Adjust the sharpness of the input image by a fixed or random degree.
Public Functions
-
explicit RandomSharpness(const std::vector<float> °rees = {0.1, 1.9})
Constructor.
- Parameters
degrees – [in] A float vector of size 2, representing the range of random sharpness adjustment degrees. It should be in (min, max) format. If min=max, then it is a single fixed magnitude operation (default = (0.1, 1.9)).
Example/* Define operations */ auto decode_op = vision::Decode(); auto random_op = vision::RandomSharpness({0.1, 1.5}); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op, random_op}, // operations {"image"}); // input columns
-
~RandomSharpness() = default
Destructor.
-
explicit RandomSharpness(const std::vector<float> °rees = {0.1, 1.9})