Operator HSI2RGB

Operator Library: Color

Operator HSI2RGB 會將色彩空間從 HSI (Hue Saturation Lightness) 轉換為 RGB (Red, Green, Blue)。

[警告] Warning

此 Operator 實作的是 HSL (Hue Saturation Lightness) 到 RGB 的色彩空間轉換,而非 HSI 到 RGB。

Operator Features and Restrictions

  • 完整支援 Empty Images (即不含像素的影像)。

  • 完整支援包含空行的非空影像。

  • 完整支援具有不同行長度的影像。

I/O Properties

Property Value
Operator Type O
Input Link I,影像資料輸入
Output Link O,影像資料輸入

支援的 Link 格式

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

Bit Width 必須能被 3 整除,不能有餘數。

2

VALT_IMAGE2D 和 VALT_LINE1D:Maximal Image Width 必須能被 Parallelism 整除而無餘數 (對於 VALT_PIXEL0D 和 VALT_SIGNAL 則不重要)。

參數

HueAmplitude
Type static parameter
Default 255
Range [1; (1 << (BitWidth(I) / 3)) - 1]

此參數用於定義色相的最大值。 在 360 度時採用 9bit,對應的結果單位為度。

[警告] Range Violation 會導致 DRC error

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

使用範例

Operator HSI2RGB 的使用方式如以下範例所示: