mindspore/docs/api/api_python/ops/mindspore.ops.HSVToRGB.rst

21 lines
987 B
ReStructuredText
Raw Permalink 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.ops.HSVToRGB
======================
.. py:class:: mindspore.ops.HSVToRGB
将一个或多个图像从HSV颜色空间转换为RGB颜色空间其中每个像素的HSV值转换为其对应的RGB值。此函数仅适用于输入像素值在[0,1]范围内的情况。图像的格式应为NHWC。
输入:
- **x** (Tensor) - 输入的图像必须是shape为 :math:`[batch, image\_height, image\_width, channel]` 的四维Tensor。
channel 值必须为3。
支持的类型float16、float32、float64。
输出:
一个4-D Tensorshape为 :math:`[batch, image\_height, image\_width, channel]` ,且数据类型同输入一致。
异常:
- **TypeError** - 如果 `x` 不是一个Tensor。
- **TypeError** - 如果 `x` 的数据类型不是float16、float32或float64。
- **ValueError** - 如果 `x` 的维度不等于4。
- **ValueError** - 如果 `x` 的最后一维不等于3。