オペレーター ABS

Operator Library: Arithmetics

このオペレータは、入力の絶対値を計算します(例:)。

取りうる最小の負の値の絶対値には、その正の値と同等のビット数が必要となることに注意してください。 したがって、出力の Bit Width は入力の Bit Width と等しくなります。 たとえば、8 bit表現では、最小値は -128 で最大値は 127 です。 絶対値演算の後、-128 は +128 になり、依然として 8 bitが必要です。

I/O Properties

Property 値
Operator Type O
Input Link I, data input
Output Link O, data output

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [2, 64] as I
Arithmetic signed as I
Parallelism any as I
Kernel Columns any as I
Kernel Rows any as I
Img Protocol {VALT_IMAGE2D, VALT_LINE1D, VALT_PIXEL0D} as I
Color Format VAF_GRAY, VAF_COLOR as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

パラメーター

None

使用例

ABS オペレータの使用方法は、以下の例に示されています。