Operator HSI2RGB

Operator Library: Color

算子 HSI2RGB 将色彩空间从 HSI(色相饱和度亮度)转换为 RGB(红绿蓝)。

[警告] 警告

该算子实现的是 HSL(色相饱和度亮度)到 RGB 的色彩空间转换,而非 HSI 到 RGB。

Operator 特性与限制

  • 完全支持空图像(即没有像素的图像)。

  • 完全支持包含空行的非空图像。

  • 完全支持行长度可变的图像。

I/O Property

Property 值
Operator Type O
Input Link I, image data input
Output Link O, image data input

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [24, 48]1 as I
Arithmetic unsigned as I
Parallelism any as I
Kernel Columns 1 as I
Kernel Rows 1 as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_COLOR as I
Color Flavor FL_HSI FL_RGB
Max. Img Width any2 as I
Max. Img Height any as I

1

The Bit Width must be divisible by three without remainder.

2

VALT_IMAGE2D 和 VALT_LINE1D:Maximal Image Width 必须能被 Parallelism 整除(对于 VALT_PIXEL0D 和 VALT_SIGNAL 不重要)。

参数

HueAmplitude
键入 static 参数
默认 255
范围 [1; (1 << (BitWidth(I) / 3)) - 1]

此参数定义色相的最大值。 360 度对应的 9bit 表示结果以度为单位。

[警告] 超出范围将导致 DRC 错误

If the value of HueAmplitude is not in range, the parameter state is set to error and the parameter is reported by the DRC.

使用示例

以下示例展示了算子 HSI2RGB 的用法: