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:
- inImage - Input image of MxN or MxNxB size. Input image is considered as 8-bit image.
- blockSize - Desired block size. (9 | default)
- band - RGB band on which to calculate histogram (1,2,3) (1 | default)
Output Parameter includes:
- outImage - Locally hisotgram equalized image.
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