LOCAL_HISTEQ_CVIP

local_histeq_cvip() - Histogram equalization on block-by-block basis.

Contents

SYNTAX

outImage = local_histeq_cvip( inImage, blockSize, band)

Input Parameters include:

Output Parameter includes:

DESCRIPTION

This function performs the histogram equalization on local areas of an image rather than on the image as a whole.The user may specify the size of blocks to use.By performing local rather than global histeq,detail can often be enhanced in large uniform areas of an image.

REFERENCE

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

EXAMPLE

% Read image

 I1 = imread('cam.bmp');
 I2 = imread('car.bmp');

% Calling function

 O1 = local_histeq_cvip(I1);
 O2 = local_histeq_cvip(I2,32,2);


% Display input image

 figure;imshow(I1);title('Input Image1');
 figure;imshow(I2);title('Input Image2');

% Display output image

 figure; imshow(O1/255);title('Output Image with default parameters');
 figure; imshow(O2/255);title('Output Image with user defined parameters');

CREDITS

Author: Norsang Lama, December 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website