Operator Library: Prototype
![]() |
Warning |
|---|---|
|
免責聲明:此模組屬於原型庫的一部分。它完全屬於初步階段,可能會經歷重大變更甚至被移除。 因此,切勿將此模組用於實際生產設計中。其僅包含在內供測試之用。 |
RGB2XYZ 模組將色彩空間從預期的 sRGB、白點 D65 轉換為 CIE XYZ。這些係數是 可參數化的,以允許自訂轉換。 由於 XYZ 值的範圍為 [0, 100],因此輸出 Bit Width 為 7-bit;然而,如果在輸出連結上選擇了更多的位元, 這些值將按 2^(n-7) 進行縮放,以提供更高的精度。
轉換矩陣由參數 TransMatrixX1 到 TransMatrixZ3 定義。 這些參數是一個包含雙精確度係數的 3x3 矩陣。 以下公式表示轉換演算法。

| Link Parameter | Input Link I | Output Link O |
|---|---|---|
| Bit Width | 24 | [21, 63] |
| 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_RGB | FL_XYZ |
| Max. Img Width | any | as I |
| Max. Img Height | any | as I |
| TransMatrixX1 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.4124 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixX2 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.3576 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixX3 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.1805 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixY1 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.2126 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixY2 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.7152 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixY3 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.0722 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixZ1 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.0193 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixZ2 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.1192 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|
| TransMatrixZ3 | |
|---|---|
| Type | static read/write parameter |
| Default | 0.9505 |
| Range | [0, 1] |
|
定義 RGB 到 XYZ 轉換矩陣的一個係數。 此係數的值為雙精確度值。 |
|

![[警告]](../common/images/admon/warning.png)
上一頁

