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