Square

1 개요

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

2 알고리즘 상세 설명

IDst(x,y)=(ISrc(x,y))2\large I_{Dst}(x,y) = \left({I_{Src}(x,y)}\right)^2

원본 픽셀값끼리 곱한 결과를 출력합니다.

Source Value Destination Value
Source Image Destination Image
Fig. Source and Destination Values of Square

3 예제 코드

COperationSquare OperationSquare;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

OperationSquare.SetSourceImage(fliSourceImage);
OperationSquare.SetDestinationImage(fliDestinationImage);

OperationSquare.Execute();
COperationSqaure operationSqaure = new COperationSqaure();

CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

operationSqaure.SetSourceImage(ref fliSourceImage);
operationSqaure.SetDestinationImage(ref fliDestinationImage);

operationSqaure.Execute();