Power

1 개요

이미지를 스칼라 또는 다른 이미지와 거듭제곱 연산을 수행하는 알고리즘입니다.

2 알고리즘 상세 설명

이미지를 스칼라 또는 다른 이미지와 각 Channel 마다 거듭제곱 연산을 수행합니다.

Source Value Operand Value Destination Value
Source Image Operation Image Destination Image
Fig. TermOrder : Source-Operand Result

Source Value Operand Value Destination Value
Source Image Operation Image Destination Image
Fig. TermOrder : Operand-Source Result

3 파라미터 설명

멤버함수 파라미터 설 명
SetTermOrder ETermOrder eTermOrder IN 지수 부분을 설정합니다.

4 예제 코드

Scalar 연산

COperationPower operationPower;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CMultiVar<double> mulVarScalar;

operationPower.SetSourceImage(fliSourceImage);
operationPower.SetDestinationImage(fliDestinationImage);
operationPower.SetOperationSource(EOperationSource_Scalar);
operationPower.SetScalarValue(mulVarScalar);
operationPower.SetTermOrder(ETermOrder_OperandSource);

operationPower.Execute();
COperationPower OperationPower = new COperationPower();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
CMultiVar<double> mvScalar = new CMultiVar<double>();

OperationPower.SetSourceImage(ref fliSourceImage);
OperationPower.SetDestinationImage(ref fliDestinationImage);
OperationPower.SetScalarValue(mvScalar);
OperationPower.SetTermOrder(ETermOrder.OperandSource);
OperationPower.Execute();

Image 연산

COperationPower operationPower;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

operationPower.SetSourceImage(fliSourceImage);
operationPower.SetOperandImage(fliOperandImage);
operationPower.SetDestinationImage(fliDestinationImage);
operationPower.SetOperationSource(EOperationSource_Image);
operationPower.SetTermOrder(ETermOrder_OperandSource);

operationPower.Execute();
COperationPower OperationPower = new COperationPower();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

OperationPower.SetSourceImage(ref fliSourceImage);
OperationPower.SetOperandImage(ref fliOperandImage);
OperationPower.SetDestinationImage(ref fliDestinationImage);
OperationPower.SetTermOrder(ETermOrder.OperandSource);

OperationPower.Execute();