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

13 lines
446 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.RgbToHsv
=================================
.. py:class:: mindspore.dataset.vision.RgbToHsv(is_hwc=False)
将输入的RGB格式numpy.ndarray图像转换为HSV格式。
参数:
- **is_hwc** (bool) - 若为True表示输入图像的shape为(H, W, C)或(N, H, W, C);否则为(C, H, W)或(N, C, H, W)。默认值False。
异常:
- **TypeError** - 当 `is_hwc` 的类型不为bool。