Mean

1 개요

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

2 알고리즘 상세 설명

이미지를 스칼라 또는 다른 이미지와 각 Channel 마다 평균 연산을 수행합니다.

Source Image Operand Image Destination Image
Source Image Operation Image Destination Image
Fig. Source, Operand and Destination Images of Mean

3 예제 코드

Scalar 연산

COperationMean  OperationMean;

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

OperationMean.SetSourceImage(fliSourceImage);
OperationMean.SetDestinationImage(fliDestinationImage);
OperationMean.SetOperationSource(EOperationSource_Scalar);
OperationMean.SetScalarValue(mulVarScalar);

OperationMean.Execute();
COperationMean OperationMean = new COperationMean();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

OperationMean.SetSourceImage(ref fliSourceImage);
OperationMean.SetDestinationImage(ref fliDestinationImage);
OperationMean.Execute();

Image 연산

COperationMean OperationMean;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

OperationMean.SetSourceImage(fliSourceImage);
OperationMean.SetOperandImage(fliOperandImage);
OperationMean.SetDestinationImage(fliDestinationImage);
OperationMean.SetOperationSource(EOperationSource_Image);

OperationMean.Execute();
COperationMean OperationMean = new COperationMean();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

OperationMean.SetSourceImage(ref fliSourceImage);
OperationMean.SetOperandImage(ref fliOperandImage);
OperationMean.SetDestinationImage(ref fliDestinationImage);
OperationMean.Execute();