Operator Library: Arithmetics
The operator calculates the arccot of the input.
The input range of arccot is [∞, ∞]. This operator includes a parameter Resolution to define the fixed point resolution bits of the input values. The input range is given by the number of input bits =
![](../../images/math/math-snippet-350.png)
where
![](../../images/math/math-snippet-351.png)
is the bit width at the input and R the resolution bits.
The argument x of the arccot function is determined by
![](../../images/math/math-snippet-352.png)
The results of the arccot function are in the range ]0, π[. The output value range of the operator in VisualApplets is mapped to
![](../../images/math/math-snippet-353.png)
where
![](../../images/math/math-snippet-354.png)
is the bit width at the output link. Thus the output value is
![](../../images/math/math-snippet-355.png)
The following image shows the plot of the arccot function.
![](../../images/library/Arithmetics/arccot.png)
In the next figure, the VisualApplets operator implementation is shown. Note the input and output bit widths.
![](../../images/library/Arithmetics/arccot_implementation.png)
Le't have a look at an input pixel value. For example -100. With the given resolution of four, the real value representation of the pixel value is -100/16. The arccot result of -100/16 is arccot(-100/16) = 2.98. In pixel value representation this result becomes 122 which is the same as shown in the plot.
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 | |
---|---|
Type | static parameter |
Default | 8 |
Range | [0..OutputBitWidth] |
This parameter defines the accuracy of the input values as defined in the description above. |
The use of operator ARCCOT is shown in the following examples:
-
'Functional Example for Specific Operators of Library Arithmentics: Trigonometric Functions'
Examples - Demonstration of how to use the operator