Head, IICT, Indus University, India

Similar documents
1.Discuss the frequency domain techniques of image enhancement in detail.

Frequency Domain Enhancement

Fourier Transforms and the Frequency Domain

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

Computing for Engineers in Python

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Transforms and Frequency Filtering

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

Teaching Scheme. Credits Assigned (hrs/week) Theory Practical Tutorial Theory Oral & Tutorial Total

Digital Image Processing

Digital Image Processing

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Smoothing frequency domain filters

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

TDI2131 Digital Image Processing

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Filtering. Image Enhancement Spatial and Frequency Based

What is image enhancement? Point operation

Practical Image and Video Processing Using MATLAB

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

DIGITAL IMAGE PROCESSING UNIT III

Image Smoothening and Sharpening using Frequency Domain Filtering Technique

Image Enhancement using Histogram Equalization and Spatial Filtering

CSE 564: Scientific Visualization

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

Constrained Unsharp Masking for Image Enhancement

VU Signal and Image Processing. Image Enhancement. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

Image Filtering. Median Filtering

Non Linear Image Enhancement

Digital Image Processing. Lecture # 3 Image Enhancement

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

COMPREHENSIVE EXAMINATION WEIGHTAGE 40%, MAX MARKS 40, TIME 3 HOURS, DATE Note : Answer all the questions

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

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

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

Image Processing for feature extraction

Preparing Remote Sensing Data for Natural Resources Mapping (image enhancement, rectifications )

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

Chapter 3. Study and Analysis of Different Noise Reduction Filters

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

CSE 564: Visualization. Image Operations. Motivation. Provide the user (scientist, t doctor, ) with some means to: Global operations:

June 30 th, 2008 Lesson notes taken from professor Hongmei Zhu class.

Chrominance Assisted Sharpening of Images

Computer Vision. Howie Choset Introduction to Robotics

Digital Image Processing

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

AN EFFICIENT IMAGE ENHANCEMENT ALGORITHM FOR SONAR DATA

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

Digital Image Processing. Filtering in the Frequency Domain (Application)

Midterm Review. Image Processing CSE 166 Lecture 10

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

COMPARITIVE STUDY OF IMAGE DENOISING ALGORITHMS IN MEDICAL AND SATELLITE IMAGES

Filtering in the spatial domain (Spatial Filtering)

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Image analysis. CS/CME/BIOPHYS/BMI 279 Fall 2015 Ron Dror

On the evaluation of edge preserving smoothing filter

Prof. Feng Liu. Winter /10/2019

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Literature Survey On Image Filtering Techniques Jesna Varghese M.Tech, CSE Department, Calicut University, India

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

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

TDI2131 Digital Image Processing (Week 4) Tutorial 3

TDI2131 Digital Image Processing

High Dynamic Range Imaging

Chapter 6. [6]Preprocessing

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

IMAGE PROCESSING: POINT PROCESSES

Images and Filters. EE/CSE 576 Linda Shapiro

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Enhancement Techniques for True Color Images in Spatial Domain

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

Digital Image Processing

Prof. Feng Liu. Fall /04/2018

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

Filip Malmberg 1TD396 fall 2018 Today s lecture

Smoothing frequency domain filters

Color Transformations

Guided Image Filtering for Image Enhancement

Low Spatial Frequency Noise Reduction with Applications to Light Field Moment Imaging

Image Enhancement in Spatial Domain

Lecture 3: Linear Filters

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Journal of mathematics and computer science 11 (2014),

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

A Division of Sun Chemical Corporation. Unsharp Masking How to Make Your Images Pop!

Efficient 2-D Structuring Element for Noise Removal of Grayscale Images using Morphological Operations

A.V.C. COLLEGE OF ENGINEERING DEPARTEMENT OF CSE CP7004- IMAGE PROCESSING AND ANALYSIS UNIT 1- QUESTION BANK

Image Processing Lecture 4

A Study On Preprocessing A Mammogram Image Using Adaptive Median Filter

A DEVELOPED UNSHARP MASKING METHOD FOR IMAGES CONTRAST ENHANCEMENT

Using MATLAB to Get the Best Performance with Different Type Median Filter on the Resolution Picture

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

Index Terms: edge-preserving filter, Bilateral filter, exploratory data model, Image Enhancement, Unsharp Masking

Transcription:

International Journal of Emerging Research in Management &Technology Research Article December 2015 Comparison Between Spatial and Frequency Domain Methods 1 Anuradha Naik, 2 Nikhil Barot, 3 Rutvi Brahmbhatt, 4 Dr. Vishal Dahiya 1, 2, 3 Student CE Department, Indus University, India 4 Head, IICT, Indus University, India Abstract T he purpose of this research is to present a proper comparison between image filters in spatial domain and frequency domain, on the basis of various parameters of a grayscale image. This paper explores results of filtering techniques from both domains, presenting a detailed comparative analysis on the efficiency and effectiveness of filtering in both domains. Keywords Spatial Domain; Frequency Domain; Image Enhancement; Image Filtering, Entropy,Image Entropy, Standard Deviation. I. INTRODUCTION In this research we shall be comparing different techniques for image filtering in spatial and frequency domains. The basic idea behind image enhancement is to transform the whole or part of the image, to achieve desired result. Most of the time this enhancement pertains to enhancing the visual appearance of image. It is a problem-oriented process; meaning the output is obtained according to need of the application. Image Enhancement transforms are used for providing better representations of otherwise un-obvious details. The two kinds of image enhancements mainly used are smoothing and sharpening. Smoothing refers to the blurring of edges in image intensity levels. Sharpening refers to highlighting image edges. These two enhancements can be achieved using image filtering.image Filtering is referred to as the mathematical transformation of the image matrix to achieve enhancement of image.image filtering is done in two domains; One is the spatial domain, which refers to the 2-D x-y plane and the other domain is the frequency domain, which is mathematically the Fourier domain, (u-v plane) which is used to deal with frequency values. Image Filters which are nothing but mathematically generated masks which are used to work with image intensity values, therefore enhancing the image. The Spatial domain filtering methods modify pixel intensity directly. The Frequency domain filtering methods modify the Fourier transform of the input image. Both work on different principles, and they both provide different images as output. So based on the parameters of those discrete images as output, A quantized comparison and analysis is obtained. Figure 1: A graphic representation of the comparison presented in this research before we begin, we specify the parameters of original Image: Figure 2: Original Image (cameraman.tiff, entropy: 7.009, Standard Deviation: 62.3417) Figure 2 shows a generic grayscale image, cameraman.tiff 2015, IJERMT All Rights Reserved Page 45

II. SMOOTHING Smoothing refers to averaging out the edges present in the image. An edge in an image is a boundary or curve at which a significant intensity change occurs in some physical component or region of an image [7]. A. Smoothing in Spatial Domain 1) Box Filter(Linear): Figure 3: After Box Filter (entropy: 7.0271, Standard Deviation: 57.9969) This figure 3 shows image presents a box filtered representation of the original image. A box filter is a kind of a smoothing filter in which each pixel of the resulting image has a value of its neighbouring pixels in the input image. This filter was implemented on the original image, by creating a matrix where each cell value was = 1/25 for a 5X5 filter. Dividing the image pixels with the following filter value, achieves a box blur like above 2) Median Filter: Figure 4: After Median Filter (entropy: 6.9680, Standard Deviation:62.0752) This figure 4 shows result of median filter, applied on the original image. The median filter replaces pixel values entry by entry with the median value of the neighborhood [5]. The pattern of neighbours is the referred as the window through which the filter slides. This image shows a median filtered representation of the original image, Here the median filter is implemented, in the same manner. B. Smoothing in Frequency Domain 1) Butterworth Low Pass Filter: Figure 5 After Butterworth LPF (entropy: 5.3874, Standard Deviation:21.4869) This figure 6 represents result of butter worth low pass filter on original image. Butterworth high pass filter is a type of signal processing filter, which attenuates low frequency elements of the image producing a flat frequency response. A second order Butterworth filter is applied to the following image which passes all frequencies lower than 0.10. 2) Gaussian Low Pass Filter: Figure 6 After Gaussian Filtering (entropy: 7.0260, Standard Deviation: 59.6999) 2015, IJERMT All Rights Reserved Page 46

This figure 5 shows result of Gaussian LPF, applied on original image. Gaussian filtering is applied by convolving the 2D Gaussian distribution function with the input image, And a Fourier transform of the Gaussian function is multiplied with the image signal (which has also been Fourier transformed) to yield a Gaussian blur, which attenuates high frequency signals. Here a smoothing Gaussian filter is applied, which averages out the image with a Standard Deviation value of 2 and uses filter size of 2 as well. III. SHARPENING Image sharpening refers to any enhancement technique that highlights edges in an image (Refer definition of edges in II) [8].Image sharpening is widely used to increase the contrast in images and also to recover blurred portions of an image. A. Sharpening in Spatial Domain: 1) Unsharp Mask: Figure 7 After Unsharp (entropy: 7.1471, Standard Deviation:74.0242) This figure7 illustrates result of unsharp filtering on the original image. This technique uses a blurred, or "unsharp", negative image to create a mask of the original image. The unsharp mask is then combined with the positive (original) image, creating an image that is less blurry than the original. Here the filter is implemented such that it mathematically subtracts the smoothness of the image; as a result blurred information is cancelled out in this procedure. 2) Highboost Filter: Figure 8 After High Boost (entropy: 2.5061, Standard Deviation:83.0416) This figure 8 shows result of high boost filtering on original image The high-boost filter is used to enhance high frequency components while still keeping the low frequency components. It is composed of an all pass filter and an edge detection filter; it is a simple sharpening operator. It is used for amplifying high frequency components of signals and images.implementation is achieved by subtracting a smoothed version of the picture and boosting edge information of the resultant image [6]. B. Sharpening in Frequency Domain 1) Butterworth Low Pass Filter: Figure 9 After Butterworth HPF (entropy: 5.0866, Standard Deviation:27.1428) This figure 9 represents result of butter worth high pass filter, on original image. Butterworth high pass filter is a type of signal processing filter, which attenuates low frequency elements of the image while producing a flat frequency response. Implementation is similar to BLPF, to achieve a more precise comparison. 2015, IJERMT All Rights Reserved Page 47

A second order Butterworth high pass filter is applied to the following image which passes all frequencies higher than 0.10. 2) Gaussian High Pass Filter: Figure 10 After Gaussian HPF (entropy: 2.5807, Standard Deviation: 26.4227) This figure 10 shows effect of Gaussian HPF, applied on the original image. Gaussian High Pass filtering is achieved by multiplying the 2D Gaussian distribution function with the image, which highlights the step intensity variations such as edges. This filter attenuates signals which are nearer to the image center. [4].Here a smoothing Gaussian High Pass filter is implemented by subtraction of low frequency elements, leaving the high frequency elements in the filtered image. IV. COMPARITIVE ANALYSIS A. Prologue To obtain a detailed analysis of both filtering domains, we use entropy and standard deviation of an image. We measure the information entropy of the images to determine variance in information content, with each filter applied.entropy of an image determines the information content of that image[1] A more numerical definition of entropy states that Entropy for a gray scale image refers to the number of gray levels covered in that image, by this convention,,the entropy of a binary image is considered minimum at grayscale as only 2 possible levels are reached if all 256 levels are reached the image is histogram equalized and entropy is maximum [2].Entropy of original image considered here is found out to be 7.009. This implies that maximum number of grey levels covered with respect to image matrix elements amounts to 7.009. Now considering Standard Deviation value of the images, this shows the mathematical distance between the average value of the image matrix and all other elements of that image matrix. A high standard deviation implies that the image data is widely spread with respect to the average or expected value of image matrix, and conversely a lower Standard Deviation value signifies that the values of matrix elements are similar to average value of image matrix. Standard Deviation of the original image is found to be 62.3417, so the variance between matrix elements and average of original image is 62.3417. B. Smoothing 1) Entropy Analysis: TABLE I ENTROPY COMPARISON TABLE FOR SMOOTHING FILTERS Entropy values in spatial Entropy values in domain frequency domain Box Filter 6.9680 BLPF 5.3874 Median Filter 7.0271 GLPF 7.0260 The Table 1 shows entropy analysis for smoothing filters in the spatial domain (Box Filter & Median Filter) versus the smoothing filters in the frequency domain (Butterworth LPF & Gaussian LPF). Entropy by this table seems totally filter dependent, but on taking a closer look, comparing the instances of Gaussian low pass filter, and Box filter, we can observe effective smoothing, though in case of box filtering even if entropy is more, which suggests a more equalized image representing more information, we observe, that essential information is blurred. On the contrary, in the frequency domain, the Gaussian filter achieves a lesser entropy value than the box filter, but achieves a more apparent smoothing than blurring of image information. Butterworth low pass filter applies second order filter which, results to a loss of most of image information decreasing to a value of 5.3.Therefore we can conclude that for effective image smoothing Gaussian LPF and box filter produce a better entropy value and smoothen the image.the only difference being that Gaussian filter still retains vital image information better. 2) Standard Deviation Analysis: Table II Standard Deviation Comparison Table For Smoothing Filters Standard Deviation values Standard Deviation values in spatial domain in frequency domain Box Filter 57.9969 Butterworth 21.4869 Median Filter LPF 62.0752 Gaussian LPF 59.6999 2015, IJERMT All Rights Reserved Page 48

The Table 2 shows standard deviation analysis for smoothing filters in the spatial domain (Box Filter & Median Filter) versus the smoothing filters in the frequency domain (Butterworth LPF & Gaussian LPF). Smoothing is an averaging operation, So the lower sigma value shall imply more smoothing.by observing median filter s standard deviation we can see that not a lot of smoothing is achieved.the standard deviation value for BLPF is very less, which implies most averaging ; yet the smoothing achieved is not visually appealing,and is very dissimilar to original image. Therefore Butterworth LPF may not be suitable for many applications. On having a look at results from Box filter and Gaussian filter, a lot of smoothing is performed. The variance between image elements and average value of image has decreased sizeably. Gaussian Filter has lesser smoothing than Box Filter, yet it can be said that both these filters have achieved effective and efficient smoothing, as both results are coherent with the original image. C. Sharpening 1) Entropy Analysis: Table III Entropy Comparison Table For Sharpening Filters Entropy values in Entropy values in spatial domain frequency domain Unsharp 7.1471 BHPF 5.0866 Highboost 2.5061 GHPF 2.587 The Table 3 shows entropy analysis for sharpening filters in the spatial domain (high boost & unsharp) versus the sharpening filters in the frequency domain (Butterworth HPF & Gaussian HPF). The following entropy values suggest a high loss in gray level information, except in the unsharp mask instance, which sharpens the edges of the image without increasing the noise or blemish [3], leading to effective sharpening of image elements; with a gain in entropy value. In other filters such as the Gaussian high pass filter or High boost filter the focus was on thresholding greyscale values, which when applied made the more apparent elements darker and the less apparent elements lighter resulting in loss in entropy information In Butterworth high pass filter, lower frequency values were eliminated, resulting in loss of image information, leading to decrease in entropy value. Therefore we can conclude that unsharp mask is the most likely choice, if one wants to sharpen the image while preserving entropy values 2) Standard Deviation Analysis: Table IV Standard Deviation Comparison Table For Sharpening Filters Standard Deviation Standard Deviation values values in spatial domain in frequency domain Unsharp 74.0242 Butterworth 27.1248 HPF Highboost 83.01416 Gaussian HPF 26.4227 The Table 4 shows standard deviation analysis for sharpening filters in the spatial domain (high boost & unsharp) versus the sharpening filters in the frequency domain (Butterworth HPF & Gaussian HPF). Sharpening highlights the edges of the image, which results in high contrast between image elements. This variance can be seen noticeably in the spatial domain sharpening filters.unsharp mask is a highly efficient sharpening mask, which has added to variance between image elements and average value of an image. And High boost Filter using High boost function has added a large amount of contrast to the image, while preserving a lot of image elements. On the contrary, result in frequency domain have achieved a lower standard deviation,because of the function of high pass frequency transform function, which acts as thresholding function,eliminating lower frequencies,by only allowing higher level frequency values.therefore only a image intensity values of values remained, and many of the image elements have the same intensity value out of small set of intensity values present in the image. Therefore standard deviation might be calculated less than standard deviation of original image.as an instance, observing the Gaussian HPF result, a thresholding effect is achieved where lighter elements are white and darker image elements are blackened out. As most image elements are white, standard deviation is found out to be of a lesser value. Therefore it can be concluded that spatial sharpening methods are better suited to obtain a high contrast image. V. CONCLUSIONS We derive a comparison between filters in spatial and frequency domain, gaining further insight in the filter results We also gain a conscious understanding of how entropy and standard deviation value of the image play an important role when comparing frequency and spatial domain. Furthermore we gain insight into the working of various (smoothing and sharpening) filters, in both the aforementioned domains. A. Further Work This research can be used in applications for Grayscale filtering, and as a reference for further comparison between both domains. It also can be used for study related to filtering domains and filtering techniques. 2015, IJERMT All Rights Reserved Page 49

ACKNOWLEDGMENT We would like to thank our teacher and guide for this research Dr. Vishal Dahiya. REFERENCES [1] Priya Pandey, Anupam Agarwal, Image Filtering and Entropy Calculation,[Vol-2, Issue-7, July- 2015],ISSN: 2349-6495 [2] Cornell University online library Digital Imaging Tutorial. [3] R. C. Gonzalez and R. E. Woods, 2008, Digital Image Processing, 3rd edition, Prentice Hall [4] University of Edinburgh Informatics Image Processing Median Filter [5] Technical University of Cluj-Napoca Image Processing Lab Manual [6] High Boost Filtering by KR Raguram. [7] Edge Detection-Digital Image Processing NPTEL Web Portal [8] Image Sharpening- Digital Image Processing NPTEL Web Portal 2015, IJERMT All Rights Reserved Page 50