Operator ARCCOT

Operator Library: Arithmetics

该算子用于计算输入的余切(arccot)。

arccot 的输入范围为 [-\infty, \infty]。 该算子包含一个参数 Resolution,用于定义输入值的定点分辨率位数。 输入范围由输入位数决定 =

其中

是输入端的 Bit Width,R 是分辨率位数。

arccot 函数的自变量 x 由以下公式确定

arccot 函数的结果范围在 ]0, \pi[ 之间。 该算子在 VisualApplets 中的输出值范围被映射到

其中

is the bit width at the output link. Thus the output value is

下图显示了 arccot 函数的曲线图。

In the next figure, the VisualApplets operator implementation is shown. Note the input and output bit widths.

我们来看一个输入像素值。例如 -100。 给定分辨率为 4,该像素值的实际值表示为 -100/16。 -100/16 的 arccot 结果为 arccot(-100/16) = 2.98。 在像素值表示中,该结果变为 122,这与曲线图所示一致。

I/O Property

Property 值
Operator Type O
Input Link I,数据输入
Output Link O,数据输出

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width [8, 12] [8,32]
Arithmetic signed signed
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_GRAY as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

参数

ResolutionBits
键入 static 参数
默认 8
范围 [0..OutputBitWidth]

此参数定义了如上所述说明中定义的输入值精度。

使用示例

以下示例展示了 ARCCOT 算子的使用方法: