運算子 ARCCOS

Operator Library: Arithmetics

[警告] 已實作的函數並非 arccos(x)

已實作的函式為 -1 * arccos(x)。請參閱說明。

運算子 ARCCOS 會計算輸入值的反正弦。 請注意,此處並未實作 arccos(x),而是將結果取反,也就是說,實作的是 -1 * arccos(x)。

arccos 的輸入範圍為 [-1,1]。 該運算子將輸入區間 [-1, 1] 映射至

其中

是輸入端的位元寬度。 如所見,並未使用輸入值的完整範圍。 若輸入值超出允許的範圍,運算子會將該值裁剪為 -1 或 1。 因此,arccos 函數的參數 x 由以下條件決定:

該運算子計算 arccos 的逆函數,也就是說,其輸出值範圍並非 [0, -π],而是 [-π, 0]。 在VisualApplets 中,該運算子的輸出值範圍被映射為

其中

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

下圖顯示了標準反反正弦函數的圖形。

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

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

無

Examples of Use

以下範例展示了 ARCCOS 運算子的用法: