Frequency Domain Median-like Filter for Periodic and Quasi-Periodic Noise Removal

Similar documents
Adaptive Optimum Notch Filter for Periodic Noise Reduction in Digital Images

PERFORMANCE ANALYSIS OF LINEAR AND NON LINEAR FILTERS FOR IMAGE DE NOISING

Non Linear Image Enhancement

Automatic processing to restore data of MODIS band 6

An Efficient Noise Removing Technique Using Mdbut Filter in Images

Chapter 4 SPEECH ENHANCEMENT

Target detection in side-scan sonar images: expert fusion reduces false alarms

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

Simple Impulse Noise Cancellation Based on Fuzzy Logic

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

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

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

A.P in Bhai Maha Singh College of Engineering, Shri Muktsar Sahib

A Fast Median Filter Using Decision Based Switching Filter & DCT Compression

Detail preserving impulsive noise removal

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

Noise Adaptive and Similarity Based Switching Median Filter for Salt & Pepper Noise

FPGA IMPLEMENTATION OF RSEPD TECHNIQUE BASED IMPULSE NOISE REMOVAL

Spatially Adaptive Algorithm for Impulse Noise Removal from Color Images

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

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

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

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

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

A Novel Multi-diagonal Matrix Filter for Binary Image Denoising

Image De-Noising Using a Fast Non-Local Averaging Algorithm

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

Prof. Feng Liu. Fall /04/2018

GAUSSIAN DE-NOSING TECHNIQUES IN SPATIAL DOMAIN FOR GRAY SCALE MEDICAL IMAGES Nora Youssef, Abeer M.Mahmoud, El-Sayed M.El-Horbaty

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

Image Enhancement using Histogram Equalization and Spatial Filtering

What is image enhancement? Point operation

High density impulse denoising by a fuzzy filter Techniques:Survey

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

Image Denoising Using Different Filters (A Comparison of Filters)

Fig 1: Error Diffusion halftoning method

Interpolation of CFA Color Images with Hybrid Image Denoising

Decision Based Median Filter Algorithm Using Resource Optimized FPGA to Extract Impulse Noise

Image Denoising using Filters with Varying Window Sizes: A Study

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

Chapter 6. [6]Preprocessing

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

Image Processing Final Test

Absolute Difference Based Progressive Switching Median Filter for Efficient Impulse Noise Removal

Fuzzy Logic Based Adaptive Image Denoising

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

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

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Stochastic Image Denoising using Minimum Mean Squared Error (Wiener) Filtering

A Spatial Mean and Median Filter For Noise Removal in Digital Images

Fast Inverse Halftoning

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

I. INTRODUCTION II. EXISTING AND PROPOSED WORK

An Efficient DTBDM in VLSI for the Removal of Salt-and-Pepper Noise in Images Using Median filter

Performance Analysis of Average and Median Filters for De noising Of Digital Images.

Module 3: Video Sampling Lecture 18: Filtering operations in Camera and display devices. The Lecture Contains: Effect of Temporal Aperture:

Chapter 3. Study and Analysis of Different Noise Reduction Filters

Lecture Notes 11 Introduction to Color Imaging

A Novel Approach to Image Enhancement Based on Fuzzy Logic

Proposed Method for Off-line Signature Recognition and Verification using Neural Network

Impulse noise features for automatic selection of noise cleaning filter

Paper or poster submitted for Europto-SPIE / AFPAEC May Zurich, CH. Version 9-Apr-98 Printed on 05/15/98 3:49 PM

International Journal of Advancedd Research in Biology, Ecology, Science and Technology (IJARBEST)

Image Processing by Bilateral Filtering Method

AN EFFICIENT IMAGE ENHANCEMENT ALGORITHM FOR SONAR DATA

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

An Improved Adaptive Median Filter for Image Denoising

A New Hybrid Multitoning Based on the Direct Binary Search

Digital Image Processing

Image Restoration using Modified Lucy Richardson Algorithm in the Presence of Gaussian and Motion Blur

EE482: Digital Signal Processing Applications

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

The Use of Non-Local Means to Reduce Image Noise

VLSI Implementation of Impulse Noise Suppression in Images

ELEC Dr Reji Mathew Electrical Engineering UNSW

DARK CURRENT ELIMINATION IN CHARGED COUPLE DEVICES

DIGITAL IMAGE PROCESSING Quiz exercises preparation for the midterm exam

Guided Image Filtering for Image Enhancement

Image Deblurring. This chapter describes how to deblur an image using the toolbox deblurring functions.

DIGITAL IMAGE PROCESSING UNIT III

Cluster-Dot Halftoning based on the Error Diffusion with no Directional Characteristic

Audio Restoration Based on DSP Tools

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

Speech Enhancement using Wiener filtering

Examples of image processing

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Chapter 12 Image Processing

A Novel Approach for MRI Image De-noising and Resolution Enhancement

Impulse Noise Removal and Detail-Preservation in Images and Videos Using Improved Non-Linear Filters 1

ABSTRACT I. INTRODUCTION

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

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Image Demosaicing. Chapter Introduction. Ruiwen Zhen and Robert L. Stevenson

A fuzzy logic approach for image restoration and content preserving

Noise and Restoration of Images

Sensors and Sensing Cameras and Camera Calibration

Estimating Parameters of Optimal Average and Adaptive Wiener Filters for Image Restoration with Sequential Gaussian Simulation

A DEVELOPED UNSHARP MASKING METHOD FOR IMAGES CONTRAST ENHANCEMENT

NEW HIERARCHICAL NOISE REDUCTION 1

Transcription:

Header for SPIE use Frequency Domain Median-like Filter for Periodic and Quasi-Periodic Noise Removal Igor Aizenberg and Constantine Butakoff Neural Networks Technologies Ltd. (Israel) ABSTRACT Removal of periodic and quasi-periodic patterns from photographs is an important problem. There are a lot of sources of this periodic noise, e.g. the resolution of the scanner used to scan the image affects the high frequency noise pattern in the acquired image and can produce moiré patterns. It is also characteristic of gray scale images obtained from single-chip video cameras. Usually periodic and quasi-periodic noise results peaks in image spectrum amplitude. Considering this, processing in the frequency domain is a much better solution than spatial domain operations (blurring for example, which can hide the periodic patterns at the cost of the edge sharpness reduction). A new frequency domain filter for periodic and quasi-periodic noise reduction is introduced in this paper. This filter analyzes the image spectrum amplitude using a local window, checks every spectral coefficient whether it needs the filtering and if so, replaces it with the median taken from the local window. To detect the peaks in the spectrum amplitude, a ratio of the current amplitude value to median value is used. It is shown that this ratio is stable for the non-corrupted spectral coefficients independently of the frequencies they correspond to. So it is invariant to the position of the peaks in the spectrum amplitude. This kind of filtering completely eliminates periodic noise, and shows quite good results on quasi-periodic noise while completely preserves the image boundaries. Keywords: periodic noise, median filter, spectral filter 1. INTRODUCTION As it is known, the theory of linear filtering gives optimal solutions, when the corruption can be modeled as a Gaussian process. The mean square error is the accuracy criterion in this case. These assumptions are reasonable in many practical tasks and the corresponding applications. On the other hand the errors in digital systems are often caused by bit changes, and the resulting distribution is far from the Gaussian one. Also in many cases, where visual quality is the ultimate criterion, the mean square error is not the best objective quality criterion: an image with a larger mean square error can be visually accepted better than one with a smaller mean square error. This is the case, where the nonlinear filtering methods are the most useful 1. We will considerer a problem of the periodic and quasi-periodic noise filtering in this paper. Removal of the periodic and quasi-periodic corrupting patterns from the images is an important problem. The issues of this noise are different. For example, the resolution of the scanner used to input the image usually affects the high frequency noise pattern in the acquired image and can often produce the additional moiré patterns. This artifact is also characteristic of gray scale images obtained from single-chip video cameras. A usual approach for the quasi-periodic noise filtering is the frequency domain processing. It is a much better solution than any kind of spatial domain blurring, which often is unable to reduce a periodic structure, but at the same time it reduces the edge sharpness significantly. Usually any periodic and quasi-periodic noise leads to the appearance of peaks in the image spectrum amplitude (See Fig.1). This is true for the Fourier, Cosine and Walsh spectra, for example. In the case of periodic nose, these peaks are even visible to an eye, while the peaks corresponding to the quasi-periodic noise usually are hidden and sometimes it is difficult to detect them without some kind of numeric analysis. Correspondence: (IA): E-mail: igora@netvision.net.il and igora@nnt-group.com ; Mapu 18, ap. 3, Tel Aviv, 63434, Israel (CB): E-mail: cbutakoff@yahoo.com ; NNT Ltd., 155 Bialik str., Ramat-Gan, 52523 Israel

(a) The input image corrupted by the quasi-periodic noise (b) The Fourier spectrum amplitude of the image (a): the bright white spots and scratches are the peaks implied by the quasi-periodic noise. Not strongly periodic character of the noise leads to the quasi-random distribution of the peaks, moreover, some of the peaks are small and invisible (c) The pure periodic structure: grid (d) The Fourier spectrum amplitude of the image (c): the white pixels are the peaks implied by the noise. A strongly periodic character of the grid leads to the strongly periodic structure of the peaks (e) The quasi-periodic structure (f) The Fourier spectrum amplitude of the image (g): the white pixels are the peaks implied by the noise. Not periodic character of the noise leads to the small peaks in the spectrum amplitude. The peaks could not be detected manually Fig.1. Fourier spectrum amplitude of the images with the periodic noise (images to the left, amplitudes to the right) A good idea is to find some algorithm for the peaks detection and elimination. Until now we had seen only two solutions: the Wiener filter 2 and the spectrum domain peak elimination using a mask created by the thresholding of the spectrum amplitude 3,4. The Wiener filter is good in general, but to apply this filter, a proper and precise noise model must be built, which is a complicate task. Furthermore, the Wiener filter is computationally slow. The second approach, which is reduced to the spectrum amplitude thresholding, can t be considered as an optimal solution. This approach is suitable only for the

truly periodic noise, which implies high peaks in the image spectrum amplitude, while quasi-periodic noise doesn t give the strong peaks that can be detected using the thresholding. This way the target of our work is to develop a different method. We are trying to present here more or less general solution, which will cover both periodic and quasi-periodic noise filtering. The proposed algorithm consists of the periodic and quasiperiodic noise frequency domain automatic detection and further elimination. A very strong criterion for the automatic detection even of the small peaks in the spectrum amplitude will be developed. After the peaks detection the median filter will be used for their elimination. To present a way, in which we came to the results, the preliminary research will be also presented. The preliminary work was concentrated on the development of the masked mean frequency domain filter. This filter is based on the comparison of the analyzed spectral coefficient s amplitude to the mean value of the selected pixels within a local window around the analyzed pixel. This approach to the peaks detection shows very good results for the periodic noise. At the same time it is not so good for the quasi-periodic noise. To find a solution, which will be good for the quasiperiodic noise, we changed the criterion for the peaks detection: the comparison of the spectral coefficient s amplitude to the mean value of the selected pixels within a local window has been replaced by the comparison to the median taken from this window. 2. MASKED SPECTRAL MEAN FILTER The idea behind this filter is to analyze the image spectrum amplitude using a scanning window of a size NxN. To choose the elements within the window for the comparison, a mask is defined. This mask can be defined as a binary matrix of a dimension NxN. The choice of the elements is organized in the following way. A local window has to be covered by the mask. If the element of the mask corresponding to the spectrum amplitude value in the local window equals to 1 then this value is included in the local mean calculation. The central element of the window, which is the amplitude of the spectral coefficient to be analyzed and filtered (the central coefficient within the window), must be excluded from the local mean calculation. It means that the corresponding element of the mask must be equal to zero. I.e.: m00... m0, N 1.. M. 0. ; m = {0,1}, m = 0; = N 1 N 1, 2 2. mn N 2 1,0 N 2 N N i= j= m... k + i, l+ j m. N 1, N 1 2 2 S = T where M is the mask, is a spectrum amplitude, T is a number of nonzero elements in M, S is a mean in a local NxN window around the (k,l) th spectral coefficient. The filtering criterion is the following: > Θ, (2) S where Θ is some threshold. The value of Θ may be evaluated from the analysis of the spectra corresponding to the clean, not noisy images. Simple estimation shows that the following condition holds for the spectra without the peaks implied by the periodic noise: < 5 (for the window of 3x3 dimensions). This is true for the Fourier, Cosine and Walsh spectra. It S means that it is a good idea to choose Θ > 4 in (2). If the condition (2) holds, the value of the spectrum amplitude is considered as a peak. This peak has to be eliminated. To implement this elimination, the following procedure is proposed: (1)

(a) The input image corrupted by the rectangular periodic noise (grid) (b) Image (a) filtered by (2)-(3): the image is completely cleaned from grid. (c) The input image corrupted by the diagonal periodic noise (d) Image (c) filtered by (2)-(3), the stripes are removed (e) The input image corrupted by the dark and bright stripes (f) Image (e) filtered by (2)-(3), the stripes are reduced and became almost invisible Fig.2. Examples of the Masked Spectral Mean Filter application

ˆ =, δ (3) where δ is a normalizing divider. A choice of δ has to lead to the elimination of the peak, but not to the situation, when δ 0. Otherwise we will replace one peak by another one. It will be clear from the results shown below that this filter gives the excellent results for the periodic noise, which makes very sharp peaks in the image spectrum amplitude, while for the quasi-periodic noise it is impossible to achieve the good results. Sometimes this filter is also a bit sophisticated from the point of view of parameters selection, especially the selection of δ in (3). Figure 2 shows the filtering results. The Fourier transform has been used in all examples. The following parameters have been used in (1) - (3): 1 1 1 M = 1 0 1, Θ =5, δ =50. 1 1 1 3. SPECTRAL MEDIAN FILTER This filter, just as the previous one, operates on the image spectrum. It is closely related to the spatial domain median filter 1. It uses the same technique, the only difference is that it operates on the image spectrum amplitude and checks whether the spectral coefficient requires correction before doing any filtering. The spectrum amplitude is being filtered using a moving window of mxn dimensions. Every spectral coefficient s amplitude is being checked to the value of the local window s median and decided upon whether to filter it or not. To be more precise, the current coefficient s amplitude to a local median ratio is what we need. Every peak in the spectrum amplitude corresponding to the quasi-periodic noise is strongly higher than the neighboring amplitude values only in the rare cases. This case is presented in Fig. 5, where a pure periodic noise and its Fourier spectrum amplitude are shown. The sharp peaks are clearly visible. But usually peak looks like a hill surrounded by the smaller hills. In this case the median filtering with a small window (3x3) will have almost no effect. This is the property of the median filter applied to the signal with the mentioned property 1. Thus it is a good idea to choose a larger window, beginning from 5x5. The filter itself can be represented by the following formula: ˆ MED( = mxn ), if MED( mxn Θ ), otherwise and not j = i = 0 (4) where is the image spectrum amplitude, ˆ is the resulting amplitude after the filtering, (i,j) coordinates of the coefficient being filtered, MED ) - median in the local mxn window around the coefficient being filtered, Θ is the mxn ( threshold. Evidently, according to the eq. (4) the filter is not applied to the correction of the spectral coefficient (because it represents only the mean brightness of the image, and it is a peak that has be left alone). As it was already mentioned, a ratio mxn MED ( ) 00 for the image without any periodic structures is quite stable. For example, for a 5x5 window and the Fourier spectrum amplitude it is usually less than 3, for a 11x11window it s about 6, but there can be exceptions. So it is always a wise decision to try different thresholds. A window choice is heavily bound to the size of the peak. It means that to eliminate the peak, the window must be larger than a hill area around the peak. For example, let us consider the image in Fig. 5a. It Fourier spectrum amplitude is shown in Fig. 5c. One can notice that the contaminated points are positioned on spectrum s diagonal and every point represents about 1-4 spectral coefficients, thus it is a good idea to use a 5x5 window. In this case every peak will be completely covered by the window. At the same time for the spectrum amplitude (Fig. 6c) of the image presented in Fig. 6a a larger window is needed because the corresponding

peaks are fuzzy. This follows from the character of the noise. To take a closer look on the application of the spectral median filter and its potential opportunities, consider examples in Fig.3-6. 4. CONCLUSIONS AND FUTURE WORK A problem of the periodic and quasi-periodic noise filtering has been considered in this paper. This kind of noise implies the appearance of the peaks in image spectrum amplitude. So the noise reduction is reduced to elimination of these peaks. The existing techniques of Wiener filtering and elimination of the peaks using binary mask are not good enough. The Wiener filter is powerful and effective, but it is too complicate from the computing point of view. The masking of the spectrum amplitude strongly depends on choice of the threshold parameters and it is effective just for the pure periodic noise with a relatively long period. So our target was to develop a new effective filer with a semi-automatic detector of the peaks in the spectrum amplitude. Another requirement, which was important for us, is a computing simplicity, for example in comparison to the Wiener filter. It was succeeded to achieve the good results, which satisfy the mentioned requirements. The spectral mean filter has been developed on the preliminary stage of the work. This filter detects the peaks in the spectrum amplitude comparing a ratio between the current amplitude value and the mean value of the selected pixels within a 3x3 window to the threshold parameter. The detected peaks are replaced by the corresponding means. This approach has shown the good results for the pure periodic noise removal. To reduce the quasi-periodic noise, the spectral median filter has been developed. It is quite fast form the computing point of view. It allows achieving very good results for the periodic and quasi-periodic noise filtering. The filter removes peaks from the image spectrum, replacing them by the median taken from a local window around the analyzed spectrum amplitude value. The further work will be directed to the improvement of the developed solution. Since we use the spectral transforms whose coefficients are ordered according to the frequencies, there is still one problem. It is known that median filter preserves the edges 1 of the filtered image. It also preserves the edges of the filtered image spectrum amplitude. It means that the hill in the spectrum corresponding to the image corrupted by the complicate quasi-periodic structure that has a wide base will be preserved in general after the filtering. Only disturbances in this hill will be eliminated using the proposed technique, not the hill itself. At the same time our intension is to remove this hill. The coefficients of the image spectra (i.e. Fourier, Cosine, Walsh with Walsh ordering) descend with the growth of frequency, in general. Thus any different behavior of the spectrum (which usually is represented by the large hills) must be eliminated and put into some allowed limits. This is the main subject of the future work that is to be done.

(a) The input image corrupted by the quasi-periodic structure (b) Image (a), filtered by (4) with a 5x5 window and Θ =3. Most of the periodic structure is removed, but one can notice a new structure - dark fuzzy stripe over the image. (c) Image (a), filtered by (4) with a 11x11window and Θ =6. A 11x11 window gives much better results than a 5x5 window. We tried different windows and thresholds and we had to seek the compromise between the removal of the input noise and adding the new one. In the case of 11x11 window, no new periodic structure appears (d) The enhanced difference between (a) and (c) Fig. 3. Testing image Clock corrupted by the quasi-periodic structure: filtering using the spectral median filter

(a) The input image corrupted by the rectangular periodic noise (b) Image (a), filtered by (4) with a 5x5 window and Θ =3. The truly periodic noise is completely removed leaving no trail. (c) The input image corrupted by the quasi-periodic noise (d) Image (c), filtered by (4) with a 5x5 window and Θ =3. The noise is almost gone again. Fig.4. Testing image Lena corrupted by the rectangular periodic and quasi-periodic structures: filtering using the spectral median filter

(a) The input image corrupted by the diagonal periodic noise (b) Image (a), filtered by (4) with a 5x5 window and Θ =3. The diagonal periodic noise is completely removed. (c) The Fourier Spectrum amplitude of the image (a) (d) The Fourier Spectrum amplitude of the image (b) after the filtering Fig.5. Testing image Lena corrupted by the diagonal periodic structure: filtering using the spectral median filter

(a) The input image corrupted by the quasi-periodic noise (b) Image (a), filtered by (4) with a 11x11 window and Θ =6. Most of the periodic structure is removed. (c) The Fourier Spectrum amplitude of the image (a) (d) The Fourier Spectrum amplitude of the image (b) after the filtering Fig. 6. Testing image Clown corrupted by the quasi-periodic noise: filtering using the spectral median filter

ACKNOWLEDGEMENTS This work is completely supported by the company Neural Networks Technologies Ltd. (Israel). REFERENCES 1. J.Astola, and P.Kuosmanen Fundamentals of non-linear digital filtering. CRC Press, Boca Raton, N.Y., 1997. 2. L.Yaroslavsky and M.Eden Fundamentals of Digital Optics, Birkhauser, Boston, 1996. 3. R.Arthur and Jr.Weeks Fundamentals of Electronic Image Processing, IEEE Press, 1996. 4. Y. Shimada, Y. Nishimura, T. Usagawa, M. Ebata, Active control for periodic noise with variable fundamental An extended DHS algorithm with frequency tracking ability, Journal of Acoustical Science and Technology, Journal of the Acoustical Society of Japan, Vol.20, No.4, 1999