OR_CVIP
or_cvip() - Performs logical OR operation between two images.
Contents
SYNTAX
Z = or_cvip(X,Y)
Input parameter includes:
- X - First input image.
- Y - Second input image.
Output parameter includes:
- Z - Output image.
DESCRIPTION
This function performs bitwise OR on each element in array X and returns the result of bitwise OR operation in the corresponding element of the output array Z.
Z is an array of type uint8 or uint16 depending upon the input X and Y.
If X and Y are numeric arrays of the different size, smaller size arrays are zero padded before performing bitwise OR operation.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image X = imread('Cam.bmp'); Y = imread('Car.bmp'); % Call function S = or_cvip(X,Y); % Display input image figure;imshow(X);title('Input image1'); figure;imshow(Y);title('Input image1'); % Display output images figure;imshow(S,[]);title('Output image');
CREDITS
Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website