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

15 lines
827 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.RandomSharpness
========================================
.. py:class:: mindspore.dataset.vision.RandomSharpness(degrees=(0.1, 1.9))
在固定或随机的范围调整输入图像的锐度。度数为0.0时将返回模糊图像度数为1.0时将返回原始图像度数为2.0时将返回锐化图像。
参数:
- **degrees** (Union[list, tuple], 可选) - 锐度调节系数的随机选取范围,需为非负数,按照(min, max)顺序排列。如果min与max相等将使用固定的调节系数进行处理。默认值(0.1, 1.9)。
异常:
- **TypeError** - 如果 `degree` 的类型不为list或tuple。
- **ValueError** - 如果 `degree` 为负数。
- **ValueError** - 如果 `degree` 采用 (max, min) 格式而不是 (min, max)。