XOR_CVIP

xor_cvip() - Performs logical XOR operation between two images.

Contents

SYNTAX

Z = xor_cvip(X,Y)

Input parameters include:

Output parameter includes:

DESCRIPTION

This function performs the XOR operation between two images. It performs the bitwise XOR between each element in array X and corresponding element in array Y and returns the result in the corresponding element of the output array Z.

Z is an array of type 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 XOR 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 = xor_cvip(X,Y);

% Display input image

 figure;imshow(X);title('Input image1');

 figure;imshow(Y);title('Input image2');

% 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