Blend

1 개요

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

2 알고리즘 상세 설명

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

Source Image Operand Image Destination Image
Source Image Operation Image Destination Image
Fig. Source, Operand and Destination images of Blend

3 파라미터 설명

멤버함수 파라미터 설 명
SetSourceRatio double f64Ratio IN Source Image 비율 값
SetOperandRatio double f64Ratio IN Operand Image 비율 값

4 예제 코드

Scalar 연산

COperationBlend operationBlend;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;

operationBlend.SetSourceImage(fliSourceImage);
operationBlend.SetDestinationImage(fliDestinationImage);
operationBlend.SetOperationSource(EOperationSource_Scalar);
OperationBlend.SetSourceRatio(0.3);
OperationBlend.SetOperandRatio(0.7);

operationBlend.Execute();
COperationBlend OperationBlend = new COperationBlend();
CFLImage fliSourceImage = new CFLImage();	
CFLImage fliDestinationImage = new CFLImage();	

OperationBlend.SetSourceImage(ref fliSourceImage);
OperationBlend.SetDestinationImage(ref fliDestinationImage);
OperationBlend.SetSourceRatio(0.3);
OperationBlend.SetOperandRatio(0.7);
OperationBlend.SetOperationSource(EOperationSource.Scalar);
OperationBlend.Execute();

Image 연산

COperationBlend operationBlend;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

operationBlend.SetSourceImage(fliSourceImage);
operationBlend.SetOperandImage(fliOperandImage);
operationBlend.SetDestinationImage(fliDestinationImage);
operationBlend.SetOperationSource(EOperationSource_Image);
OperationBlend.SetSourceRatio(0.3);
OperationBlend.SetOperandRatio(0.7);

operationBlend.Execute();
COperationBlend OperationBlend = new COperationBlend();
CFLImage fliSourceImage = new CFLImage();	
CFLImage fliDestinationImage = new CFLImage();	
CFLImage fliOperandImage = new CFLImage();	

OperationBlend.SetSourceImage(ref fliSourceImage);
OperationBlend.SetDestinationImage(ref fliDestinationImage);
OperationBlend.SetOperandImage(ref fliOperandImage);
OperationBlend.SetSourceRatio(0.3);
OperationBlend.SetOperandRatio(0.7);
OperationBlend.SetOperationSource(EOperationSource.Image);
OperationBlend.Execute();