Operator IF

Operator Library: Logic

IF operatorは、条件入力がtrueかどうかをチェックし、データ入力の対応する値を転送します。 このoperatorには、パラメータ設定可能な数の入力リンク I0..In-1 が備わっています。 各入力リンクには、条件付き入力 Condition が付属します。 条件がtrueの場合、対応する入力のデータが出力に転送されます。 すべての条件入力がfalseの場合、Else 入力が使用されます。 複数の条件入力がtrueの場合、対応するすべての入力リンクが出力に転送され、 ロジックのOR演算を使用して結合されます。 このoperatorはカーネルで使用できます。各カーネルコンポーネントは個別に選択されます。

I/O Properties

Property 値
Operator Type O
入力リンク I0, データ入力
I1..In-1, データ入力
Else, データ入力
Condition0..n-1, データ入力
Output Link O, data output

Supported Link Format

Link Parameter Input Link I0 Input Link I1..In-1 Input Link Else Input Link Condition0..n-1 Output Link O
Bit Width [1, 64]1 I0と同様 I0と同様 1 I0と同様
Arithmetic {unsigned, signed} I0と同様 I0と同様 署名なし I0と同様
Parallelism any I0と同様 I0と同様 I0と同様 I0と同様
Kernel Columns any I0と同様 I0と同様 I0と同様 I0と同様
Kernel Rows any I0と同様 I0と同様 I0と同様 I0と同様
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D, VALT_SIGNAL} I0と同様 I0と同様 I0と同様 I0と同様
Color Format any I0と同様 I0と同様 VAF_グレー I0と同様
Color Flavor any I0と同様 I0と同様 FL_NONE I0と同様
Max. Img Width any I0と同様 I0と同様 I0と同様 I0と同様
Max. Img Height any I0と同様 I0と同様 I0と同様 I0と同様

1

The range of the input bit width is [1, 64] for unsigned values. For signed inputs, the range is [2, 64]. For unsigned color inputs, the range is [3, 63] and for signed color, the range is [6, 63].

パラメーター

None

使用例

IF operatorの使用法を以下の例に示します: