Class AdjustSharpness
Defined in File vision.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class AdjustSharpness : public mindspore::dataset::TensorTransform
Apply adjust sharpness on input image. Input image is expected to be in [H, W, C] or [H, W] format.
Public Functions
-
explicit AdjustSharpness(float sharpness_factor)
Constructor.
- Example
/* Define operations */ auto decode_op = vision::Decode(); auto adjust_sharpness_op = vision::AdjustSharpness(2.0); /* dataset is an instance of Dataset object */ dataset = dataset->Map({decode_op, adjust_sharpness_op}, // operations {"image"}); // input columns
- 参数
sharpness_factor – [in] How much to adjust the sharpness. Can be any Non negative real number. 0 gives a blurred image, 1 gives the original image while 2 increases the Sharpness by a factor of 2.
-
~AdjustSharpness() = default
Destructor.
-
explicit AdjustSharpness(float sharpness_factor)