mindspore/docs/api/api_python/dataset_vision/mindspore.dataset.vision.Ra...

19 lines
883 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.vision.RandomAdjustSharpness
==============================================
.. py:class:: mindspore.dataset.vision.RandomAdjustSharpness(degree, prob=0.5)
以给定的概率随机调整输入图像的锐度。
参数:
- **degree** (float) - 锐度调整度,必须是非负的。
0.0度表示模糊图像1.0度表示原始图像2.0度表示清晰度增加2倍。
- **prob** (float, 可选) - 图像被锐化的概率,取值范围:[0.0, 1.0]。默认值0.5。
异常:
- **TypeError** - 如果 `degree` 的类型不为float。
- **TypeError** - 如果 `prob` 的类型不为float。
- **ValueError** - 如果 `prob` 不在 [0.0, 1.0] 范围。
- **ValueError** - 如果 `degree` 为负数。
- **RuntimeError** -如果给定的张量形状不是<H, W>或<H, W, C>。