Bitwise Nor

1 개요

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

2 알고리즘 상세 설명

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

Source Image Operand Image Destination Image
Source Image Operation Image Destination Image
Fig. Source, Operand and Destination images of Bitwise Nor

3 예제 코드

Scalar 연산

COperationBitwiseNor BitwiseNor;

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

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

BitwiseNor.Execute();
COperationBitwiseNor BitwiseNor = new COperationBitwiseNor();

CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();
CMultiVar<double> mulVarScalar = new CMultiVar<double>();

BitwiseNor.SetSourceImage(ref fliSourceImage);
BitwiseNor.SetDestinationImage(ref fliDestinationImage);
BitwiseNor.SetOperationSource(EOperationSource.Scalar);
BitwiseNor.SetScalarValue(mulVarScalar);

BitwiseNor.Execute();

Image 연산

COperationBitwiseNor BitwiseNor;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

BitwiseNor.Execute();
COperationBitwiseNor BitwiseNor = new COperationBitwiseNor();

CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

BitwiseNor.SetSourceImage(ref fliSourceImage);
BitwiseNor.SetOperandImage(ref fliOperandImage);
BitwiseNor.SetDestinationImage(ref fliDestinationImage);
BitwiseNor.SetOperationSource(EOperationSource.Image);

BitwiseNor.Execute();