Logical And

1 개요

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

2 알고리즘 상세 설명

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

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

3 예제 코드

Scalar 연산

COperationLogicalAnd LogicalAnd;

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

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

LogicalAnd.Execute();
COperationLogicalAnd LogicalAnd = new COperationLogicalAnd();

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

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

LogicalAnd.Execute();

Image 연산

COperationLogicalAnd LogicalAnd;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

LogicalAnd.Execute();
COperationLogicalAnd LogicalAnd = new COperationLogicalAnd();

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

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

LogicalAnd.Execute();