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