Digital Image Processing Lecture 10: Image Restoration

Slides:



Advertisements
Similar presentations
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Advertisements

Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
ECE 472/572 - Digital Image Processing Lecture 7 - Image Restoration - Noise Models 10/04/11.
Digital Image Processing Chapter 5: Image Restoration.
Image Restoration 影像復原 Spring 2005, Jen-Chang Liu.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
5. 1 Model of Image degradation and restoration
Rank filtering From noise image Rank filtering mask (7 x 7 ) rank 4.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing
Digital Image Processing Chapter 5: Image Restoration.
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Linear filtering.
Chapter 5 Image Restoration. Preview Goal: improve an image in some predefined sense. Image enhancement: subjective process Image restoration: objective.
Basic Image Processing January 26, 30 and February 1.
Basis beeldverwerking (8D040) dr. Andrea Fuster dr. Anna Vilanova Prof.dr. Marcel Breeuwer Noise and Filtering.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Digital Image Processing Lecture 4 Image Restoration and Reconstruction Second Semester Azad University Islamshar Branch
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
1 Chapter 8: Image Restoration 8.1 Introduction Image restoration concerns the removal or reduction of degradations that have occurred during the acquisition.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Restoration.
Spatial Filtering: Basics
Chapter 5 Image Restoration.
Image Restoration and Reconstruction (Noise Removal)
Digital Image Processing
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Digital Image Processing
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering Prof. Charlene Tsai.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی
Image Restoration Chapter 5.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Image Restoration.
Digital Image Processing Lecture : Image Restoration
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Image Restoration Fasih ur Rehman. –Goal of restoration: improve image quality –Is an objective process compared to image enhancement –Restoration attempts.
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
Spatial Filtering.
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Digital Image Processing Lecture 5: Neighborhood Processing: Spatial Filtering March 9, 2004 Prof. Charlene Tsai.
Chapter 5 Image Restoration.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Spatial Filtering Dr. Amnach Khawne.
Image Restoration. Image restoration vs. image enhancement Enhancement:  largely a subjective process  Priori knowledge about the degradation is not.
Lecture 22 Image Restoration. Image restoration Image restoration is the process of recovering the original scene from the observed scene which is degraded.
6/10/20161 Digital Image Processing Lecture 09: Image Restoration-I Naveed Ejaz.
Lecture 10 Chapter 5: Image Restoration. Image restoration Image restoration is the process of recovering the original scene from the observed scene which.
Digital Image Processing
Image Processing Lab Section 28/3/2016 Prepared by Mahmoud Abdelsatar Demonstrator at IT Dep. Faculty of computers and information Assuit University.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
Image Restoration Spring 2005, Jen-Chang Liu.
Digital Image Processing
Image Analysis Image Restoration.
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Basic Image Processing
Digital Image Processing Week IV
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Presentation transcript:

Digital Image Processing Lecture 10: Image Restoration Prof. Charlene Tsai

Introduction Removal or reduction of degradations that have occurred during the acquisition of the images. Sources of degradation: Noise Out-of-focus blurring Camera motion blurring

Model of Image Degradation In spatial domain: Blurring by convolution: Noise can be modeled as an additive function, independent of image signal, to the convolution. In frequency domain: Signal-to-noise ratio (SNR):

Noise in Images Images are often degraded by random noise. Noise can occur during image capture, transmission or processing, and may be dependent on or independent of image content. Noise is usually described by its probabilistic characteristics. White noise -- constant power spectrum (its intensity does not decrease with increasing frequency); It is frequently applied as a crude approximation of image noise in most cases. The advantage is that it simplifies the calculations

Gaussian Noise A very good approximation of noise that occurs in many practical cases. Probability density of the random variable is given by the Gaussian function. 1D Gaussian noise -- the mean and is the standard deviation of the random variable. 0 mean and std dev 1

Generation of Gaussian Noise Step1: Assuming 0 mean, Select value for , low value for less noise effect. Step2: For image gray-level i=0, 1, …, N-1 , calculate Step3: For each pixel (x,y) with intensity f(x,y), generate a random # q1 in the range [0,1]. Determine

(cont) Step4: Generate a random # q2 from {-1,1}. Set Step5: set

Salt and Pepper Noise Also called impulse noise, shot noise or binary noise. Appearance is randomly scattered white (salt) or black (pepper) pixels over the image.

Other Types of Noise Speckle noise: Multiplicative noise. May look superficially similar to Gaussian noise, but require different methods for removal. Periodic noise: Noise is periodic, rather than randomly distributed. Remark: Only periodic noise is global effect. Others can be models as local degradation. Spatial filtering is the method of choice for noise removal when the noise is additive.

Mean Filtering: Review Briefly discussed in lecture 5. The larger the kernel, the smoother/blurrier the image appears. Images on the right are produced using kernel of sizes 1 3 5 9 15 35

Mean Filtering Arithmetic: Geometric: average value of the corrupted image g(x,y) in the area defined by mask S of size m x n The kernel contains coefficients of value 1/mn. Smoothing local variations; noise reduction as a result of blurring. Geometric: Smoothing is comparable to arithmetic mean Tend to lose less image detail. Q: What if there is one pixel with 0 intensity in the neighborhood?

Corrupted by Gaussian noise Mean Filtering: Demo Corrupted by Gaussian noise Original Arithmetic mean Geometric mean

Mean Filter – Drawbacks What are the drawbacks with mean filtering? A single pixel with a very unrepresentative value can significantly affect the mean value of all the pixels in its neighborhood. When the filter neighborhood straddles an edge, the filter will interpolate new values for pixels on the edge and so will blur that edge. This may be a problem if sharp edges are required in the output. Original Salt and pepper noise Mean filtering

Order-Statistics Filter The response is based on ordering the pixels contained in the image area encompassed by the filter. There are several variations: Median: Max:

Order-Statistics Filter (con’d) Min: Midpoint: Alpha-trimmed mean filter: Delete the d/2 lowest and d/2 highest gray-level values of g(x-a,y-b) Let gr(x,y) be the sum of the remaining pixels.

Order-Statistics Filter: Demo1 Repeated application of the median filter Corrupted by pepper-and-salt noise 1st time 2nd time 3rd time

Order-Statistics Filter: Demo2 Corrupted by pepper noise original Min filter Max filter ? ?

Order-Statistics Filter: Drawback(s) Relatively expensive and complex to compute. To find the median it is necessary to sort all the values in the neighborhood into numerical order and this is relatively slow, even with fast sorting algorithms such as quicksort. Possible remedies? When the neighborhood window is slid across the image, many of the pixels in the window are the same from one step to the next, and the relative ordering of these with each other will obviously not have changed.

Variance under the mask Adaptive Filtering Changing the behavior according to the values of the grayscales under the mask. Current grayscale Mean under the mask Variance of the image Variance under the mask

Adaptive Filtering (con’d) If is high, then the fraction is close to 1; the output is close to the original value g. High implies significant detail, such as edges. If the local variance is low, such as the background, the fraction is close to 0; the output is close to

Adaptive Filtering: Variation is often unknown, so is taken as the mean of all values of over the entire image. In practice, we adopt the slight variant: In Matlab, the function is named “wiener2”.

Adaptive Filtering: Demo (7x7 mask) Corrupted by Gaussian noise with variance=1000 original Adaptive filtering Mean filter

Gaussian Smoothing The Gaussian smoothing operator is used to `blur' images and remove detail and noise. In this sense it is similar to the mean filter, but it uses a different kernel that represents the shape of a Gaussian (`bell-shaped') hump. In 1-D, 0 mean and std dev : We have seen this in filtering in frequency domain

Gaussian Smoothing In 2D: The Gaussian outputs a `weighted average' of each pixel's neighbourhood, with the average weighted more towards the value of the central pixels.

Gaussian Smoothing The only parameter is (sigma), which is the standard deviation. This value controls the degree of smoothing. as this parameter goes up, more pixels in the neighborhood are involved in “averaging”, the image gets more blurred, and noise is more effectively suppressed

How to discretize the Gaussian function? In theory, the Gaussian distribution is non-zero everywhere, which would require an infinitely large convolution mask. but in practice it is effectively zero more than about three from the mean, and so we can truncate the mask at this point. Discrete approximation to Gaussian function with

Separable Gaussian Kernel 2-D isotropic Gaussian is separable into x and y components. Thus the 2-D convolution can be performed by first convolving with a 1-D Gaussian in the x direction, and then convolving with another 1-D Gaussian in the y direction. 1-D x component for the 2D kernel. The y component is exactly the same but is oriented vertically.

Gaussian Smoothing: Demo original The difference in the output image is stronger around edges in the image. For a homogenous area, Gaussian filters with different sigma values give almost the same result, but along edges the result differs a lot. sigma as setting the scale at which we preserve information in the convolved image. Structure on a scale small compared with sigma will be removed, whilst structure on a larger scale is retained. Gaussian filters with different sigma values give different smoothing. The difference in the output image is stronger around edges in the image. For a homogenous area Gaussian filters with different sigma values give almost the same result, but along egdes the result differs a lot. When subtracting images with different sigma values homogenous areas are black (the results subtract to zero) and egdes are white (high pixel values). sigma =1 sigma =2 sigma =3