Add
1 개요
이미지를 스칼라 또는 다른 이미지와 덧셈 연산을 수행하는 알고리즘입니다.
2 알고리즘 상세 설명
이미지를 스칼라 또는 다른 이미지와 각 Channel 마다 덧셈 연산을 수행합니다.
Source Value | Operand Value | Destination Value |
---|---|---|
![]() |
![]() |
![]() |
Fig. Source, Operand and Destination values of Add
3 예제 코드
Scalar 연산
COperationAdd operationAdd;
CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CMultiVar<double> mulVarScalar;
operationAdd.SetSourceImage(fliSourceImage);
operationAdd.SetDestinationImage(fliDestinationImage);
operationAdd.SetOperationSource(EOperationSource_Scalar);
operationAdd.SetScalarValue(mulVarScalar);
operationAdd.Execute();
Image 연산
COperationAdd operationAdd;
CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;
operationAdd.SetSourceImage(fliSourceImage);
operationAdd.SetOperandImage(fliOperandImage);
operationAdd.SetDestinationImage(fliDestinationImage);
operationAdd.SetOperationSource(EOperationSource_Image);
operationAdd.Execute();