Bitwise Nand

1 개요

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

2 알고리즘 상세 설명

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

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

3 예제 코드

Scalar 연산

COperationBitwiseNand operationBitwiseNand;

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

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

operationBitwiseNand.Execute();
COperationBitwiseNand operationBitwiseNand = new COperationBitwiseNand();

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

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

operationBitwiseNand.Execute();
operationBitwiseNand = COperationBitwiseNand()

fliSourceImage = CFLImage()
fliDestinationImage = CFLImage()
mulVarScalar = CMultiVar[Double]()

operationBitwiseNand.SetSourceImage(fliSourceImage)
operationBitwiseNand.SetDestinationImage(fliDestinationImage)
operationBitwiseNand.SetOperationSource(EOperationSource.Scalar)
operationBitwiseNand.SetScalarValue(mulVarScalar)

operationBitwiseNand.Execute()

Image 연산

COperationBitwiseNand operationBitwiseNand;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

operationBitwiseNand.Execute();
COperationBitwiseNand operationBitwiseNand = new COperationBitwiseNand();

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

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

operationBitwiseNand.Execute();
operationBitwiseNand = COperationBitwiseNand()

fliSourceImage = CFLImage()
fliOperandImage = CFLImage()
fliDestinationImage = CFLImage()

operationBitwiseNand.SetSourceImage(fliSourceImage)
operationBitwiseNand.SetOperandImage(fliOperandImage)
operationBitwiseNand.SetDestinationImage(fliDestinationImage)
operationBitwiseNand.SetOperationSource(EOperationSource.Image)

operationBitwiseNand.Execute()