Automated image enhancement using power law transformations

Similar documents
Digital Image Processing. Prof. P.K. Biswas. Department of Electronics & Electrical Communication Engineering

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Lecture 4 Image Enhancement in Spatial Domain

Introduction to Digital Image Processing

Digital Image Processing

AN EFFICIENT BINARIZATION TECHNIQUE FOR FINGERPRINT IMAGES S. B. SRIDEVI M.Tech., Department of ECE

Intensification Of Dark Mode Images Using FFT And Bilog Transformation

Digital Image Processing. Lecture # 3 Image Enhancement

Image Enhancement: To improve the quality of images

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Introduction to Digital Image Processing

OCR For Handwritten Marathi Script

Semi-Automatic Global Contrast Enhancement

Chapter 3: Intensity Transformations and Spatial Filtering

Comparative Study of Linear and Non-linear Contrast Enhancement Techniques

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Digital Image Processing

A Modified SVD-DCT Method for Enhancement of Low Contrast Satellite Images

IMAGE DIGITIZATION BY WAVELET COEFFICIENT WITH HISTOGRAM SHAPING AND SPECIFICATION

Intensity Transformations and Spatial Filtering

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

Chapter - 2 : IMAGE ENHANCEMENT

Computer Vision & Digital Image Processing. Image segmentation: thresholding

An ICA based Approach for Complex Color Scene Text Binarization

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

Sampling and Reconstruction

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering

FACE DETECTION USING CURVELET TRANSFORM AND PCA

Image Enhancement Using Fuzzy Logic

Feature Detectors - Canny Edge Detector

EDGE BASED REGION GROWING

Global Thresholding Techniques to Classify Dead Cells in Diffusion Weighted Magnetic Resonant Images

Motivation. Gray Levels

What will we learn? What is a histogram? What is a histogram? Histogram example. Chapter 9 Histogram Processing. Examples of image and its histograms

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN

An Adaptive Approach for Image Contrast Enhancement using Local Correlation

Digital Image Processing. Image Enhancement (Point Processing)

Character Recognition Using Matlab s Neural Network Toolbox

VC 16/17 TP5 Single Pixel Manipulation

RESTORATION OF DEGRADED DOCUMENTS USING IMAGE BINARIZATION TECHNIQUE

MOVING OBJECT DETECTION USING BACKGROUND SUBTRACTION ALGORITHM USING SIMULINK

Image Enhancement 3-1

Intensity Transformation and Spatial Filtering

(Refer Slide Time: 0:38)

Object Tracking System Using Motion Detection and Sound Detection

Detection of Moving Objects in Colour based and Graph s axis Change method

A COMPARISON OF WAVELET-BASED AND RIDGELET- BASED TEXTURE CLASSIFICATION OF TISSUES IN COMPUTED TOMOGRAPHY

Quality Analysis and Image Enhancement Using Transformation Techniques

Scaling and Power Spectra of Natural Images

EE663 Image Processing Histogram Equalization I

Motivation. Intensity Levels

Statistical Image Compression using Fast Fourier Coefficients

A Laplacian Based Novel Approach to Efficient Text Localization in Grayscale Images

Segmentation and Modeling of the Spinal Cord for Reality-based Surgical Simulator

Digital Image Processing

Optik 124 (2013) Contents lists available at SciVerse ScienceDirect. Optik. jou rnal homepage:

A Novice Approach To A Methodology Using Image Fusion Algorithms For Edge Detection Of Multifocus Images

Digital Image Analysis and Processing

Elimination of Duplicate Videos in Video Sharing Sites

Fine Classification of Unconstrained Handwritten Persian/Arabic Numerals by Removing Confusion amongst Similar Classes

Object Shape Recognition in Image for Machine Vision Application

Contrast Enhancement in Video Sequences Using Variable Block Shape Adaptive Histogram Equalization

Study of Brightness Preservation Histogram Equalization Techniques

ADVANCED IMAGE PROCESSING METHODS FOR ULTRASONIC NDE RESEARCH C. H. Chen, University of Massachusetts Dartmouth, N.

SSRG International Journal of Computer Science and Engineering (SSRG-IJCSE) volume1 issue7 September 2014

WEINER FILTER AND SUB-BLOCK DECOMPOSITION BASED IMAGE RESTORATION FOR MEDICAL APPLICATIONS

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations

Representation of 2D objects with a topology preserving network

SAR SURFACE ICE COVER DISCRIMINATION USING DISTRIBUTION MATCHING

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Effects Of Shadow On Canny Edge Detection through a camera

International Journal of Advanced Engineering Technology E-ISSN

Practical Image and Video Processing Using MATLAB

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Face Detection for Skintone Images Using Wavelet and Texture Features

IMAGE COMPRESSION USING TWO DIMENTIONAL DUAL TREE COMPLEX WAVELET TRANSFORM

Detecting Salient Contours Using Orientation Energy Distribution. Part I: Thresholding Based on. Response Distribution

Image Quality Assessment Techniques: An Overview

Intensity Transformations. Digital Image Processing. What Is Image Enhancement? Contents. Image Enhancement Examples. Intensity Transformations

ECE 176 Digital Image Processing Handout #14 Pamela Cosman 4/29/05 TEXTURE ANALYSIS

Filtering and Enhancing Images

Global-Local Contrast Enhancement

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

DENOISING OF COMPUTER TOMOGRAPHY IMAGES USING CURVELET TRANSFORM

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Analysis of Node Failure on Coverage in Presence of Shadowing and Fading in Wireless Sensor Networks

A Singular Example for the Averaged Mean Curvature Flow

A Study on various Histogram Equalization Techniques to Preserve the Brightness for Gray Scale and Color Images

Practical Image and Video Processing Using MATLAB

Digital Image Processing

Character Recognition

ELEN E4830 Digital Image Processing. Homework 3 Solution

An Optimal Gamma Correction Based Image Contrast Enhancement Using DWT-SVD

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Transcription:

Sādhanā Vol. 37, Part 6, December 212, pp. 739 745. c Indian Academy of Sciences Automated image enhancement using power law transformations SPVIMAL 1 and P K THIRUVIKRAMAN 2, 1 Birla Institute of Technology & Science (BITS), Pilani 333 31, India 2 Birla Institute of Technology & Science (BITS), Pilani, Hyderabad Campus, Hyderabad 5 78, India e-mail: thiru@bits-hyderabad.ac.in MS received 1 February 212; revised 17 June 212; accepted 18 September 212 Abstract. We propose a scheme for automating power law transformations which are used for image enhancement. The scheme we propose does not require the user to choose the exponent in the power law transformation. This method works well for images having poor contrast, especially to those images in which the peaks corresponding to the background and the foreground are not widely separated. Keywords. Image enhancement; power law transformations; contrast stretching. 1. Introduction Image enhancement (Gonzalez & Woods 25)is one of the basic problems in Image processing. It also forms the first stage in the pre-processing of images which have to be subjected to image recognition algorithms (Sonka et al 1999). Even though a variety of methods exist for Image enhancement, including power law transformations, histogram specification, etc, many of them require user input. Methods which do not require user input, for example, histogram equalization may sometimes fail for certain class of images (Gonzalez & Woods 25). Automatically enhancing contrast of an image has been a challenging task since the digital image can represent variety of scene types. Trifonov et al (21) performed automatic contrast enhancement by automatically determining the measure of central tendency of the brightness histogram of an image and shifting and transforming the histogram appropriately. Starck et al (23) proposed a curvelet-based contrast enhancement algorithm which exploited curvelet properties for contrast stretching for efficient enhancement of contrast of an image. Their method works well for an image in the presence of noise. Stark (2) proposed cumulative functions to be used in conjunction with histogram equalization for achieving contrast enhancements. This cumulative function is a parameter whose tuning gives varying degree of contrast enhancement. We propose a simple method for automatically enhancing the contrast of the given image. We propose an efficient method to choose the parameters of power law transformation automatically. For correspondence 739

74 S P Vimal and P K Thiruvikraman 2. Power law transformations Image enhancement can be carried out in the spatial or the Fourier domains and one of the important parameters to be looked at in this context is contrast enhancement. In the spatial domain, the methods used may be further classified into: gray level transformations, histogram processing, etc. As mentioned above, histogram equalization suffers from the fact that it may sometimes decrease the contrast. Histogram specification or matching can be tailor-made to suit the images but requires lot of user input. Similarly, power law transformations or piece-wise linear transformation functions also require lot of user input. In the former case one has to choose the exponent appearing in the transformation function, while in the latter case one has to choose the slopes and ranges of the straight lines which form the transformation function. The power-law transformation is usually defined as s = cr γ, (1) where s and r are the gray levels of the pixels in the output and the input images, respectively and c is a constant. These power law transformation functions are shown graphically in the diagram (figure 1). Figure 1 shows the plot of power law transformation with the input gray level r along the x axis and the output gray level s on the y axis for various values of γ. We will now consider that these transformations are applied on a low contrast image. We assume that the background and foreground peaks have almost merged together in such a low contrast image. Let r max be the dominant peak in the histogram. If r max has a large value (in the range 15 255), then it is seen from the above graph that contrast stretching occurs by choosing γ>1 whereas for dark images (r max lies in the range 1), we see that choosing γ<1 leads to contrast stretching. We can of course, automate this procedure for choosing the appropriate exponent, by finding out the peak value in the histogram. However, we can further generalize this procedure so that the most appropriate value of the exponent is chosen. Figure 1. Plot of power law transformation for various γ with input gray level along X axis and output gray level along Y axis.

Automated image enhancement using power law transformations 741 3. Automated image enhancement We realize from the above discussion that maximum contrast stretching occurs by choosing the value of γ for which the transformation function has the maximum slope at r = r max. That is, if m is the slope of the transformation function, then we should find the value of γ, which results in the maximum value of m at r = r max. Since we would usually like both s and r to run from to L 1, we should have, c = (L 1) 1 γ. (2) Now, m = ds dr = γ cr γ 1. (3) We would like to maximize m by varying γ. Therefore, the required condition is dm dγ = r=rmax dm dγ ( rmax L 1 = (4) r=rmax ) 1 γ + γ ( rmax L 1 ) 1 γ =. (5) Therefore 1 γ = ( ). (6) ln rmax L 1 Hence, given the value of r max, which corresponds to the peak in the histogram, we can determine the corresponding value of the exponent which would maximize the extent of the contrast stretching. 4. Testing of the algorithm We selected an image which had a single dominant peak in the histogram and subjected it to the enhancement algorithm described above. The value of r max, as determined by the program (written in MATLAB) was found to be 164. The corresponding value of gamma is found to be 2.2655. The original and the enhanced images are reproduced below showing clearly that the algorithm works for images which have a single dominant peak. In order to quantitatively verify the improvement in contrast, we calculated the standard deviations of the input and the output images and found them to be 48.59 and 52.23, respectively. This confirms the improvement in contrast, if standard deviation of the gray level of the pixels is taken as a measure of contrast. Some precautions have to be taken in using the algorithm in order to avoid some computational problems. In case the value of r max =, then the corresponding value of γ is. Using this value would lead to erroneous results since, all values of r (input gray level) would be mapped to the same value of s (output gray level). In this case, the program checks whether the peak occurs at and if so replaces, the power law transformation by a logarithmic transformation. A similar problem occurs if the peak is at L-1 (i.e., 255 in the case of a 8-bit grayscale image). In this case, the power law transformation is to be replaced by an exponential transformation. In fact, in our algorithm, we have replaced the power law by an exponential transformation,

742 S P Vimal and P K Thiruvikraman whenever r max > 25, as otherwise the gamma value which is computed by the algorithm is larger than the maximum number which can be handled by the computer. In the recent past, efforts have been made to automate image enhancement using neural networks (Jun et al 28). Our algorithm has the advantage that it is very simple to implement and does not have any arbitrary parameters which have to be fixed by the user. 5. Results for images with multiple peaks in the histogram The above algorithm assumes that the input image is a low contrast image with a single peak. However, in practice, most images have at least two peaks, one corresponding to the foreground and one corresponding to the background. If we use the same approach for images with two peaks, the results still show marginal improvement, though the improvement is not as impressive as in the case of figure 2, as the proposed approach works around the most dominant peak. We applied our algorithm on images with two peaks. One such image is shown in figure 3 and another in figure 5. The histogram of the input and output images are shown in figure 4 and figure 6, respectively. We can observe that the standard deviation actually decreases marginally in both the cases on application of this algorithm. This is mainly because, in both the cases, r max happens to be near. Hence the gamma value which is computed by the algorithm will be less than 1. As a result, the dominant peak will be shifted towards higher gray levels, thereby leading to a decrease in the standard deviation. It is to be noted that even standard algorithms (a) Original image with a slightly washed-out apperance (b) Enhanced image using the automated power law transformation (c) Histogram of original image (d) Histogram of enhanced image Figure 2. Input and output images with the respective histograms.

Automated image enhancement using power law transformations 743 Figure 3. A test image with multiple peaks in the histogram. The input image is on the left, while the output image is on the right. 18 25 16 14 2 n(r) 12 8 6 4 n(s) 15 5 2 5 1 15 2 25 3 r 5 1 15 2 25 3 s Figure 4. The histograms of the input (left) and the output (right) images shown in figure 3. The corresponding standard deviations are 62.34 and 51.36. Figure 5. Test image which has multiple peaks in the histogram. The input image is on the left, while the output image is on the right.

744 S P Vimal and P K Thiruvikraman Figure 6. Histograms for the images shown in figure 5. The histogram of the input image is on the left and the histogram of the output image is on the right. The standard deviations of the input and output images are 43.89 and 37.61, respectively. for image enhancement like histogram equalization, fail for certain class of images (Gonzalez & Woods 25). Our algorithm works well in those where it is most needed, i.e., in cases, where the images have poor contrast. In cases, where the images already have good contrast (figure 3 and figure 5), the algorithm does not enhance the contrast. We present one final example of an image with multiple peaks in the histogram. Figure 7 shows the inputand outputimages and figure 8 shows the corresponding histograms. In this case, there is a slight improvement in contrast. As mentioned earlier, the algorithm works in this case, as the input image is of low contrast and the foreground and background peaks in the histogram are quite close to each other (unlike in the case of figures 3 and 5). In case of images similar to figure 3 or figure 5, the user may require to enhance only a particular range of gray levels (either the foreground or the background). This of course, calls for intervention by the user. Figure 7. Example of an image with multiple peaks. The input image is on the left, while the output image is on the right.

Automated image enhancement using power law transformations 745 35 35 3 3 25 25 n(r) 2 15 n(s) 2 15 5 5 1 2 3 r 1 2 3 s Figure 8. The input (left) and output (right) histograms for the images in figure 7. The standard deviations of the input and output images are 14.14 and 14.18, respectively. 6. Conclusion We have presented a simple and efficient algorithm for automatic image enhancement and tested it on some images. The method works well for cases in which the foreground and background peaks are not well-separated, i.e., the input image is of a low contrast. In case of images having high contrast, especially those which have a wide separation between the foreground and the background peaks, the method is not so effective. In the case of such images, user intervention is required to enhance or stretch a particular range of gray levels. References Gonzalez R C and Woods R E 25 Digital image processing, II Edition, New Delhi, India: Pearson Education Jun J, Jun C and Xinglin C 28 CISP, vol. 3, Congress on Image and Signal Processing, Volume 3, 289 293 Sonka M, Hlavac and Boyle 1999 Image processing, analysis, and machine vision, II Edition, Singapore: Brooks/Cole Stark J A 2 Adaptive image contrast enhancement using generalizations of histogram equalization. IEEE Trans. Image Process. 9: 889 896 Starck J, Murtagh F, Candes E and Donoho D 23 Gray and colour image contrast enhancement by the curvelet transform. IEEE Trans. Image Process. 12(6): 76 717 Trifonov M I, Sharonova O V and Zaklika K A 21 Automatic contrast enhancement. US Patent number: 682631, Filing date: 6 Jul 21, Issue date: 3 Nov 24. Application number: 9/9,744