HIST_CREATE_CVIP

hist_create_cvip() - creates histogram of an image.

Contents

SYNTAX

hist_count= hist_create_cvip( inImage )

Input Parameters include :

Output Parameter includes :

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