Operator ARCCOT

Operator Library: Arithmetics

此運算子會計算輸入值的反正弦。

arccot 的輸入範圍為 [∞, ∞]。 此運算子包含一個名為「Resolution」的參數,用以定義輸入值的固定小數點解析度位元數。 輸入範圍由輸入位元數決定,即 =

其中

是輸入端的位元寬度,而 R 則是解析度位元。

arc cot 函數的自變數 x 由以下公式決定:

arccot 函數的結果範圍為 ]0, π[。 VisualApplets 中該運算子的輸出值範圍被映射至

其中

為輸出連結上的 Bit Width。因此輸出值為

下圖顯示了 arccot 函數的圖形。

在下圖中,展示了 VisualApplets 運算子的實作。請注意輸入和輸出的 Bit Width。

讓我們來看看一個輸入像素值。例如 -100。 在給定的解析度為四的情況下,該像素值的實際數值表示為 -100/16。 -100/16 的 arccot 結果為 arccot(-100/16) = 2.98。 以像素值表示,此結果即為 122,這與圖中顯示的數值一致。

I/O Properties

Property Value
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 有號 有號
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

Parameters

ResolutionBits
Type 靜態參數
Default 8
Range [0..輸出位元寬度]

此參數如上述說明,用於定義輸入值的精確度。

Examples of Use

以下範例展示了 ARCCOT 運算子的使用方式: