ECE 472/572 - Digital Image Processing Lecture 7 - Image Restoration - Noise Models 10/04/11.

Slides:



Advertisements
Similar presentations
Digital Image Processing Lecture 11: Image Restoration Prof. Charlene Tsai.
Advertisements

Digital Image Processing Chapter 5: Image Restoration.
Digital Image Processing
Image Restoration 影像復原 Spring 2005, Jen-Chang Liu.
Digital Image Processing
ECE 472/572 - Digital Image Processing
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
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
ECE 472/572 - Digital Image Processing Lecture 5 - Image Enhancement - Frequency Domain Filters 09/13/11.
Digital Image Processing: Revision
Digital Image Processing
Image Restoration.
Digital Image Processing Chapter 5: Image Restoration.
Image Restoration.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Chapter 5 Image Restoration. Preview Goal: improve an image in some predefined sense. Image enhancement: subjective process Image restoration: objective.
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
Presentation Image Filters
Antal Nagy Department of Image Processing and Computer Graphics University of Szeged 17th SSIP 2009, July, Debrecen, Hungary1.
Image Restoration The main aim of restoration is to improve an image in some predefined way. Image Enhancement is a subjective process whereas Image restoration.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Restoration.
Chapter 5 Image Restoration.
Image Restoration and Reconstruction (Noise Removal)
Computer Vision - Restoration Hanyang University Jong-Il Park.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Digital Image Processing
Chapter 3: Image Restoration Introduction. Image restoration methods are used to improve the appearance of an image by applying a restoration process.
CS654: Digital Image Analysis
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی
IMAGE RESTORATION Outline A model of the image degradation / restoration process Noise models Restoration in the presence of noise only – spatial filtering.
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
Image Restoration Fasih ur Rehman. –Goal of restoration: improve image quality –Is an objective process compared to image enhancement –Restoration attempts.
Digital Image Processing Lecture 10: Image Restoration
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration.
Digital Image Processing Lecture 11: Image Restoration March 30, 2005 Prof. Charlene Tsai.
Chapter 5 Image Restoration.
ECE 472/572 - Digital Image Processing Lecture 6 – Geometric and Radiometric Transformation 09/27/11.
By Dr. Rajeev Srivastava
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.
ECE 533 Project Tribute By: Justin Shepard & Jesse Fremstad.
Digital Image Processing Lecture 10: Image Restoration II 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 Restoration : Noise Reduction
Digital Image Processing Lecture 10: Image Restoration
IMAGE PROCESSING IMAGE RESTORATION AND NOISE REDUCTION
Image Pre-Processing in the Spatial and Frequent Domain
Image Restoration – Degradation Model and General Approaches
Image Restoration Spring 2005, Jen-Chang Liu.
Digital Image Processing
Digital Image Processing
DIGITAL IMAGE PROCESSING
Image Analysis Image Restoration.
Digital Image Processing
ENG4BF3 Medical Image Processing
Image Restoration - Focus on Noise
Digital Image Processing Lecture 11: Image Restoration
Presentation transcript:

ECE 472/572 - Digital Image Processing Lecture 7 - Image Restoration - Noise Models 10/04/11

2 Image Acquisition Image Enhancement Image Restoration Image Compression DIP Components Image Segmentation Representation & Description Recognition & Interpretation Knowledge Base Preprocessing – low level Image Coding Morphological Image Processing Wavelet Analysis

3 Roadmap  Introduction –Image format (vector vs. bitmap) –IP vs. CV vs. CG –HLIP vs. LLIP –Image acquisition  Perception –Structure of human eye –Brightness adaptation and Discrimination –Image resolution  Image enhancement –Enhancement vs. restoration –Spatial domain methods Point-based methods Mask-based (neighborhood-based) methods - spatial filter –Frequency domain methods  Geometric correction –Affine vs. Perspective transformation –Homogeneous coordinates –Inverse vs. Forward transform –Composite vs. Concatenate transformation –General transformation  Image restoration –Analyze the noise Type of noise –Spatial invariant SAP Gaussian –Periodic noise How to identify the type of noise? –Test pattern –Histogram How to evaluate noise level? –RMSE –PSNR –Noise removal Spatial domain –Mean filters –Order-statistics filters –Adaptive filters Frequency domain –Band-pass –Band-reject –Notch filters –Optimal notch filter –Analyze the blur –Deblurring

4 Questions  What ’ s the different objectives between image enhancement and image restoration?  How to estimate noise?  Arithmetic mean vs. geometric mean  Contraharmonic filter and different parameter values vs. the type of noise removed  Mean filters vs. order statistics filters  What ’ s the philosophy of the adaptive filters?  Understand adaptive median filter  How to design a notch filter?

5 Image Enhancement vs. Restoration  Image enhancement: process image so that the result is more suitable than the original image for a specific application  Image restoration: recover image from distortions to its original image

6 The degradation original image, f measured image, g degradation * + noise Blur or other distortions

7 Solving the problem  Model the degradation  Apply the inverse process to recover the original image

8 Different approaches  Noise –Noise models and denoising (5.2, 5.3, 5.4)  Blur (linear, position-invariant degradations) –Estimate the degradation and inverse filters (5.5, 5.6, 5.7, 5.8, 5.9, 5.10)

9 Noise sources  Image acquisition  Image transmission

10 Noise models  Spatially independent noise models –Gaussian noise –Rayleigh noise –Erlang (Gamma) noise –Exponential noise –Impulse (salt-and-pepper) noise  Spatially dependent noise model –Periodic noise

11 The test pattern

12

13

14 The periodic noise

15 How to estimate noise parameters?  Periodic noise –Analyze the FT  Noise PDFs –Use “ flat ” images if we can acquire them –What if it ’ s salt-and-pepper noise? –Use small strips of uniform intensity if we only have the images but not the acquisition system

16

17 Restoration from noise  Spatial –g(x,y) = f(x,y) +  (x,y)  Frequency –G(u,v) = F(u,v) + N(u,v)

18 Spatial domain – Neighborhood-based  Mean filters –Arithmetic mean filter (AMF, average) Local smooth Results in blur –Geometric mean filter Keeps more detail than AMF –Harmonic mean filter Works well for salt noise, but fails for pepper noise Does well on Gaussian noise –Contraharmonic mean filter Reducing or virtually eliminating the salt (negative Q)-and-pepper (positive Q) noise

19

20

21

22 Spatial domain – Neighborhood-based  Order-statistics filters –Median filter Particularly well on salt-and-pepper noises –Max and min filters Max: reduces what noise? Min: reduces what noise? –Midpoint filter Average the max and min intensity values Combines order statistics and averaging Works best for Gaussian or uniform noise –Alpha-trimmed mean filter Delete the d/2 lowest and the d/2 highest, average the remaining

23 Example of repetitive application of the same filter

24

25 Additive Uniform Noise S-a-p 5x5 AMF 5x5 median 5x5 geometric mean alpha-trimmed mean with d=5

26 Spatial domain – Neighborhood-based  Adaptive filters –Adaptive local noise reduction filter –Local variance, variance of noise, g(x,y), and local mean  Behavior of filter –If global variance is zero, return g(x,y) –If the local variance is high compared to the global variance, return a value close to g(x,y) –If the two variances are equal, return the arithmetic mean value

27

28 Adaptive median filter  Stage A: –A1 = zmed - zmin –A2 = zmed - zmax –If A1>0 AND A2<0, go to stage B –Else increase the window size –If window size <= Smax, repeat stage A –Else output zmed  Stage B: –B1 = zxy - zmin –B2 = zxy - zmax –If B1>0 AND B2<0, output zxy –Else output zmed

29

30

31 Frequency domain  Bandreject filters  Bandpass  Notch filters

32

33

34 Optimal notch filters (572)  Section 5.4.4

35 Optimal notch - Derivation

36

37 Discussion  Can we apply adaptive frequency domain filters and how?

38 Evaluating the noise level  (Root) Mean Square Error (MSE) –E{||g(x,y) – f(x,y)|| 2 } or –E{||(g(x,y)-g(x,y)) – (f(x,y)-f(x,y))|| 2 }  Peak Signal to Noise Ratio (PSNR) 10log 10 [(L-1)/sqrt(MSE)](dB)

39 How to add SAP noise? /** * Add salt-and-pepper noise to an image inimg The input image. q The probability. 0<q<1. * For each pixel in the image, generate a random number, say r. * If r<q, change the pixel's intensity to zero. * If r>1-q, change the pixel's intensity to L * The higher the q, the worse the noise Image corrupted by salt and pepper noise. */ Image sapNoise(Image &inimg, float q) { // add SAP noise srand(time(0)); // so that a different seed nr is generated for (i=0; i<nr; i++) for (j=0; j<nc; j++) for (k=0; k<nchan; k++) { r = rand()/(RAND_MAX+1.0); outimg(i,j,k) = inimg(i,j,k); if (r < q) outimg(i,j,k) = 0; if (r > 1-q) outimg(i,j,k) = L; }

40 Summary  Type of noise –Spatial invariant SAP Gaussian –Periodic noise  How to identify the type of noise? –Test pattern –Histogram  How to evaluate noise level? –RMSE –PSNR  Noise removal –Spatial domain Mean filters Order-statistics filters –Frequency domain Band-pass Band-reject Notch filters Optimal notch filter