Absolute

1 개요

이미지에 절댓값 연산을 수행하는 알고리즘입니다. Operand가 없는 단항 연산입니다.

2 알고리즘 상세 설명

Signed Integer, Floating 포맷 이미지에 대해 음수를 양수로 바꾸는 연산을 진행합니다.
연산하려는 음수 값이 표현범위 내의 최솟값인 경우 표현범위 내의 최댓값으로 대체됩니다.

Unsigned Integer 포맷 이미지의 경우 Src를 그대로 반환합니다.

Source Value Destination Value
Source Image Destination Image
Fig. Source and Destination values of Absolute

3 예제 코드

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

COperationAbsolute absolute;

absolute.SetSourceImage(fliSourceImage);
absolute.SetDestinationImage(fliDestinationImage);
absolute.Execute();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

COperationAbsolute absolute = new COperationAbsolute();

absolute.SetSourceImage(ref fliSourceImage);
absolute.SetDestinationImage(ref fliDestinationImage);
absolute.Execute();