Logical Nand

1 개요

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

2 알고리즘 상세 설명

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

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

3 예제 코드

Scalar 연산

COperationLogicalNand operationLogicalNand;

CFLImage fliSourceImage;
CFLImage fliDestinationImage;
CMultiVar<double> mulVarScalar(0);

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

operationLogicalNand.Execute();
COperationLogicalNand operationLogicalNand = new COperationLogicalNand();

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

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

operationLogicalNand.Execute();
operationLogicalNand = COperationLogicalNand()

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

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

operationLogicalNand.Execute()

Image 연산

COperationLogicalNand operationLogicalNand;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

operationLogicalNand.Execute();
COperationLogicalNand operationLogicalNand = new COperationLogicalNand();

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

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

operationLogicalNand.Execute();
operationLogicalNand = COperationLogicalNand()

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

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

operationLogicalNand.Execute()