Square
1 개요
이미지에 제곱 연산을 수행하는 알고리즘입니다.
Operand가 없는 단항 연산입니다.
2 알고리즘 상세 설명
IDst(x,y)=(ISrc(x,y))2
원본 픽셀값끼리 곱한 결과를 출력합니다.
Source Value |
Destination Value |
 |
 |
Fig. Source and Destination Values of Square
3 예제 코드
COperationSquare operationSquare;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
operationSquare.SetSourceImage(fliSourceImage);
operationSquare.SetDestinationImage(fliDestinationImage);
operationSquare.Execute();
COperationSquare operationSquare = new COperationSquare();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
operationSquare.SetSourceImage(ref fliSourceImage);
operationSquare.SetDestinationImage(ref fliDestinationImage);
operationSquare.Execute();
operationSquare = COperationSquare()
fliSourceImage = CFLImage()
fliDestinationImage = CFLImage()
operationSquare.SetSourceImage(fliSourceImage)
operationSquare.SetDestinationImage(fliDestinationImage)
operationSquare.Execute()