AND_CVIP

and_cvip() - Performs logical AND operation between two images.

Contents

SYNTAX

outputImage = and_cvip(inputImage1, inputImage2);

DESCRIPTION

And_cvip performs bitwise AND operation between every element of the array inputImage1 and every corresponding element of the array inputImage2 and stores the output in outputImage. If the input arays are numeric arays of different sizes, the smaller size array is zero padded before performing the AND operation. This function does NOT support complex data.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read Image

 ipImage1 =imread('cam.bmp');
 ipImage2 =imread('CheckCircle.bmp');

% Call function

 outputImage=and_cvip( ipImage1, ipImage2);

% Displaying Output

 figure;imshow(ipImage1);title('Input Image 1');
 figure;imshow(ipImage2);title('Input Image 2');
 figure;imshow(outputImage);title('Output Image');

CREDITS

Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website