Operator Library: Arithmetics
该算子用于计算输入的反正切值。
arctan 的输入范围为 [-\u221e, \u221e]。 该算子包含一个参数 Resolution,用于定义输入值的定点分辨率位数。 输入范围由输入位数决定 =

其中

是输入端的 Bit Width,R 是分辨率位数。
arctan 函数的参数 x 由下式确定

arctan 函数的结果范围在 ]-\u03c0/2, \u03c0/2[ 之间。 该算子在 VisualApplets 中的输出值范围被映射到

其中

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

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

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

让我们来看一个输入像素值。例如 -50。 在给定的分辨率 4 的情况下,该像素值的实际值表示为 -50/16。 -50/16 的 arctan 结果为 arctan(-50/16) = -1.26。 在像素值表示中,该结果变为 -51.38,这与图中显示的一致。
| 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 |
以下示例展示了 operator ARCTAN 的使用方法:
-
示例 - 计算图像矩的方向和离心率
-
'Histogram of Oriented Gradients (HOG)'
示例 - Histogram of oriented Gradients
-
'Functional Example for Specific Operators of Library Arithmentics: Trigonometric Functions'
示例 - 演示如何使用该算子

上一页

