bitwiseorcv
Performs bitwise or/disunion on given inputs, source1 and source2.
Syntax
R = bitwiseorcv(source1, source2)
R = bitwiseorcv(source1, source2, mask)
Inputs
- source1
- Handle of an image.
- source2
- Handle of an image or an integer.
- mask
- Optional handle of an 8-bit single channel image or a 2D matrix of natural numbers representing the elements in R that need to be changed.
Outputs
- R
- Handle of the output image.
Examples
Do a bitwise or of two images:
source1 = imreadcv('bird2.jpg');
source2 = imreadcv('logo.jpg');
size1 = imsizecv(source1);
source2 = resizecv(source2, [size1(1) size1(2)]);
R = bitwiseorcv(source1, source2);
Do a bitwise or of two images with a mask:
source1 = imreadcv('image1.jpg');
source2 = imreadcv('image2.jpg');
masksize = imsizecv(source1);
mask = ones(masksize(1), masksize(2));
R = bitwiseorcv(source1, source2, mask);