DIVIDE_CVIP

divide_cvip() - Divides two images or divides an image by a constant.

Contents

SYNTAX

outputImage = divide_cvip(inputImage1, inputImage2);

Input Parameters include:

Output parameters include:

DESCRIPTION

This function performs division of two images or division of an image by a constant. Datatype of output image is promoted to double. Each element in the array of inputImage1 is divided by the corresponding element in the array of inputImage2 and returns the result of division in the corresponding element of the outputImage array.

To view the 8-bit image of type double, divide outputImage by 255. To view the 16-bit image of type double, divide outputImage by 65535.

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=divide_cvip( ipImage1, ipImage2);

% Displaying Input Images

 figure;imshow(ipImage1,[]);title('Input Image 1');
 figure;imshow(ipImage2,[]);title('Input Image 2');

% Displaying Output Image

 figure;imshow(outputImage,[]);title('Output Image');

CREDITS

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