Logical Or

1 개요

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

2 알고리즘 상세 설명

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

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

3 예제 코드

Scalar 연산

COperationLogicalOr LogicalOr;

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

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

LogicalOr.Execute();
COperationLogicalOr LogicalOr = new COperationLogicalOr();

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

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

LogicalOr.Execute();

Image 연산

COperationLogicalOr LogicalOr;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

LogicalOr.Execute();
COperationLogicalOr LogicalOr = new COperationLogicalOr();

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

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

LogicalOr.Execute();