Bitwise Or

1 개요

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

2 알고리즘 상세 설명

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

Source Image Operand Image Destination Image
Source Image Operation Image Destination Image
Fig. Source, Operand And Destination images of Bitwise Or

3 예제 코드

Scalar 연산

COperationBitwiseOr BitwiseOr;

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

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

BitwiseOr.Execute();
COperationBitwiseOr BitwiseOr = new COperationBitwiseOr();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

BitwiseOr.SetSourceImage(ref fliSourceImage);
BitwiseOr.SetDestinationImage(ref fliDestinationImage);
BitwiseOr.Execute();

Image 연산

COperationBitwiseOr BitwiseOr;

CFLImage fliSourceImage;
CFLImage fliOperandImage;
CFLImage fliDestinationImage;

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

BitwiseOr.Execute();
COperationBitwiseOr BitwiseOr = new COperationBitwiseOr();
CFLImage fliSourceImage = new CFLImage();
CFLImage fliOperandImage = new CFLImage();
CFLImage fliDestinationImage = new CFLImage();

BitwiseOr.SetSourceImage(ref fliSourceImage);
BitwiseOr.SetOperandImage(ref fliOperandImage);
BitwiseOr.SetDestinationImage(ref fliDestinationImage);
BitwiseOr.Execute();