Operator Library: Arithmetics
このオペレーターは、入力の arctan(アークタンジェント)を計算します。
arctan の入力範囲は [-∞, ∞] です。 このオペレーターには、入力値の固定小数点解像度ビットを定義するパラメータ Resolution が含まれています。 入力範囲は、入力ビット数によって以下のように与えられます =

ここで、

は入力における Bit Width であり、R は解像度ビットです。
arctan 関数の引数 x は、以下によって決定されます

arctan 関数の結果の範囲は ]- π/2, π/2[ です。 VisualApplets におけるオペレーターの出力値の範囲は、以下にマッピングされます

ここで、

は出力リンクにおける Bit Width です。したがって、出力値は以下のようになります

次の画像は、arctan 関数のプロットを示しています。

次の図には、VisualApplets オペレーターの実装が示されています。入力および出力の Bit Width に注意してください。

入力ピクセル値の例を見てみましょう。たとえば -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 |
| ResolutionBits | |
|---|---|
| タイプ | static パラメータ |
| Default | 8 |
| 範囲 | [0, OutputBitWidth] |
|
このパラメータは、上記の説で定義されている入力値の精度を定義します。 |
|
オペレーター ARCTAN の使用例を以下に示します:
-
Example - Calculates image moments orientation and eccentricity
-
'Histogram of Oriented Gradients (HOG)'
Examples- Histogram of oriented Gradients
-
'Functional Example for Specific Operators of Library Arithmentics: Trigonometric Functions'
使用例 - オペレーターの使用方法のデモ

前へ

