Operator Library: Color
BAYER3x3Linear オペレータは、Bayer 入力画像から RGB 画像を再構成します。 技術的には、BayerRAW 画像は、赤、緑、青のピクセルが交互に配置されて構成されるグレースケール画像です。 BAYER3x3Linear は、バイ線形再構成によって Bayer カメラから RGB 画像を取得します。 入力リンクは、Bayer 画像の 3x3 カーネルである必要があります。
オペレータの入力はグレースケール画像であり、出力はカラー画像です。 したがって、出力の Bit Width は、3 倍にコンポーネントあたり 2 つの精度ビットを加算した係数分だけ増加します。 たとえば、8 bit のグレースケール入力画像は、3 * (8 + 2) bit のカラー画像に再構成されます。 追加された精度ビットが不要な場合は、RND または ShiftRight オペレータを使用して破棄できます。
カメラの Bayer 配列設定は、オペレーターの設定と一致している必要があります。 オペレーターの設定は、パラメーター BayerInit を使用して変更します。 センサー上の Bayer 配列には、次の 4 つのマッピングが可能です。
-
GreenFollowedByRed

-
RedFollowedByGreen

-
BlueFollowedByGreen

-
GreenFollowedByBlue

The figures show the top left corner of an image transferred to the frame grabber. In general, this is the top left corner of the camera's sensor but could change if you set a region of interest in the camera. The sensor pixel are overlaid with one of the four different Bayer patterns shown in the figures. Select the Bayer pattern corresponding to the image sensor of your camera.
基盤となるアルゴリズムは特許フリーです。
| Link Parameter | Input Link I | Output Link O |
|---|---|---|
| Bit Width | [1, 19] | (InputBitWidth + 2) * 3 |
| Arithmetic | unsigned | as I |
| Parallelism | any | as I |
| Kernel Columns | 3 | 1 |
| Kernel Rows | 3 | 1 |
| Img Protocol | {VALT_IMAGE2D, VALT_LINE1D} | as I |
| Color Format | VAF_GRAY | VAF_COLOR |
| Color Flavor | FL_NONE | FL_RGB |
| Max. Img Width | any | as I |
| Max. Img Height | any | as I |
| BayerInit | |
|---|---|
| タイプ | dynamic/static read/write parameter |
| Default | GreenFollowedByRed |
| 範囲 | {GreenFollowedByRed, GreenFollowedByBlue, RedFollowedByGreen, BlueFollowedByGreen} |
|
カメラの Bayer アレイ構成がオペレータの設定と一致していること。 上記の記述を参照してください。 |
|
BAYER3x3Linear オペレータの使用法を次の例に示します。
-
Examples - この例は、3x3 フィルターを使用した Bayer RAW パターンのデモザイキングを示しています。
-
'Bayer 3x3 Demosacing with White Balancing'
例 - この例では、3x3 フィルターを使用した Bayer RAW パターンのデモザイク処理を示しています。 さらに、色補正のためのホワイトバランス調整が追加されています。
-
例 - この例は、画像フレームの開始および終了に対する信号およびイベントの生成を示しています。

前へ

