1 / 36

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

Stochastic Image Denoising using Minimum Mean Squared Error (Wiener) Filtering. ECEN 670 mini-conference Project Brandon Carroll Laith Sahawneh Ecen 670 Class Stochastic Processes. Outline. Introduction Theory: Wiener Filter Derivation Results & Analysis Conclusion. Introduction.

nani
Download Presentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Stochastic Image Denoising using Minimum MeanSquared Error (Wiener) Filtering ECEN 670 mini-conference Project Brandon Carroll LaithSahawneh Ecen 670 Class Stochastic Processes BYU-ECE Department

  2. Outline • Introduction • Theory: Wiener Filter Derivation • Results & Analysis • Conclusion BYU-ECE Department

  3. Introduction Digital Images (Very brief introduction): • A digital image is generally encoded as a matrix of gray-level or color values. • An image may be defined as a two-dimensional function, x[u,v], where u, v are spatial (plane) coordinates. • In the case of color images, x[u,v] is a triplet of values for the red, green, and blue components BYU-ECE Department

  4. Introduction Example: This is how images represented in computer Color Images BYU-ECE Department

  5. Introduction Image Denoising and Restoration: Image denoising is one of the fundamental challenges in the field of image processing. Employed using variety of configurations in a wide variety of applications: namely: Object recognition, photo enhancement, and image restoration. The objective of image restoration is to improve a given image in some predefined sense. Image restoration attempts to reconstruct or recover a degraded image by using a priori knowledge of the degradation phenomenon. BYU-ECE Department

  6. Introduction • The purpose of image restoration is to restore a degraded/distorted image to its original content and quality. • Image restoration assumes a degradation model that is known or can be estimated. Noise n(u, v) y(u, v) Degradation Function h Restoration Filter (Wiener Filter) x(u, v) x(u, v) ∑ Denoising and Restoration Process Degradation Process with additive noise Linear, space-invariant degradation model: Apply the inverse process to recover the original image ?? BYU-ECE Department

  7. Introduction • Point spread function (PSF) : Convolution Kernel – Impulse Response • What h will give us g = f ? Dirac Delta Function (Unit Impulse) BYU-ECE Department

  8. Optical System point spread function point source Introduction • Point spread function (PSF) : Optical System image scene • An ideal optical system that does not degrade the image at all would have a Dirac delta function as its PSF • However, optical systems are never ideal. • The PSF is the response of the system to a Dirac delta function input. BYU-ECE Department

  9. Introduction • Point spread function (PSF) : • The impulse is a point (or pixel) of light • The impulse response is commonly referred to as the PSF • Impulse of Light • Image (degraded) impulse BYU-ECE Department

  10. Introduction • Noise models • Most types of noise are modeled as probability density functions (PDFs) • Noise model is decided based on understanding of the physics of the sources of noise. • Gaussian: poor illumination • Rayleigh: range image • Gamma, exp: laser imaging • Impulse: faulty switch during imaging, • Uniform: quantization. • Parameters can be estimated based on histogram on small flat area of an image. • De-noising • Spatial filtering (Mean filters, Median, Max, Min …) • Frequency domain filtering ( Inverse Filter, Wiener Filter, …) BYU-ECE Department

  11. Introduction • Estimation of noise parameters: • 1. Gaussian Noise • 2. Uniform Noise • 3. Impulse (Salt& Pepper) Noise BYU-ECE Department

  12. Introduction • Estimation of noise parameters: • The parameters of noise in the spatial domain may be known from the sensors specification or a priori-knowledge of noise distribution. • In most cases it is necessary to estimate these parameters to specify the corresponding noise PDF from sample images being denoised. • How to estimate the noise parameters? The common approach is to select a region of interest (ROI) in an image with as featurelessa background as possible, so that the variability of intensity values in the region will be due primarily to noise! { Let zibe a discrete random variable that denotes intensity levels in an image, and p(zi), i = 1, 2, . . .,L - 1 be the corresponding normalized histogram, where, L is the number of possible intensity values. The histogram component p(zi) is an estimate of the probability of occurrence of intensity value zi.} BYU-ECE Department

  13. Introduction • Estimation of noise parameters: 2. Find the histogram of ROI. 3. Normalized histogram of (ROI) which can be viewed as an approximation of the intensity PDF! 4. Describe the shape of noise PDF via its central moments (estimate the mean and variance and then compute a and b variables if needed). BYU-ECE Department

  14. Introduction • Estimation of noise parameters (Example – Our Matlab Code Simulation): Original Image Normalized histogram of ROI Histogram of ROI Image with Gaussian Noise BYU-ECE Department

  15. Introduction Uniform Noise Histogram Impulse Noise Histogram BYU-ECE Department

  16. Wiener Filter • Image Restoration Approaches • Classical approaches • Algebraic approaches • Unconstrained optimization • Inverse filter • Constrained optimization • Weiner filter • The regularization theory BYU-ECE Department

  17. Wiener Filter • Inverse Filter: Noise n(u, v) y(u, v) Degradation Function h Restoration Filter (Wiener Filter) x(u, v) x(u, v) ∑ Denoising and Restoration Process Degradation Process with additive noise BYU-ECE Department

  18. Wiener Filter • Wiener Filter: • Most neighboring pixels are highly correlated, while widely separated pixels are only loosely correlated. • Therefore, the autocorrelation function of typical images generally decreases away from the origin. • Power spectrum = Fourier transform of autocorrelation, therefore the power spectrum of an image generally decreases with frequency. • Typical noise sources have either a flat power spectrum or one that decreases with frequency more slowly than typical image power spectrum. • Therefore, the signal should dominate at low frequencies, while the noise dominates athigh frequencies. BYU-ECE Department

  19. Wiener Filter • Wiener Filter: • Assumptions: The noise and the image are uncorrelated. Either the noise or the image is zero-mean, and that the intensities in the estimate are a linear function of the intensities in the noisy image. It also assumes that the power spectrum of both the noise and the original image are known • Theory (Derivation) • Degradation model BYU-ECE Department

  20. Wiener Filter • The Goal • We wish to find an LTI filter with impulse response g[u, v] that gives us the MMSE estimate of x[u, v]: • The MSE is given by: Parseval’s theorem states: Since they are directly proportional, we can minimize the spatial domain mean squared error by minimizing the frequency domain mean squared error: Using property of the Fourier transform: Substitute in Y then rearrange the terms BYU-ECE Department

  21. Wiener Filter Using the definition of an absolute square, we get: Multiplying out the terms and distributing the expected value across the sums We assume that the noise is independent of the original image and that either the noise or the image is zero-mean: Where the power spectral densities are defined as: BYU-ECE Department

  22. Wiener Filter To find the G that minimizes the MSE, we take the derivative with respect to G(fu,fv): HH* = │H│2 Solving for G* gives: Finally, we write the equation in terms of the signal-to-noise Ratio: BYU-ECE Department

  23. Wiener Filter Wiener Filter Equation: Arranged intuitively: BYU-ECE Department

  24. Results & Analysis Original image 20 pixel motion blur BYU-ECE Department

  25. Results & Analysis Original image 20 pixel motion blur, inverse filtered BYU-ECE Department

  26. Results & Analysis Original image 5 pixel motion blur, imperceptible Gaussian noise BYU-ECE Department

  27. Results & Analysis Original image 5 pixel motion blur, imperceptible Gaussian noise, inverse filtered BYU-ECE Department

  28. Results & Analysis Original image 5 pixel motion blur, imperceptible Gaussian noise, Wiener filtered BYU-ECE Department

  29. Results & Analysis Original image 15 pixel motion blur, Gaussian noise BYU-ECE Department

  30. Results & Analysis 15 pixel motion blur, Gaussian noise 15 pixel motion blur, Gaussian noise, inverse filtered BYU-ECE Department

  31. Results & Analysis 15 pixel motion blur, Gaussian noise 15 pixel motion blur, Gaussian noise, Wiener filtered BYU-ECE Department

  32. Results & Analysis 3 pixel motion blur, salt and pepper noise 3 pixel motion blur, salt and pepper noise, inverse filtered BYU-ECE Department

  33. Results & Analysis 3 pixel motion blur, salt and pepper noise 3 pixel motion blur, salt and pepper noise, Wiener filtered BYU-ECE Department

  34. Results & Analysis Wiener filter using actual noise spectrum Wiener filter using estimated noise spectrum Region of Interest BYU-ECE Department

  35. Conclusions • Inverse filter works well with no noise • Wiener filter performs much better in the presence of noise • Assumes knowledge of degradation function (a common requirement for image restoration algorithms) • Assumes knowledge of the power spectra of the noise and original image (less common, makes it less useful) • The noise power spectrum can be effectively estimated by analyzing the histogram of an ROI in the noisy image • Forms the basis of other more robust restoration approaches BYU-ECE Department

  36. Thank you BYU-ECE Department

More Related