Square Root
1 개요
이미지에 제곱근 연산을 수행하는 알고리즘입니다.
Operand가 없는 단항 연산입니다.
2 알고리즘 상세 설명
IDst(x,y)=ISrc(x,y)
원본 픽셀값이 음수인 경우, Signed 정수형 포맷에서 해당 포맷의 표현 가능한 최댓값으로 처리되며, 실수형 포맷 이미지에서는 nan이 출력됩니다.
Source Value |
Destination Value |
 |
 |
Fig. Source and Destination Values of Square Root
3 예제 코드
COperationSquareRoot operationSquareRoot;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
operationSquareRoot.SetSourceImage(fliSourceImage);
operationSquareRoot.SetDestinationImage(fliDestinationImage);
operationSquareRoot.Execute();
COperationSquareRoot operationSquareRoot = new COperationSquareRoot();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
operationSquareRoot.SetSourceImage(ref fliSourceImage);
operationSquareRoot.SetDestinationImage(ref fliDestinationImage);
operationSquareRoot.Execute();
operationSquareRoot = COperationSquareRoot()
fliSourceImage = CFLImage()
fliDestinationImage = CFLImage()
operationSquareRoot.SetSourceImage(fliSourceImage)
operationSquareRoot.SetDestinationImage(fliDestinationImage)
operationSquareRoot.Execute()