Recursive Median Filtering with Partial Replaces

Total Page:16

File Type:pdf, Size:1020Kb

Recursive Median Filtering with Partial Replaces RECURSIVE MEDIAN FILTERING WITH PARTIAL REPLACES Adrian Burian and Pauli Kuosmanen Signal Processing Laboratory, Digital Media Institute Tampere University of Technology PO Box 553, FIN-33101, Tampere, Finland E-mail: burian, pqo @cs.tut.® ABSTRACT To be able to ®lter the outmost input sample, when parts of the ®lter's window fall outsidethe input signal, the input sig- The median ®lter is a special case of nonlinear ®lter used for nal is appended to the required size by replicating the out- smoothing signals. Since the output of the median ®lter is most input sample as many times as needed. This is the non- always one of the input samples, it is conceivable that cer- recursive median ®lter. If the point X(n) is replaced with the tain signals could pass through the median ®lter unaltered. output of the median ®lter before shifting the window to the These signals, invariant to further passes of the median ®l- next position, we obtain the recursive median ®lter. The out- ter, de®ne the signature of a ®lter and are referred to as root put of the recursive ®lter is given by: signals. This represents the convergence property of median ®lters. The convergence behavior of different schemes of re- n= [Y n k ; :::; Y n 1;Xn; :::; X n + k ]: Y med cursive median ®lters, and algorithms for image processing (2) using these ®lters will be studied. Recursive median ®lters use also previously ®ltered val- ues as their inputs. In this case the ®ltering operation is per- 1. INTRODUCTION formed 'in-place', so that the output of the ®lter replaces the Since Tuckey suggested thestandard median ®lter for smooth- old input value, before the ®lter window is moved to the next ing statistical time series [1], this concept has been widely position. With the same amount of operations recursive ®l- studied. By repeating the median ®ltering, the root signal, ters can usually providebetter smoothingcapability than non- which is invariant to further ®ltering, is found. The exis- recursive ®lters, at the expense of increased distortion. Re- tence of root signals is a fundamental property of median ®l- cursive median ®lters have stronger noise attenuation capa- ter, used in characterizing these nonlinear ®lters. bilities than their nonrecursive version, and a faster conver- Frequency analysis and impulse response have no mean- gence. In [6] simple proofs of the convergence properties ing in median and recursive median ®ltering: the impulse re- of median ®lters and the idempotent property (reduction to sponse of a recursive median ®lter is zero. As a result, new a root after one pass) of recursive median ®lters are given. tools had to be developed to analyze and characterize the be- An upper bound of the number of ®lter passes for median L 2=2 havior of these nonlinear ®lters, deterministically and statis- ®ltering a ®nite length signal to a root is ,whereL tically [2], [3], [4]. By associating the nonlinear operation of is the length of the input sequence. This bound is indepen- median ®ltering with a linear cost function, in [5] was shown dent of the window width of the ®lter. A more tight bound L 2=[2k + 2] N =2k +1 that median ®ltering is an optimization process in which a is 3 ,where is the ®lter's two-term cost function is minimized. window width. To compute the outputof a 1-D median ®lter, an odd num- For image processing applications, two-dimensionalme- ber of sample values are ranked, and the median value is used dian ®lters have been used with success. In [7] a new ap- proach for designing the recursive median ®lter for image = as the ®lter output. If the ®lter's window length is N processing applications was introduced. The original sig- k +1 2 , the ®ltering procedure is given by: nal replaces the output of the previous pass in the middle of the operation window. The convergence of this improved n= [X n k ; :::; X n; :::;Xn + k ]; Y med (1) recursive median ®lter within a ®nite number of iterations was proven. This new scheme of recursive median ®lter pro- where X(n) and Y(n) are the input and the output sequences, vides an improved MSE performance over the standard re- respectively. It is reasonable to assume that the signal is of cursive median ®lter. In this paper we further investigate the 0 X L 1 ®nite length, consisting of samples from X to . possibility of using partial replaces of the old input value at the ®lter's output, before moving the window to the next po- 3. THRESHOLD DECOMPOSITION sition. We show that even better MSE performances could be attained by different recursive median ®ltering schemes. In [9] a powerful tool called threshold decomposition for an- Proofs of the convergence of these recursive median ®ltering alyzing rank order based ®lters was introduced. Using this schemes are also given. technique, the analysis of these ®lters is reduced to studying their effects on binary signals. The importance of the thresh- old decomposition arises from the fact that binary signalsare 2. CENTER WEIGHTED MEDIAN FILTERS much easier to analyze than multi-valued signals. X ng Threshold decomposition of a signal vector f M- An immediate generalization of the median ®lter and a ma- X i < valued, where the samples are integer-valued, 0 jor subclass of stack ®lters are the weighted median (WM) ;0 i< L M means decomposing it into M-1 binary sig- 2 M 1 ®lters [6], [8]. The standard median ®lter has a better noise 1 n;X n; :::; X n nal vectors X , according to the attenuation than any WM ®lter, regardless of the noise dis- following rule: tribution. But, in order to preserve small details, WM ®lters 1 X n m m can be the solution. m if = T X n = X (6) 0 =2k +1 The output of the WM ®lter of window size N otherwise. w ; :::w k k associated with the integer weights is given by: This thresholding scheme can be applied to any signal that is quantized to a ®nite number of arbitrary signals. The Y n= [w X n k ; ; k med originalmulti-valuedsignal samples X(n) can be reconstruc- w X 0; ;w X n + k ]; k 0 (3) ted from the threshold levels by adding them: M 1 where the symbol is used to denote duplication, i.e., X m n= X n: X (7) nx = x; ;x: =1 (4) m | {z } n times Applying a recursive median ®lter to an M-valued sig- nal is equivalent to decomposition the signal to M-1 binary Center weighted median (CWM) ®lters are a subclass of threshold signals, ®ltering each binary signal separately with WM ®lters which combines the simplicity of median ®lters the corresponding binary recursive median ®lter, and then with some of the design freedom of WM ®lters. For these ®l- reversing the decomposition. ters only the center sample in the window has a weight larger m g f X n g The binary sequence f0, 1 of is transferred m than one. All other weights are equal to one. The CWM m g f Z n g Z n= into f-1, 1 binary sequence of by ®lters are the simplest WM ®lters and the easiest to be de- m X n 1 2 . For the recursive median ®ltering of a binary signed and implemented. A CWM ®lter of window width m Z ng sequence f , the output of the ®lter is given by: =2k +1 N is de®ned as: +1 S n 0 m if p n= O (8) n = [X n k ; ;pX n; ;Xn + k ]: Y med 1 otherwise, (5) where k + p After the center is weighted, the ®lter is effectively 2 N X p =2m 1 long, with smaller than or equal to k (otherwise m Z n + j : n= S (9) the ®lter would be reduced to the identity ®lter). Different j =N p = m = values of p produce different CWM ®lters. When 1 the median ®lter is obtained, which has the convergence 4. DIFFERENT RECURSIVE MEDIAN FILTERING = k k>1 property. When m , it has been shown that when , SCHEMES the resulting 1-D ®lter is idempotent. A CWM ®lter is completely speci®ed by two parame- It is known that in the case of 2-D signals the recursive me- ters: the window size and the center weight. In general, the dian ®lters are not necessarily idempotent [3]. Thus, in order longer the window size of a CWM ®lter, the better noise at- to ®nd the root signal, it is necessary to apply the recursive tenuation ability the ®lter has. CWM ®lter can be designed median ®lter iteratively. For the recursive median ®lter, at to possess good noise attenuation and preserve small details. each iteration for every point of the image we have to com- In contrast to recursive median ®lters, which are idem- pute the output of the ®lter: potent, the recursive WM ®lters usually are not. All the re- m m m m O [O n= n k ; :::O n; :::; O n + k ]; cursive CWM ®lters corresponding to a WM ®lter make an med t t1 t1 t1 arbitrary input signal to converge to a root signal. (10) j 2 2k where the subscript t represents the iteration index. The re- Notice that cannot take values greater than ;other- 2=1 cursive median ®ltering is a sequential process and the noise wise, the recursive process became meaningless. If j in¯uence at his output will be accumulated. To alleviate such the only replacement takes place in the middle of the win- an undesirable effect it may be useful to encourage the ®lter dow of the ®lter.
Recommended publications
  • Linearisation of Analogue to Digital and Digital to Analogue Converters Can Be Achieved by Threshold Tracking
    LINEARISATION OF ANALOGUE TO DIGITAL AND DIGITAL TO ANALOGUE CONVERTERS ALAN CHRISTOPHER DENT, B.Sc, AMIEE, MIEEE A thesis submitted for the degree of Doctor of Philosophy, to the Faculty of Science, at the University of Edinburgh, May 1990. 7. DECLARATION OF ORIGINALITY I hereby declare that this thesis and the work reported herein was composed and originated entirely by myself in the Department of Electrical Engineering, at the University of Edinburgh, between October 1986 and May 1990. Iffl ABSTRACT Monolithic high resolution Analogue to Digital and Digital to Analogue Converters (ADC's and DAC's), cannot currently be manufactured with as much accuracy as is desirable, due to the limitations of the various fabrication technologies. The tolerance errors introduced in this way cause the converter transfer functions to be nonlinear. This nonlinearity can be quantified in static tests measuring integral nonlinearity (INL) and differential nonlinearity (DNL). In the dynamic testing of the converters, the transfer function nonlinearity is manifested as harmonic distortion, and intermodulation products. In general, regardless of the conversion technique being used, the effects of the transfer function nonlinearities get worse as converter resolution and speed increase. The result is that these nonlinearities can cause severe problems for the system designer who needs to accurately convert an input signal. A review is made of the performance of modern converters, and the existing methods of eliminating the nonlinearity, and of some of the schemes which have been proposed more recently. A new method is presented whereby code density testing techniques are exploited so that a sufficiently detailed characterisation of the converter can be made.
    [Show full text]
  • Active Non-Linear Filter Design Utilizing Parameter Plane Analysis Techniques
    1 ACTIVE NONLINEAR FILTER DESIGN UTILIZING PARAMETER PLANE ANALYSIS TECHNIQUES by Wi 1 ?am August Tate It a? .1 L4 ULUfl United States Naval Postgraduate School ACTIVE NONLINEAR FILTER DESIGN UTILIZING PARAMETER PLANE ANALYSIS TECHNIQUES by William August Tate December 1970 ThU document ka6 bzzn appnjovtd ^oh. pubtic. K.Z.- tza&c and 6 ate; Ltb dUtAtbuutlon -U untunitzd. 13781 ILU I I . Active Nonlinear Filter Design Utilizing Parameter Plane Analysis Techniques by William August Tate Lieutenant, United States Navy B.S., Leland Stanford Junior University, 1963 Submitted in partial fulfillment of the requirement for the degrees of ELECTRICAL ENGINEER and MASTER OF SCIENCE IN ELECTRICAL ENGINEERING from the NAVAL POSTGRADUATE SCHOOL December 1970 . SCHOSf NAVAL*POSTGSi&UATE MOMTEREY, CALIF. 93940 ABSTRACT A technique for designing nonlinear active networks having a specified frequency response is presented. The technique, which can be applied to monolithic/hybrid integrated-circuit devices, utilizes the parameter plane method to obtain a graphical solution for the frequency response specification in terms of a frequency-dependent resistance. A limitation to this design technique is that the nonlinear parameter must be a slowly-varying quantity - the quasi-frozen assumption. This limitation manifests itself in the inability of the nonlinear networks to filter a complex signal according to the frequency response specification. Within the constraints of this limitation, excellent correlation is attained between the specification and measurements of the frequency response of physical networks Nonlinear devices, with emphasis on voltage-controlled nonlinear FET resistances and nonlinear device frequency controllers, are realized physically and investigated. Three active linear filters, modified with the nonlinear parameter frequency are constructed, and comparisons made to the required specification.
    [Show full text]
  • A Convolutional Neural Networks Denoising Approach for Salt and Pepper Noise
    A Convolutional Neural Networks Denoising Approach for Salt and Pepper Noise Bo Fu, Xiao-Yang Zhao, Yi Li, Xiang-Hai Wang and Yong-Gong Ren School of Computer and Information Technology, Liaoning Normal University, China [email protected] Abstract. The salt and pepper noise, especially the one with extremely high percentage of impulses, brings a significant challenge to image denoising. In this paper, we propose a non-local switching filter convolutional neural network denoising algorithm, named NLSF-CNN, for salt and pepper noise. As its name suggested, our NLSF-CNN consists of two steps, i.e., a NLSF processing step and a CNN training step. First, we develop a NLSF pre-processing step for noisy images using non-local information. Then, the pre-processed images are divided into patches and used for CNN training, leading to a CNN denoising model for future noisy images. We conduct a number of experiments to evaluate the effectiveness of NLSF-CNN. Experimental results show that NLSF-CNN outperforms the state-of-the-art denoising algorithms with a few training images. Keywords: Image denoising, Salt and pepper noise, Convolutional neural networks, Non-local switching filter. 1 Introduction Images are always polluted by noise during image acquisition and transmission, resulting in low-quality images. The removal of such noise is a must before subsequent image analysis tasks. To achieve this, researchers have proposed many denoising algorithms [1-7], where the representative ones include non-local means (NLM) [1] and block-matching 3D filtering (BM3D) [2].In this paper, we focus on the salt and pepper noise, where pixels exhibit maximal or minimal values with some pre-defined probability.
    [Show full text]
  • 22Nd International Congress on Acoustics ICA 2016
    Page intentionaly left blank 22nd International Congress on Acoustics ICA 2016 PROCEEDINGS Editors: Federico Miyara Ernesto Accolti Vivian Pasch Nilda Vechiatti X Congreso Iberoamericano de Acústica XIV Congreso Argentino de Acústica XXVI Encontro da Sociedade Brasileira de Acústica 22nd International Congress on Acoustics ICA 2016 : Proceedings / Federico Miyara ... [et al.] ; compilado por Federico Miyara ; Ernesto Accolti. - 1a ed . - Gonnet : Asociación de Acústicos Argentinos, 2016. Libro digital, PDF Archivo Digital: descarga y online ISBN 978-987-24713-6-1 1. Acústica. 2. Acústica Arquitectónica. 3. Electroacústica. I. Miyara, Federico II. Miyara, Federico, comp. III. Accolti, Ernesto, comp. CDD 690.22 ISBN 978-987-24713-6-1 © Asociación de Acústicos Argentinos Hecho el depósito que marca la ley 11.723 Disclaimer: The material, information, results, opinions, and/or views in this publication, as well as the claim for authorship and originality, are the sole responsibility of the respective author(s) of each paper, not the International Commission for Acoustics, the Federación Iberoamaricana de Acústica, the Asociación de Acústicos Argentinos or any of their employees, members, authorities, or editors. Except for the cases in which it is expressly stated, the papers have not been subject to peer review. The editors have attempted to accomplish a uniform presentation for all papers and the authors have been given the opportunity to correct detected formatting non-compliances Hecho en Argentina Made in Argentina Asociación de Acústicos Argentinos, AdAA Camino Centenario y 5006, Gonnet, Buenos Aires, Argentina http://www.adaa.org.ar Proceedings of the 22th International Congress on Acoustics ICA 2016 5-9 September 2016 Catholic University of Argentina, Buenos Aires, Argentina ICA 2016 has been organised by the Ibero-american Federation of Acoustics (FIA) and the Argentinian Acousticians Association (AdAA) on behalf of the International Commission for Acoustics.
    [Show full text]
  • Analysis of the Entropy-Guided Switching Trimmed Mean Deviation-Based Anisotropic Diffusion Filter
    Analysis of the Entropy-guided Switching Trimmed Mean Deviation-based Anisotropic Diffusion filter U. A. Nnolim Department of Electronic Engineering, University of Nigeria Nsukka, Enugu, Nigeria Abstract This report describes the experimental analysis of a proposed switching filter-anisotropic diffusion hybrid for the filtering of the fixed value (salt and pepper) impulse noise (FVIN). The filter works well at both low and high noise densities though it was specifically designed for high noise density levels. The filter combines the switching mechanism of decision-based filters and the partial differential equation-based formulation to yield a powerful system capable of recovering the image signals at very high noise levels. Experimental results indicate that the filter surpasses other filters, especially at very high noise levels. Additionally, its adaptive nature ensures that the performance is guided by the metrics obtained from the noisy input image. The filter algorithm is of both global and local nature, where the former is chosen to reduce computation time and complexity, while the latter is used for best results. 1. Introduction Filtering is an imperative and unavoidable process, due to the need for sending or retrieving signals, which are usually corrupted by noise intrinsic to the transmission or reception device or medium. Filtering enables the separation of required and unwanted signals, (which are classified as noise). As a result, filtering is the mainstay of both analog and digital signal and image processing with convolution as the engine of linear filtering processes involving deterministic signals [1] [2]. For nonlinear processes involving non-deterministic signals, order statistics are employed to extract meaningful information [2] [3].
    [Show full text]
  • Total Variation Denoising for Optical Coherence Tomography
    Total Variation Denoising for Optical Coherence Tomography Michael Shamouilian, Ivan Selesnick Department of Electrical and Computer Engineering, Tandon School of Engineering, New York University, New York, New York, USA fmike.sha, [email protected] Abstract—This paper introduces a new method of combining total variation denoising (TVD) and median filtering to reduce noise in optical coherence tomography (OCT) image volumes. Both noise from image acquisition and digital processing severely degrade the quality of the OCT volumes. The OCT volume consists of the anatomical structures of interest and speckle noise. For denoising purposes we model speckle noise as a combination of additive white Gaussian noise (AWGN) and sparse salt and pepper noise. The proposed method recovers the anatomical structures of interest by using a Median filter to remove the sparse salt and pepper noise and by using TVD to remove the AWGN while preserving the edges in the image. The proposed method reduces noise without much loss in structural detail. When compared to other leading methods, our method produces similar results significantly faster. Index Terms—Total Variation Denoising, Median Filtering, Optical Coherence Tomography I. INTRODUCTION Fig. 1. 2D slices of a sample retinal OCT volume. Optical Coherence Tomography (OCT), a non-invasive in vivo imaging technique, provides images of internal tissue mi- crostructures of the eye [1]. OCT imaging works by directing light beams at a target tissue and then capturing and processing the backscattered light [2]. To create a 3D volume image of the eye, the OCT device scans the eye laterally [2]. However, current OCT imaging techniques inherently introduce speckle noise [3].
    [Show full text]
  • Transportation Noise and Annoyance Related to Road
    Méline et al. International Journal of Health Geographics 2013, 12:44 INTERNATIONAL JOURNAL http://www.ij-healthgeographics.com/content/12/1/44 OF HEALTH GEOGRAPHICS RESEARCH Open Access Transportation noise and annoyance related to road traffic in the French RECORD study Julie Méline1,2*, Andraea Van Hulst3,4, Frédérique Thomas5, Noëlla Karusisi1,2 and Basile Chaix1,2 Abstract Road traffic and related noise is a major source of annoyance and impairment to health in urban areas. Many areas exposed to road traffic noise are also exposed to rail and air traffic noise. The resulting annoyance may depend on individual/neighborhood socio-demographic factors. Nevertheless, few studies have taken into account the confounding or modifying factors in the relationship between transportation noise and annoyance due to road traffic. In this study, we address these issues by combining Geographic Information Systems and epidemiologic methods. Street network buffers with a radius of 500 m were defined around the place of residence of the 7290 participants of the RECORD Cohort in Ile-de-France. Estimated outdoor traffic noise levels (road, rail, and air separately) were assessed at each place of residence and in each of these buffers. Higher levels of exposure to noise were documented in low educated neighborhoods. Multilevel logistic regression models documented positive associations between road traffic noise and annoyance due to road traffic, after adjusting for individual/ neighborhood socioeconomic conditions. There was no evidence that the association was of different magnitude when noise was measured at the place of residence or in the residential neighborhood. However, the strength of the association between neighborhood noise exposure and annoyance increased when considering a higher percentile in the distribution of noise in each neighborhood.
    [Show full text]
  • Chapter 3 FILTERS
    Chapter 3 FILTERS Most images are a®ected to some extent by noise, that is unexplained variation in data: disturbances in image intensity which are either uninterpretable or not of interest. Image analysis is often simpli¯ed if this noise can be ¯ltered out. In an analogous way ¯lters are used in chemistry to free liquids from suspended impurities by passing them through a layer of sand or charcoal. Engineers working in signal processing have extended the meaning of the term ¯lter to include operations which accentuate features of interest in data. Employing this broader de¯nition, image ¯lters may be used to emphasise edges | that is, boundaries between objects or parts of objects in images. Filters provide an aid to visual interpretation of images, and can also be used as a precursor to further digital processing, such as segmentation (chapter 4). Most of the methods considered in chapter 2 operated on each pixel separately. Filters change a pixel's value taking into account the values of neighbouring pixels too. They may either be applied directly to recorded images, such as those in chapter 1, or after transformation of pixel values as discussed in chapter 2. To take a simple example, Figs 3.1(b){(d) show the results of applying three ¯lters to the cashmere ¯bres image, which has been redisplayed in Fig 3.1(a). ² Fig 3.1(b) is a display of the output from a 5 £ 5 moving average ¯lter. Each pixel has been replaced by the average of pixel values in a 5 £ 5 square, or window centred on that pixel.
    [Show full text]
  • A Spatial Median Filter for Noise Removal in Digital Images
    A Spatial Median Filter for Noise Removal in Digital Images James Church, Dr. Yixin Chen, and Dr. Stephen Rice Computer Science and Information System, University of Mississippi [email protected],{ychen,rice}@cs.olemiss.edu Abstract Each of the algorithms coveredcan be applied to one di- mensional as well as two dimensional signals. Figure 1 In this paper, six different image filtering algorithms are demonstrates five common filtering algorithms applied compared based on their ability to reconstruct noise- to an original image. affected images. The purpose of these algorithms is to remove noise from a signal that might occur through the transmission of an image. A new algorithm, the Spatial Median Filter, is introduced and compared with the cur- rent image smoothing techniques. Experimental results demonstrate that the proposed algorithm is comparable (a) (b) (c) to popular image smoothing algorithms. In addition, a modification to this algorithm is introduced to achieve more accurate reconstructions over other popular tech- niques. (d) (e) (f) Figure 1. Examples of common filtering ap- 1. Smoothing Algorithms proaches. (a) Original Image (b) Mean Filtering (c) Median Filtering (d) Root signal of Median The inexpensiveness and simplicity of point-and- Filtering (e) Component-wise Median Filtering shoot cameras, combined with the speed at which bud- (f) Vector Median Filtering ding photographerscan send their photos over the Inter- net to be viewed by the world, makes digital photogra- The simplest of smoothing algorithms is the Mean phy a popular hobby. With each snap of a digital pho- Filter as defined in (1). The Mean Filter is a linear filter tograph, a signal is transmitted from a photon sensor which uses a mask over each pixel in the signal.
    [Show full text]
  • 2007 Registration Document
    2007 REGISTRATION DOCUMENT (www.renault.com) REGISTRATION DOCUMENT REGISTRATION 2007 Photos cre dits: cover: Thomas Von Salomon - p. 3 : R. Kalvar - p. 4, 8, 22, 30 : BLM Studio, S. de Bourgies S. BLM Studio, 30 : 22, 8, 4, Kalvar - p. R. 3 : Salomon - p. Von Thomas cover: dits: Photos cre 2007 REGISTRATION DOCUMENT INCLUDING THE MANAGEMENT REPORT APPROVED BY THE BOARD OF DIRECTORS ON FEBRUARY 12, 2008 This Registration Document is on line on the website www .renault.com (French and English versions) and on the AMF website www .amf- france.org (French version only). TABLE OF CONTENTS 0 1 05 RENAULT AND THE GROUP 5 RENAULT AND ITS SHAREHOLDERS 157 1.1 Presentation of Renault and the Group 6 5.1 General information 158 1.2 Risk factors 24 5.2 General information about Renault’s share capital 160 1.3 The Renault-Nissan Alliance 25 5.3 Market for Renault shares 163 5.4 Investor relations policy 167 02 MANAGEMENT REPORT 43 06 2.1 Earnings report 44 MIXED GENERAL MEETING 2.2 Research and development 62 OF APRIL 29, 2008: PRESENTATION 2.3 Risk management 66 OF THE RESOLUTIONS 171 The Board first of all proposes the adoption of eleven resolutions by the Ordinary General Meeting 172 Next, six resolutions are within the powers of 03 the Extraordinary General Meeting 174 SUSTAINABLE DEVELOPMENT 79 Finally, the Board proposes the adoption of two resolutions by the Ordinary General Meeting 176 3.1 Employee-relations performance 80 3.2 Environmental performance 94 3.3 Social performance 109 3.4 Table of objectives (employee relations, environmental
    [Show full text]
  • Computational Photography Filtering: Smoothing Objectives Example
    Filtering: Smoothing • Point-process and Neighboring Pixels Computations on an Image for Image Smoothing Computational Photography CS 4475/6475 Maria Hybinette 1 Maria Hybinette 2 Maria Hybinette Objectives From Pixel/Point Operations to Groups of Pixels • Smooth an image while considering a neighborhood n of pixels – Average filtering (use the average of n) – Median filtering (use the median of n) • special non-linear filtering and smoothing • Previously we used pixel to pixel arithmetic (e.g., add(), sub())) approach • How to Smooth a Signal? • Approach: Use a group of pixels : Neighboring Values of a neighborhood. 1. Moving Average [1 1 1 1 1] X 1/5 2. Weighted Moving Average [1 4 6 4 1] X 1/16 3 Maria Hybinette 4 Maria Hybinette Example: 3x3 Kernel Example: 3x3 Kernel • Smoothing Process over an Image using Averages • 1*90/9=10, 2*90/9=20, …. 5 Maria Hybinette 6 Maria Hybinette Results in Shades of Gray • What about the edges? 7 Maria Hybinette 8 Maria Hybinette Edges Mathematical Notation, Observations, and Computing the Result Matrix • A Small image ‘h’ is “rubbed” over (larger) image ‘F’ that we are smoothing • Kernel: h – Example: 3x3 area around each original pixel used – Neighborhood size – k=1, window size = 3. – k >1, • Window size is 2k+1 – k=1, 2(1)+1 = 3 – Our kernel is 3x3 – Recall : A pixel is referenced by (i, j) • Expand the image we are smoothing: • Want Result Matrix ‘G’ – Wrap around pixels. (3x3 filter needs one more pixel – F à G using h. on each border, 5x5 needs 2) – G = h (operation) F – 9 Copy edges Maria Hybinette 10 Maria Hybinette Computing the Values ofA Result Mathematical Matrix RepresentationSmoothing when for a- iSmoothing are all 1s.
    [Show full text]
  • Noise Reduction by Vector Median Filtering
    GEOPHYSICS, VOL. 78, NO. 3 (MAY-JUNE 2013); P. V79–V86, 18 FIGS., 1 TABLE. 10.1190/GEO2012-0232.1 Noise reduction by vector median filtering Yike Liu1 1984; Marfurt, 2006), Radon transform (Sacchi and Porsani, 1999; ABSTRACT Sacchi et al., 2004), edge-preserving smoothing (Luo et al., 2002), and scalar median filter (SMF) (Mi and Margrave, 2000). Compared The scalar median filter (SMF) is often used to reduce to other methods, the SMF filtering technique often produces less noise in scalar geophysical data. We present an extension smearing among adjacent samples after noise attenuation. For ex- of the SMF to a vector median filter (VMF) for suppressing ample, the SMF can remove an abnormal impulse from seismic re- noise contained in geophysical data represented by multidi- cords without smearing the impulse into its nearby samples as the mensional, multicomponent vector fields. Although the mean or f-k filters do. The SMF can also be used to separate the up- SMF can be applied to each component of a vector field in- and downgoing wavefields in vertical seismic profile (VSP) data dividually, the VMF is applied to all components simulta- because it often reduces interference between these two wavefields. neously. Like the SMF, the VMF intends to suppress Despite the fact that numerous types of geophysical data are random noise while preserving discontinuities in the vector naturally represented by vector fields, the vector median filter fields. Preserving such discontinuities is essential for ex- (VMF) is seldom employed in data processing. On the other hand, ploration geophysics because discontinuities often manifest SMF is commonly used in exploration geophysics.
    [Show full text]