Histogram Equalization-A Simple but Efficient Technique for Image Enhancement

Similar documents
An Integrated Approach of Logarithmic Transformation and Histogram Equalization for Image Enhancement

ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

Contrast Enhancement Techniques using Histogram Equalization: A Survey

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

Image Enhancement using Histogram Equalization and Spatial Filtering

Keywords-Image Enhancement, Image Negation, Histogram Equalization, DWT, BPHE.

An Efficient Noise Removing Technique Using Mdbut Filter in Images

Locating the Query Block in a Source Document Image

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Histogram Equalization: A Strong Technique for Image Enhancement

Image Smoothening and Sharpening using Frequency Domain Filtering Technique

APJIMTC, Jalandhar, India. Keywords---Median filter, mean filter, adaptive filter, salt & pepper noise, Gaussian noise.

Image Enhancement Techniques Based on Histogram Equalization

Comparison of Histogram Equalization Techniques for Image Enhancement of Grayscale images in Natural and Unnatural light

An Advanced Contrast Enhancement Using Partially Overlapped Sub-Block Histogram Equalization

IMPROVEMENT USING WEIGHTED METHOD FOR HISTOGRAM EQUALIZATION IN PRESERVING THE COLOR QUALITIES OF RGB IMAGE

A Survey on Image Contrast Enhancement

DIGITAL SIGNAL PROCESSOR WITH EFFICIENT RGB INTERPOLATION AND HISTOGRAM ACCUMULATION

Contrast Enhancement with Reshaping Local Histogram using Weighting Method

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Preprocessing on Digital Image using Histogram Equalization: An Experiment Study on MRI Brain Image

Pixel Classification Algorithms for Noise Removal and Signal Preservation in Low-Pass Filtering for Contrast Enhancement

Removal of High Density Salt and Pepper Noise through Modified Decision based Un Symmetric Trimmed Median Filter

A Global-Local Contrast based Image Enhancement Technique based on Local Standard Deviation

Survey on Image Enhancement Techniques

EFFICIENT CONTRAST ENHANCEMENT USING GAMMA CORRECTION WITH MULTILEVEL THRESHOLDING AND PROBABILITY BASED ENTROPY

Image Enhancement using Histogram Approach

International Journal of Advanced Research in Computer Science and Software Engineering

Fuzzy Statistics Based Multi-HE for Image Enhancement with Brightness Preserving Behaviour

Fig 1: Error Diffusion halftoning method

A Novel Method for Enhancing Satellite & Land Survey Images Using Color Filter Array Interpolation Technique (CFA)

Adaptive Gamma Correction With Weighted Distribution And Recursively Separated And Weighted Histogram Equalization: A Comparative Study

Image Enhancement Techniques: A Comprehensive Review

Image Denoising using Filters with Varying Window Sizes: A Study

IMAGE PROCESSING PAPER PRESENTATION ON IMAGE PROCESSING

FUZZY BASED MEDIAN FILTER FOR GRAY-SCALE IMAGES

IMAGE ENHANCEMENT - POINT PROCESSING

ECC419 IMAGE PROCESSING

An Efficient Nonlinear Filter for Removal of Impulse Noise in Color Video Sequences

Contrast Enhancement Using Bi-Histogram Equalization With Brightness Preservation

Digital Image Processing. Lecture # 3 Image Enhancement

Digital Image Processing

Method Of Defogging Image Based On the Sky Area Separation Yanhai Wu1,a, Kang1 Chen, Jing1 Zhang, Lihua Pang1

Image Restoration and Super- Resolution

Contrast Enhancement using Improved Adaptive Gamma Correction With Weighting Distribution Technique

Image Processing. 2. Point Processes. Computer Engineering, Sejong University Dongil Han. Spatial domain processing

Keywords: Image segmentation, pixels, threshold, histograms, MATLAB

Area Extraction of beads in Membrane filter using Image Segmentation Techniques

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

International Conference on Computer, Communication, Control and Information Technology (C 3 IT 2009) Paper Code: DSIP-024

Fuzzy rule based Contrast Enhancement for Sports Applications

Image Enhancement in Spatial Domain: A Comprehensive Study

Survey on Image Contrast Enhancement Techniques

Bi-Level Weighted Histogram Equalization with Adaptive Gamma Correction

USE OF HISTOGRAM EQUALIZATION IN IMAGE PROCESSING FOR IMAGE ENHANCEMENT

GE 113 REMOTE SENSING. Topic 7. Image Enhancement

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Guided Image Filtering for Image Enhancement

Local Contrast Enhancement using Local Standard Deviation

Lossless Huffman coding image compression implementation in spatial domain by using advanced enhancement techniques

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

Contrast enhancement with the noise removal. by a discriminative filtering process

FPGA IMPLEMENTATION OF RSEPD TECHNIQUE BASED IMPULSE NOISE REMOVAL

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Performance Comparison of Mean, Median and Wiener Filter in MRI Image De-noising

Image Enhancement by using Biogeography Based Optimization

VLSI Implementation of Impulse Noise Suppression in Images

An Efficient Method for Contrast Enhancement in Still Images using Histogram Modification Framework

Study of Noise Detection and Noise Removal Techniques in Medical Images

Image Processing for feature extraction

International Journal of Computer Engineering and Applications, TYPES OF NOISE IN DIGITAL IMAGE PROCESSING

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Comparison of Two Pixel based Segmentation Algorithms of Color Images by Histogram

Image Contrast Enhancement Techniques: A Comparative Study of Performance

Hardware implementation of Modified Decision Based Unsymmetric Trimmed Median Filter (MDBUTMF)

Image Denoising Using Different Filters (A Comparison of Filters)

Design of Various Image Enhancement Techniques - A Critical Review

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

A new quad-tree segmented image compression scheme using histogram analysis and pattern matching

II. BASIC ENHANCEMENT OPERATION

Image Processing by Bilateral Filtering Method

Noise Reduction Technique in Synthetic Aperture Radar Datasets using Adaptive and Laplacian Filters

A simple Technique for contrast stretching by the Addition, subtraction& HE of gray levels in digital image

ISSN (PRINT): ,(ONLINE): ,VOLUME-4,ISSUE-3,

An Enhancement of Images Using Recursive Adaptive Gamma Correction

ME 6406 MACHINE VISION. Georgia Institute of Technology

SUPER RESOLUTION INTRODUCTION

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

AN ITERATIVE UNSYMMETRICAL TRIMMED MIDPOINT-MEDIAN FILTER FOR REMOVAL OF HIGH DENSITY SALT AND PEPPER NOISE

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Keywords Image Processing, Contrast Enhancement, Histogram Equalization, BBHE, Histogram. Fig. 1: Basic Image Processing Technique

A Study On Preprocessing A Mammogram Image Using Adaptive Median Filter

Image Contrast Enhancement Using Joint Segmentation

Comparitive analysis for Pre-Processing of Images and videos using Histogram Equalization methodology and Gamma correction method

Image Extraction using Image Mining Technique

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Illumination based Sub Image Histogram Equalization: A Novel Method of Image Contrast Enhancement

TDI2131 Digital Image Processing

Processing and Enhancement of Palm Vein Image in Vein Pattern Recognition System

Transcription:

I.J. Image, Graphics and Signal Processing, 2013, 10, 55-62 Published Online August 2013 in MECS (http://www.mecs-press.org/) DOI: 10.5815/ijigsp.2013.10.07 Histogram Equalization-A Simple but Efficient Technique for Image Enhancement Saurabh Chaudhury Department of Electrical Engineering, National Institute of Technology, Silchar, Assam, India saurabh@nits.ac.in Ananta Kumar Roy Department of Electrical Engineering, National Institute of Technology, Silchar, Assam, India kr.innovate@gmail.com Abstract This paper demonstrates the significance of histogram processing of an image particularly the histogram equalization (HE). It is one of the widely used image enhancement technique. It has become a popular technique for contrast enhancement because the method is simple and effective. The basic idea of HE is to re-map the gray levels of an image. Here we propose two different techniques of Histogram Equalization namely, the global HE and local HE. The Histogram Equalization has been performed in the MATLAB environment. The merits and demerits of both techniques of Histogram Equalization have also been discussed. It is seen after exhaustive experimentation on a number of sample images that the proposed image enhancement techniques can be considered as an improvement over the inbuilt MATLAB function histeq. Index Terms Image processing, Histogram Equalization, Contrast Enhancement, global equalization, local equalization I. INTRODUCTION Digital image processing is an important area of research today and it encompasses two major application areas of interest namely, improvement of pictorial information in an image for human interpretation, and processing of scene data for autonomous machine perception. Image enhancement is among the simplest and most appealing areas of digital image processing. Basically, the idea behind enhancement techniques [1] is to bring out detail that is obscured, or simply to highlight certain features of interest in an image. Many t imes it is needed to process the image in order to remove noises which are inadvertently introduced in the image. It may be caused by the sensor and circuitry of a scanner or digital camera. Image noise can also originate from film grain and from unavoidable shot noise of an ideal photon detector. Image noise is an undesirable by-product of image capturing that adds spurious and extraneous information. High levels of noise are almost always undesirable, but there are cases when a certain amount of noise is useful, for example, to prevent discretized artifacts (color banding or posterization). Even sometimes noise also increases acutance (apparent sharpness). Noise purposely added in an image is called dither, wherein it improves the image perceptually, though it degrades the signal-to-noise ratio. It is important to keep in mind that enhancement is a very subjective area of image processing. Image enhancement can be carried out in two domains-spatial domain and frequency domain. Histogram and its equalization is a spatial domain or pixel domain processing wherein some manipulation is carried out in the image pixels in order to have enhanced image. In general, a histogram is the estimation of the probability distribution of a particular type of data. An image histogram is a type of histogram which offers a graphical representation of the tonal distribution of the gray values in a digital image. For an 8-bit grayscale image there are 256 different possible intensities, and so the histogram will graphically display 256 numbers showing the distribution of pixels amongst those grayscale values. By viewing the image histogram, we can analyze the frequency of appearance of the different gray levels (intensities) contained in the image. The histogram that shows only a fraction of the total range of gray levels in the image then the image has low contrast. Each color level (gray value) is represented as a point on x-axis and on y-a xis is the number instance of a color level repeats in the image. Histogram may be viewed with Matlab imhist command. Sometimes all the important information in an image lies only in a small region of colors, hence it is usually difficult to extract information fro m that image. There comes the need for histogram equalization. A good histogram is that which covers all the possible values in the gray scale used. This type of histogram suggests that the image has good contrast and that details in the image may be observed more easily. A. Histogram Equalization (HE) Various enhancement schemes are used for enhancing an image which includes gray scale manipulation with different transformation operators (such as arithmetic and logic operators), filtering and Histogram Equalization (HE) [2,3,4,5,6]. Histogram equalization is one of the well known image enhancement techniques. It became a

56 Histogram Equalization-A Simple but Efficient Technique for Image Enhancement popular technique for contrast enhancement because this method is simple and effective. In the latter case, preserving the input brightness of the image is required to avoid the generation of non-existing artifacts in the output image. The basic idea of HE method is to re-map the gray levels of an image. HE tends to introduce some annoying artifacts and unnatural enhancement. Fig. 1 shows the image and its histogram and how the transformation by HE results in enhanced image. (a) (b) Figure 1. (a) Original image and its histogram (b) Enhanced image and equalized histogram B. Adaptive Histogram Equalization This is an extension to traditional histogram equalization technique. It enhances the contrast of images by transforming the values in the intensity image I. Unlike histeq, it operates on small data regions (tiles), rather than the entire image. Each tile's contrast is enhanced, so that the histogram of the output region approximately matches the specified histogram. The neighboring tiles are then combined using bilinear interpolation in order to eliminate artificially induced boundaries. The contrast, especially in homogeneous areas, can be limited in order to avoid amplifying the noise which might be present in the image. The degree of discernible details or resolution of an image depends on two main parameters. First, it is the number of samples in each dimension and second, is the number of intensity levels. Larger the number of these parameters closer the digital image approximates the real world image. However, the process of developing measures of image fidelity is subjective and application dependent. C. Histogram Equalization Techniques There are a number of different types of histogram equalization algorithms, such as cumulative histogram equalization, normalized cumulative histogram equalization, and localized equalization. A detailed list of histogram equalization techniques and their advantages and disadvantages are explained in [7]. Histogram expansion is a simple technique that enhances the contrast levels of an image. But it has the disadvantage that if there are gray values that are physically far apart from each other in the image then this method fails. LAHE offers an excellent image enhancement technique in terms of contrast level but has the disadvantage that it is computationally very slow and requires a high number of operations per pixel. Par sectioning on the other hand is easy to implement and better suits in hardware level, whereas, odd sectioning offers a good image contrast but has problems with histograms which cover almost the full gray scale. Image histogram and histogram equalization find applications not only in image enhancement but also in other higher level processing such as in thresholding, adaptive thresholding [7], image segmentation [8] and super-resolution, image quality and image restoration. A histogram based thresholding approach might be to create a histogram of the image pixel intensities and use the valley point as the threshold. The histogram approach assumes that there is some average values for both the background and object pixels, but that the actual pixel values have some variation around these average values. The paper is organized as follows. Section II illustrates the proposed algorithms for the global histogram equalization and local histogram equalization respectively and techniques behind such processing. In section III we present our observation on the results of exhaustive experimentation of the proposed techniques on some sample images and finally section IV concludes the paper. II. PROPOSED ALGORITHMS The Image Enhancement specifically the contrast enhancement [6] using Histogram Equalization techniques that have been proposed here are- Global Histogram Equalization and Local Histogram Equalization. The algorithms and flowcharts of which are discussed in the following subsections. These are implemented using MATLAB scripting. A. Global Histogram Equalization The following flowchart in Fig. 2 depicts the different steps that were followed during the Global Histogram Equalization.

Histogram Equalization-A Simple but Efficient Technique for Image Enhancement 57 The pixels in the original image are replaced by the new CDF values which depend on the value of the CDF of the middle element. Img(i,j)=round(cdf(ele)/(M*N)*255) The histogram of the equalized image is obtained. Histograms of new and original images are compared. Print the graphic results. Figure 2. Flow-chart showing Global Histogram Equalization Technique Consider a discrete grayscale image{x} and let n i be the number of occurrences of gray level i. The probability of an occurrence of a pixel of level in the image is p x (i) = p(x=i) = n i /n, 0 i<l (1) L being the total number of gray levels in the image, n being the total number of pixels in the image, and p x (i)being in fact the image's histogram for pixel value i, normalized to [0,1]. The cumulative distribution function is defined corresponding to p x as cdf x (i)= (2) Where p is a function of x, which is also the image's accumulated normalized histogram. We would like to create a transformation of the form y = T(x) to produce a new image {y}, such that its CDF will be linearized across the value range, i.e. cdf x (i) = ik for some constant K. The properties of the CDF allow us to perform such a transform. It is defined as y= T(x) = cdf x (x) (3) We notice that the T maps the levels into the range [0,1]. In order to map the values back into their original range, the following simple transformation needs to be applied on the result y = y.{max{x}-min{x}}+ min{x} (4) B. Local Histogram Equalization The flowchart as shown Fig. 3 depicts the algorithmic steps that have been implemented in the proposed approach for local histogram equalization and are described as follows. The input image is loaded and the histogram obtained by using the function imhist [10]. A window of our own chosen size is initialized. CDF values for the pixels in the image are computed. The middle values for each window is computed and the CDF value calculated. Figure 3. Flow-chart showing the proposed algorithm on local histogram equalization III. OBSERVATIONS AND RESULT S In this work we have chosen three different types of images. Each image has its own characteristic features and differs from each other in terms of their detail, contrast levels, background and the amount of noise. Fig. 4 (a) shows the image of Monalisa. The Matlab equalized image and the proposed global and local histogram equalized images are shown in Fig. 4 (b), (c) and (d) respectively. The original black & white image of Monalisa is a dark image but a very clear distinction between the high and low contrast areas of the image is observed. MATLAB equalized and the Histogram equalized image implementing the proposed algorithm, clearly enhance the quality of image in terms of the contrast. The Histogram of Monalisa image is shown in Fig. 7 has a very constricted nature of intensity distribution. Both the MATLAB equalized and the histogram equalized (global) image show a distributed intensity distribution thus bringing out more detail in the equalized image. The local equalized image is definitely poorer in quality than the global equalizat ion. The boundary is brighter (higher CDF) and hence we observe that local neighbourhood based equalization does not work well when there is a clear distinction between object and its background. The image of Fig. 5 (a) is a cross section of the human heart showing the aorta (largest artery) by a big grey sphere in the original image and the histogram of it is shown in Fig. 8. Here, we observe that the contrast distribution is not uniform and we cannot categorize the image into a bright foreground and a dark background.

58 Histogram Equalization-A Simple but Efficient Technique for Image Enhancement The MATLAB equalized image has brighter contrast but the various parts in the cross section cannot be easily distinguished. The proposed algorithms using both global and local equalization clearly show the different contrast regions and most importantly the different parts within the cross section are more clearly visible. In fact the local histogram method scores above the global histogram technique in this particular medical image. It is able to clearly distinguish the different parts within the crosssection irrespective of the details outside the boundaries. The different contrast gradients in the image have been easily expressed. This may help doctors to diagnose whether any problem exists in the artery. Thus the proposed algorithm scores above the MATLAB equalization technique. In case of satellite image of Fig. 6, both the MATLAB equalized image and the global histogram equalized image are better contrast images than the original low contrast image obtained from the satellite. The equalized image (global HE) differs from the MATLAB equalized image in the regions in the lower left of the landscape as it brings out better contrast level than the MATLAB image. On the other hand, locally equalized image exposes much more details than the global histogram equalized image. The image has exposed details like trees and fields in the right half of the image. A lso the intensity distribution is higher at the edges as expected and hence the gray levels of the boundary pixels have been overamp lified. Fig. 9 shows the image histograms of satellite captured image. Figure 4. (a) image of Monalisa, Images, (b to d) are the images after Matlab, global HE, local HE Figure 5. (a) cross-section of human heart, (b to d) are the images after Matlab, global HE and local HE Figure 6. (a) Satellite captured Image, (b to d) are images after Matlab, global HE and local HE

Histogram Equalization-A Simple but Efficient Technique for Image Enhancement 59 Figure 7: Image histograms of Monalisa

60 Histogram Equalization-A Simple but Efficient Technique for Image Enhancement Figure 8: Image histograms of cross-sectional view human heart

Histogram Equalization-A Simple but Efficient Technique for Image Enhancement 61 Figure. 9: Image histograms of satellite captured image

62 Histogram Equalization-A Simple but Efficient Technique for Image Enhancement IV. CONCLUSIONS In this paper we have seen the usefulness of histogram processing of digital images and proposed two algorithms for histogram equalization namely, the global and local HE. We have also observed the effectiveness of the proposed techniques by applying on three different sets of images. It is clear fro m the results that for simple images with lesser contrast levels and backgrounds, global histogram give better results whereas when the image is complex with different contrast levels and backgrounds the local histogram equalization works well and produces good results. However, it must be kept in mind that when fast computation is required then one must go for global HE, whereas local HE takes more computational time and requires more memory but capable of enhancing the local details and information in an image with multiple contrast levels. ACKNOWLEDGMENT We sincerely thank Mr. Dipankar Mohato, Mr. Pranoy Bardoloi and Miss Ronalin Kakoti for their useful contributions, discussions and comments towards successful completion of the project. REFERENCES [1] Maini Raman and Agarwal Himanshu: A Comprehensive Review of Image Enhancement Techniques, Journal of Computing, Vol. 2, Issue 3, ISSN 2151-9617, March 2010. [2] Garg Rajesh, Mittal Bhawna and Garg Sheetal: Histogram Equalization Techniques For Image Enhancement. H.I.T., Sonepat, Haryana, India. [3] Mark Eramian and David Mould: Histogram Equalization using Neighborhood Metrics. Department of Computer Science, 110 Science Place, Saskatoon, SK, Canada, S7N 5C9,Canada, S7N 5C9. [4] Mokhtar N.R, Harun Nor Hazlyna, Mashor M. Y., Roseline H., Mustafa Nazahah, Adollah R., Adilah H. and Nasir N.F.Mohd: Image Enhancement Techniques Using Local, Global, Bright, Dark and Partial Contrast Stretching For Acute Leukemia Images. In: Proc. of the World Congress on Engineering 2009, Vo l I. [5] Robert Krutsch and David Tenorio: Histogram Equalization: Technical Report, Microcontroller Solutions Group, Guadalajara. [6] Kim Joung-Youn, Kim Lee-Sup and Hwang Seung- Ho: An Advanced Contrast Enhancement Using Partially Overlapped Sub-Block Histogram Equalization, IEEE Trans. on Circuits and Systems for Video Technology, Vol. 11, No. 4, APRIL 2001. [7] Freescale Semiconductors : http://cache.freescale.com/files/dsp/doc/app_note/a N4318.pdf. [8] Rafael C, Gonzalez, Richard E Woods. Digital Image Processing, Pearson Education Inc. 2002, India Reprint. ISBN 81-7808-629-8. [9] Shapiro, Linda G. & Stockman, George C. (2002). "Computer Vision". Prentice Hall. ISBN 0-13- 030796-3. [10] Sabih D. Khan. Image Processing in Matlab: An Introductory Approach. Saurabh Chaudhury was born in 1971 and graduated fro m REC (now NIT) Silchar in Electrical Eng ineering in 1994 with Honours degree and subsequently obtained M.Tech and Ph.D from IIT Kharagpur, India in the field of Microelectronics & VLSI Design in 2001 and 2009 respectively. He is currently holding the position of Associate Professor, in the Department of Electrical Engineering, NIT Silchar. His area of interest includes, Low Power VLSI Design and Synthesis, leakage minimization, Digital Signal and Image Processing and Nanotechnology. He is a reviewer of many international conferences and journals including IEEE and program committee members of many international conferences. Ananta Kumar Roy was a graduate student of Electrical Engineering, National Institute of Technology Silchar, Assam, India during 2008-2012 and obtained his B.Tech degree from NIT Silchar in the month of June 2012 in Electrical Engineering. He has contributed to the paper through his project work under my supervision and guidance. He was a sincere and dedicated student throughout. Currently he is working with Coal India Limited, India, as Management Trainee.