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 | |
|---|---|
| Type | static parameter |
| Default | 8 |
| Range | [0, OutputBitWidth] |
|
이 파라미터는 위의 설명에 정의된 대로 입력 값의 정확도를 정의합니다. |
|
ARCTAN 연산자의 사용법은 다음 예제에 나와 있습니다.
-
Example - Calculates image moments orientation and eccentricity
-
'Histogram of Oriented Gradients (HOG)'
예시 - Histogram of oriented Gradients
-
'Functional Example for Specific Operators of Library Arithmentics: Trigonometric Functions'
Examples - Demonstration of how to use the operator

이전

