Image Processing Lecture 10

Similar documents
Image Restoration and Reconstruction

Image Restoration and Reconstruction

Image restoration. Restoration: Enhancement:

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

Digital Image Processing

CoE4TN3 Medical Image Processing

UNIT III : IMAGE RESTORATION

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Image Enhancement in Spatial Domain (Chapter 3)

Filtering and Enhancing Images

Chapter 3: Intensity Transformations and Spatial Filtering

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

Introduction to Digital Image Processing

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Point and Spatial Processing

Linear Operations Using Masks

SYDE 575: Introduction to Image Processing

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

IMAGE DE-NOISING IN WAVELET DOMAIN

PSD2B Digital Image Processing. Unit I -V

Image Enhancement: To improve the quality of images

Lecture 3 - Intensity transformation

Basic relations between pixels (Chapter 2)

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

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

CHAPTER 2 ADAPTIVE DECISION BASED MEDIAN FILTER AND ITS VARIATION

EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Digital Image Processing

Lecture 4 Image Enhancement in Spatial Domain

Digital Image Processing

Image Restoration Chapter 5. Prof. Vidya Manian Dept. of Electrical and Computer Engineering INEL 5327 ECE, UPRM

Unit - I Computer vision Fundamentals

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Chapter4 Image Enhancement

Digital Image Processing Chapter 5: Image Restoration

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Digital Image Fundamentals

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers

EE795: Computer Vision and Intelligent Systems

Sampling and Reconstruction

Image Processing. Filtering. Slide 1

High Speed Pipelined Architecture for Adaptive Median Filter

Filtering Images. Contents

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

Intensity Transformation and Spatial Filtering

C2: Medical Image Processing Linwei Wang

Lecture 4: Image Processing

SECTION 5 IMAGE PROCESSING 2

(Refer Slide Time: 0:38)

Image Enhancement in the Frequency Domain Periodicity and the need for Padding:

Computer Vision I - Basics of Image Processing Part 1

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Lecture 4: Spatial Domain Transformations

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

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

Computer Vision and Graphics (ee2031) Digital Image Processing I

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

Implementation of efficient Image Enhancement Factor using Modified Decision Based Unsymmetric Trimmed Median Filter

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Non-Blind Deblurring Using Partial Differential Equation Method

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

Blur Space Iterative De-blurring

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Restoration of Images Corrupted by Mixed Gaussian Impulse Noise with Weighted Encoding

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

Image Restoration. Yao Wang Polytechnic Institute of NYU, Brooklyn, NY 11201

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

f(x,y) is the original image H is the degradation process (or function) n(x,y) represents noise g(x,y) is the obtained degraded image p q

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Digital Image Processing

Hybrid filters for medical image reconstruction

Lecture 2 Image Processing and Filtering

Sparse Component Analysis (SCA) in Random-valued and Salt and Pepper Noise Removal

Islamic University of Gaza Faculty of Engineering Computer Engineering Department

Biomedical Image Analysis. Spatial Filtering

Digital Image Processing

Image Denoising Based on Hybrid Fourier and Neighborhood Wavelet Coefficients Jun Cheng, Songli Lei

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

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

Point operation Spatial operation Transform operation Pseudocoloring

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

An introduction to image enhancement in the spatial domain.

Hom o om o or o phi p c Processing

Basic Algorithms for Digital Image Analysis: a course

CS4733 Class Notes, Computer Vision

Lecture 6: Edge Detection

New feature preserving noise removal algorithm based on thediscrete cosine transform and the a prior knowledge of pixel type.

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

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

Morphological Image Processing

Enhanced Decision Median Filter for Color Video Sequences and Medical Images Corrupted by Impulse Noise

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

Blind Image Deconvolution Technique for Image Restoration using Ant Colony Optimization

ECG782: Multidimensional Digital Signal Processing

Transcription:

Image Restoration Image restoration attempts to reconstruct or recover an image that has been degraded by a degradation phenomenon. Thus, restoration techniques are oriented toward modeling the degradation and applying the inverse process in order to recover the original image. As in image enhancement, the ultimate goal of restoration techniques is to improve an image in some predefined sense. Image restoration vs. image enhancement Image restoration Image enhancement 1. is an objective process is a subjective process 2. formulates a criterion of goodness that will yield an optimal estimate of the desired result 3. Techniques include noise removal and deblurring (removal of image blur) involves heuristic procedures designed to manipulate an image in order to satisfy the human visual system Techniques include contrast stretching Like enhancement techniques, restoration techniques can be performed in the spatial domain and frequency domain. For example, noise removal is applicable using spatial domain filters whereas deblurring is performed using frequency domain filters because image blur are difficult to approach in the spatial domain using small masks. Asst. Lec. Wasseem Nahy Ibrahem Page 1

A Model of Image Degradation & Restoration As shown in the next figure, image degradation is a process that acts on an input image f(x,y) through a degradation function H and an additive noise η(x,y). It results in a degraded image g(x,y) such that: (, ) = h(, ) (, ) + (, ) where h(x,y) is the spatial representation of the degradation function and the symbol * indicates convolution. Note that we only have the degraded image g(x,y). The objective of restoration is to obtain an estimate ^(, ) of the original image. We want the estimate to be as close as possible to the original input image and, in general, the more we know about H and η, the closer ^(, ) will be to f(x, y). Figure 10.1 A model of the image degradation/restoration process In the frequency domain, this model is equivalent to: (, ) = (, ) (, ) + (, ) The approach that we will study is based on various types of image restoration filters. We assume that H is the identity operator, and we deal only with degradations due to noise. Asst. Lec. Wasseem Nahy Ibrahem Page 2

Noise and its characteristics Noise in digital images arises during: Acquisition: environmental conditions (light level & sensor temperature), and type of cameras and/or transmission interference in the transmission channel To remove noise we need to understand the spatial characteristics of noise and its frequency characteristics (Fourier spectrum). Generally, spatial noise is assumed to be independent of position in an image and uncorrelated to the image itself (i.e. there is no correlation between pixel values and the values of noise components). Frequency properties refer to the frequency content of noise in the Fourier sense. Noise Models Spatial noise is described by the statistical behavior of the gray-level values in the noise component of the degraded image. Noise can be modeled as a random variable with a specific probability distribution function (PDF). Important examples of noise models include: 1. Gaussian Noise 2. Rayleigh Noise 3. Gamma Noise 4. Exponential Noise 5. Uniform Noise 6. Impulse (Salt & Pepper) Noise Asst. Lec. Wasseem Nahy Ibrahem Page 3

Gaussian Noise The PDF of Gaussian noise is given by ( ) = 1 2 ( ) / Figure 10.2 Gaussian noise PDF where z is the gray value, μ is the mean and σ is the standard deviation. Rayleigh Noise The PDF of Rayleigh noise is given by ( ) = (2/ )/( ) ( ) / 0 < Figure 10.3 Rayleigh noise PDF Asst. Lec. Wasseem Nahy Ibrahem Page 4

Impulse (Salt & Pepper) Noise The PDF of impulse noise is given by ( ) = 0 h = = Figure 10.4 Impulse noise PDF If b > a, then gray level b appears as a light dot (salt), otherwise the gray level a appears as a dark dot (pepper). Determining noise models The simple image below is well-suited test pattern for illustrating the effect of adding various noise models. Figure 10.5 Test pattern used to illustrate the characteristics of the noise models The next figure shows degraded (noisy) images resulted from adding the previous noise models to the above test pattern image. Asst. Lec. Wasseem Nahy Ibrahem Page 5

Gaussian Rayleigh Gamma Exponential Uniform Salt & Pepper Figure 10.6 Images and histograms from adding Gaussian, Rayleigh, Gamma, Exponential, Uniform, and Salt & Pepper noise. Asst. Lec. Wasseem Nahy Ibrahem Page 6

To determine the noise model in a noisy image, one may select a relatively small rectangular sub-image of relatively smooth region. The histogram of the sub-image approximates the probability distribution of the corrupting model of noise. This is illustrated in the figure below. (a) (b) (c) (d) (e) (f) Figure 10.7 (a) Gaussian noisy image. (b) sub-image extracted from a. (c) histogram of b (d) Rayleigh noisy image. (e) sub-image extracted from d. (f) histogram of e Image restoration in the presence of Noise Only When the only degradation present in an image is noise, the degradation is modeled as: (, ) = (, ) + (, ) and (, ) = (, ) + (, ) Asst. Lec. Wasseem Nahy Ibrahem Page 7

Spatial filtering is the method of choice in situations when only additive noise is present. Spatial filters that designed to remove noise include: 1. Order Statistics Filters: e.g. Min, Max, & Median 2. Adaptive Filters: e.g. adaptive median filter Order-Statistics Filters We have used one of these filters (i.e. median) in the image enhancement. We now use additional filters (min and max) in image restoration. Min filter This filter is useful for finding the darkest points in an image. Also, it reduces salt noise as a result of the min operation. (a) (b) Figure 10.8 (a) image corrupted by salt noise. (b) Result of filtering (a) with a 3 3 min filter. Max filter This filter is useful for finding the brightest points in an image. Also, because pepper noise has very low values, it is reduced by this filter as a result of the max operation. Asst. Lec. Wasseem Nahy Ibrahem Page 8

(a) (b) Figure 10.9 (a) image corrupted by pepper noise. (b) Result of filtering (a) with a 3 3 max filter. Adaptive Filters The previous spatial filters are applied regardless of local image variation. Adaptive filters change their behavior using local statistical parameters in the mask region. Consequently, adaptive filters outperform the non-adaptive ones. Adaptive median filter The median filter performs well as long as the spatial density of the impulse noise is not large (i.e. P a and P b less than 0.2). Adaptive median filtering can handle impulse noise with probabilities even larger than these. Moreover the adaptive median filter seeks to preserve detail while smoothing non-impulse noise, while the median filter does not do. The adaptive median filter aims to replace f(x,y) with the median of a neighborhood up to a specified size as long as the median is different from the max and min values but f(x,y)=min or f(x,y)=max. Otherwise, f(x,y) is not changed. Asst. Lec. Wasseem Nahy Ibrahem Page 9

Consider the following notation: S xy = mask region (neighborhood sub-image) z min = minimum gray level value in S xy z max = maximum gray level value in S xy z med = median of gray levels in S xy z xy = gray level at coordinates (x, y) S max = maximum allowed size of S xy The adaptive median filtering algorithm works in two levels A and B as follows: Level A: A1 = z med - z min Level B: A2 = z med - z max If A1 > 0 AND A2 < 0, Go to level B Else increase the window size If window size <= S max repeat level A Else output z med. B1 = z xy - z min B2 = z xy - z max If B1 > 0 AND B2 < 0, output z xy Else output z med. The next figure shows an example of filtering an image corrupted by saltand-pepper noise with density 0.25 using 7 7 median filter and the adaptive median filter with S max = 7. Asst. Lec. Wasseem Nahy Ibrahem Page 10

(a) (b) Figure 10.10 (a) Image corrupted by salt&pepper noise with density 0.25. (b) Result obtained using a 7 7 median filter. (c) Result obtained using adaptive median filter with S max = 7. (c) From this example, we find that the adaptive median filter has three main purposes: 1. to remove salt-and-pepper (impulse) noise. 2. to provide smoothing of other noise that may not be impulsive. 3. to reduce distortion, such as excessive thinning or thickening of object boundaries. Asst. Lec. Wasseem Nahy Ibrahem Page 11