HIST_CREATE_CVIP
hist_create_cvip() - creates histogram of an image.
Contents
SYNTAX
hist_count= hist_create_cvip( inImage )
Input Parameters include :
- inImage - 1-band input image of MxN size or 3-band input image of MxNx3 size.It is of uint8 or uint16 or double class.
Output Parameter includes :
- hist_count - Histogram of an image. GxB array with histogram of each band in each column. B is equal to number of bands.
DESCRIPTION
The function computes the histogram of an image. The input image can be either 1-band or 3-band image. For each band, it finds the frequencies of each unique gray level.
REFERENCE
1.Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image I = imread('cam.bmp'); % Call function , histogram of an image hist = hist_create_cvip(I); % Display input image figure;imshow(I);title('Input Image'); % Display output image figure;bar(hist);title('Output histogram');
CREDITS
Author: Norsang Lama, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website