Operator RGB2XYZ

Operator Library: Prototype

[警告] 警告

免責聲明:此模組屬於原型函式庫的一部分。它僅為初步版本,日後可能會進行大幅修改, 甚至可能被移除。 因此,此模組絕不可用於實際設計。其僅供測試之用。

模組 RGB2XYZ 將色彩空間從預設的 sRGB(白點 D65)轉換為 CIE XYZ。 係數可 進行參數化設定,以實現自訂轉換。 由於 XYZ 值的範圍為 [0, 100],因此輸出位寬為 7 位元;然而,若在輸出連結中選取更多位元, 則值將按 2^(n-7) 進行縮放,以提供更高的精度。

變換矩陣由參數TransMatrixX1至TransMatrixZ3 定義。 這些參數為包含雙精度係數的 3×3 矩陣。 以下公式表示變換演算法。

I/O Properties

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

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width 24 [21, 63]
Arithmetic 無號數 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

Parameters

TransMatrixX1
Type 靜態讀取/寫入參數
Default 0.4124
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixX2
Type 靜態讀取/寫入參數
Default 0.3576
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixX3
Type 靜態讀取/寫入參數
Default 0.1805
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixY1
Type 靜態讀取/寫入參數
Default 0.2126
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixY2
Type 靜態讀取/寫入參數
Default 0.7152
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixY3
Type 靜態讀取/寫入參數
Default 0.0722
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixZ1
Type 靜態讀取/寫入參數
Default 0.0193
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。

TransMatrixZ2
Type 靜態讀取/寫入參數
Default 0.1192
Range [0, 1]

Defines one coefficient of the transformation matrix RGB to XYZ. The value of this coefficient is a double value.

TransMatrixZ3
Type 靜態讀取/寫入參數
Default 0.9505
Range [0, 1]

定義從 RGB 到 XYZ 的轉換矩陣中的其中一個係數。 此係數的值為雙精度數值。