Antal Nagy Department of Image Processing and Computer Graphics University of Szeged 17th SSIP 2009, 2 - 11 July, Debrecen, Hungary1.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

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 Lecture 11: Image Restoration Prof. Charlene Tsai.
Digital Image Processing Chapter 5: Image Restoration.
Chap 4 Image Enhancement in the Frequency Domain.
Digital Image Processing
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
Image Restoration 影像復原 Spring 2005, Jen-Chang Liu.
DIGITAL IMAGE PROCESSING
Digital Image Processing
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
Digital Image Processing
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing Chapter 5: 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.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 4 Image Enhancement in the Frequency Domain Chapter.
Digital Image Processing Lecture 4 Image Restoration and Reconstruction Second Semester Azad University Islamshar Branch
Presentation Image Filters
© 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
Image Processing © 2002 R. C. Gonzalez & R. E. Woods Lecture 4 Image Enhancement in the Frequency Domain Lecture 4 Image Enhancement.
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.
Digital Image Processing CSC331 Image Enhancement 1.
انجمن دانشجویان ایران – مرجع دانلود کتاب ، نمونه سوال و جزوات درسی
ENG4BF3 Medical Image Processing Image Enhancement in Frequency Domain.
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.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fourier Transform.
Chapter 5 Image Restoration.
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
Image Restoration: Noise Models By Dr. Rajeev Srivastava.
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 Restoration : Noise Reduction
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing Lecture 10: Image Restoration
Image Restoration Spring 2005, Jen-Chang Liu.
Digital Image Processing
Digital Image Processing
DIGITAL IMAGE PROCESSING
Image Enhancement in the
Lecture 11 Image restoration and reconstruction II
Image Analysis Image Restoration.
ENG4BF3 Medical Image Processing
Digital Image Processing
ENG4BF3 Medical Image Processing
4. Image Enhancement in Frequency Domain
Image Restoration - Focus on Noise
Digital Image Processing Lecture 11: Image Restoration
Image Enhancement in the Spatial Domain
Presentation transcript:

Antal Nagy Department of Image Processing and Computer Graphics University of Szeged 17th SSIP 2009, July, Debrecen, Hungary1

 Human perception  Image degradation  Convolution, Furier Transform  Noise  Image operations ◦ Frequency filters ◦ Spatial filtering  Inverse filtering  Wiener filtering 17th SSIP 2009, July, Debrecen, Hungary2

 Aim ◦ to improve the perception of information images  for human viewers ◦ to provide ‘better’ input  for other automated image processing techniques 17th SSIP 2009, July, Debrecen, Hungary3

 No general theory for determining what is good image enhancement ◦ If it looks good, it is good!? 17th SSIP 2009, July, Debrecen, Hungary4

5

6

 17th SSIP 2009, July, Debrecen, Hungary7

 Focus ◦ Noise reduction techniques  Quantitative measures can determine which techniques are most appropriate ◦ How does it improve e.g. the result of the next automated image processing step?  E.g. image segmentation 17th SSIP 2009, July, Debrecen, Hungary8

 The first stage of any vision system ◦ Can we do it in perfect way?  Sometimes yes  Industrial applications  Ideal background  Ideal lighting  Faultless camera  Sometimes not  Industrial applications  Despite of supreme conditions we got degraded image  Accumulation of the faults of the electrical components  Physical phenomena  E.t.c.  Medical image acqusition 17th SSIP 2009, July, Debrecen, Hungary9

 Non-linear mapping ◦ E.g., non-linear sensitivity, image of the straight line is not straight e.t.c.  Blurring ◦ Image of a point is blob  Moving during the image acquisition  Probabilistic noise 17th SSIP 2009, July, Debrecen, Hungary10

17th SSIP 2009, July, Debrecen, Hungary11 Frequency domain Spatial domain

◦ Multiplication point by point 17th SSIP 2009, July, Debrecen, Hungary12

17th SSIP 2009, July, Debrecen, Hungary13 * = = · Multiplication Convolution Fourier transf. Inverse Fourier transf.

17th SSIP 2009, July, Debrecen, Hungary14 Definition

17th SSIP 2009, July, Debrecen, Hungary15

17th SSIP 2009, July, Debrecen, Hungary16 x x x

 Even functions that are not periodic can be expressed as the integrals of sines and/or cosines multiplied by a weighting function.  The formulation in this case is the Fourier transform. 17th SSIP 2009, July, Debrecen, Hungary17 ∑ =∑ =∑ =∑ =

Taught mathematics in Paris Eventually traveled to Egypt with Napoleon to become the secretary of the Institute of Egypt After fall of Napoleon worked at Bureau of Statistics Elected to National Academy of Sciences in th SSIP 2009, July, Debrecen, Hungary18

17th SSIP 2009, July, Debrecen, Hungary19 (invers transform) (continous) base-functions

17th SSIP 2009, July, Debrecen, Hungary20 base-functions (invers transform)

17th SSIP 2009, July, Debrecen, Hungary21 u=0, v=0 u=1, v=0u=2, v=0 u=-2, v=0u=-1, v=0 u=0, v=1u=1, v=1u=2, v=1 u=-2, v=1u=-1, v=1 u=0, v=2u=1, v=2u=2, v=2 u=-2, v=2u=-1, v=2 u=0, v=-1u=1, v=-1u=2, v=-1 u=-2, v=-1u=-1, v=-1 u=0, v=-2u=1, v=-2u=2, v=-2 u=-2, v=-2u=-1, v=-2 u v wavelength:

 F (0,0) - value is by far the largest component of the image,  Other frequency components are usually much smaller,  The magnitude of F ( X,Y ) decreases quickly ◦ Instead of displaying the |F(u,v)| we display log( 1 + |F(u,v)| ) real function usually 17th SSIP 2009, July, Debrecen, Hungary22

17th SSIP 2009, July, Debrecen, Hungary23 x y v u

 The 2D Fourier transform can be separated  The edges on the image appears as point series in perpendicular direction in Fourier transform of the image and vice versa. 17th SSIP 2009, July, Debrecen, Hungary24

17th SSIP 2009, July, Debrecen, Hungary25 Image-space Frequency space original rotation linearity shift scale

 Noise unknown  subtraction not possible  Periodic noise ◦ N ( u,v ) can be estimated from G ( u,v ) 17th SSIP 2009, July, Debrecen, Hungary26

17th SSIP 2009, July, Debrecen, Hungary27  Gaussian ◦ In an image due to factors  Electronic circuit noise  Sensor noise due to  poor illumination  High temperature  Rayleigh ◦ Range imaging  Exponential and gamma ◦ Laser imaging  Impulse ◦ Faulty switching  Uniform density ◦ Practical situations

17th SSIP 2009, July, Debrecen, Hungary28

17th SSIP 2009, July, Debrecen, Hungary29

17th SSIP 2009, July, Debrecen, Hungary30

17th SSIP 2009, July, Debrecen, Hungary31

17th SSIP 2009, July, Debrecen, Hungary32

 Electrical and electromechanical interference  Spatial dependent noise  Can be reduced via frequency domain filtering ◦ Pair of impulses 17th SSIP 2009, July, Debrecen, Hungary33

17th SSIP 2009, July, Debrecen, Hungary34 T: A=[a(i,j)] → B=[b(i,j)] b(i,j)=T{a(i,j), S(i,j), i, j} intensity enviroment position

 Global: b(i,j)=T{A} (S(i,j)=A) (e.g. Fourier-transformation)  Local: T{a(i,j), S} given size of S and independent from the position (e.g. convolution with a mask)  Local, adaptive: T{a(i,j), S(i,j), i, j} the size of S(i,j) is independent from the size of image (e.g. adaptive thresholding)  Point operation: T{a(i,j)} (e.g. gamma-correction, histogram-equalization) 17th SSIP 2009, July, Debrecen, Hungary35

17th SSIP 2009, July, Debrecen, Hungary36 D 0 : cutoff frequency All frequencies less than D 0 will be passed, Other frequencies will be filtered out. Bluring and ringing properties Scope: noise filtering

17th SSIP 2009, July, Debrecen, Hungary37 F F -1. Input image Frequency- mask

17th SSIP 2009, July, Debrecen, Hungary38 Original Cutoff frequencies

17th SSIP 2009, July, Debrecen, Hungary39 n: order of the filter Properties:  Smooth transition in blurring  No ring effect (continouos filter)  Smoothed edges

17th SSIP 2009, July, Debrecen, Hungary40 Original Cutoff frequencies

17th SSIP 2009, July, Debrecen, Hungary41

17th SSIP 2009, July, Debrecen, Hungary42 Original Cutoff frequencies

17th SSIP 2009, July, Debrecen, Hungary43

17th SSIP 2009, July, Debrecen, Hungary44

 Bandreject and Bandpass Filters  Notch Filters ◦ Rejects or passes frequencies in a predefined neighborhood about the frequency rectangle ◦ Zero-phase-shift filters  Symmetric about the origin  ( u 0,v 0 )  ( -u 0,-v 0 ) ◦ Product of highpass filters whose centers have been translated to the centers of the notches. 17th SSIP 2009, July, Debrecen, Hungary45

17th SSIP 2009, July, Debrecen, Hungary46 noisy image frequency mask frequency image filtered image 1 0

17th SSIP 2009, July, Debrecen, Hungary47

 Mean Filter 17th SSIP 2009, July, Debrecen, Hungary48 where g input image, S (x,y) neighborhood of (s,t) point, mn number of pixels in neighborhood. 3x3 neighborhood

17th SSIP 2009, July, Debrecen, Hungary49

 Averaging ◦ same weight for every pixels in neighborhood,  Weighted average ◦ weights for pixels in the neighborhood (generally decreasing with the distance).  The sum of the Noise Filtering/smoothing masks elements is 1! 17th SSIP 2009, July, Debrecen, Hungary50

 Smooth when the difference between the intensity value of the given pixel and the mean of the neighborhood is larger than threshold value defined in advance. 17th SSIP 2009, July, Debrecen, Hungary51

 Arithmetic mean filter  Geometric mean filter ◦ Lose less image details  Harmonic mean filter ◦ Works well for  salt noise, Gaussian ◦ Fails for pepper noise  Contraharmonic mean filter ◦ Q >0 pepper, Q <0 salt 17th SSIP 2009, July, Debrecen, Hungary52

17th SSIP 2009, July, Debrecen, Hungary53

17th SSIP 2009, July, Debrecen, Hungary54

17th SSIP 2009, July, Debrecen, Hungary55

 Median filter  Max and min filters 17th SSIP 2009, July, Debrecen, Hungary56 50% 0% 100%

17th SSIP 2009, July, Debrecen, Hungary57

17th SSIP 2009, July, Debrecen, Hungary58

 Behavior changes based on statistical characteristic in the filter region ◦ Improved filtering power ◦ Increase in filter complexity ◦ Noise only! 17th SSIP 2009, July, Debrecen, Hungary59

 Adaptive, Local noise reduction filter ◦ Mean ◦ Variance  Local region S xy ◦ g(x,y) intensity value ◦ the variance of the noise corrupting f(x,y) to form g(x,y) ◦ m L local mean ◦ local variance 17th SSIP 2009, July, Debrecen, Hungary60

 Adaptive, Local noise reduction filter 1. If is zero, the filter should return the value of g(x,y)  Zero noise case 2. If the local variance is high relative to the filter should return a value close to g(x,y)  Edges should be preserved 3. If the variances are equal the filter should return the arithmetic mean value  Local noise averaging 17th SSIP 2009, July, Debrecen, Hungary61

 Simplest approach to restoration is direct inverse filtering 17th SSIP 2009, July, Debrecen, Hungary62 experience: H: quickly decreasing function, N: not (so quickly) decreasing let us cut the high frequencies No additive noise

 If we only know the degradation function ◦ Can not recover the undegraded image  H ( u,v ) is not known  Get around the zero or small value problem ◦ To limit the filter frequencies to values near the origin  H (0,0) is usually the highest value of H ( u,v ) in the frequency domain 17th SSIP 2009, July, Debrecen, Hungary63

 Inverse filtering makes no explicit provision for handling noise  Approach incorporates ◦ Degradation function ◦ Statistical characteristics of noise 17th SSIP 2009, July, Debrecen, Hungary64

 Method ◦ Considering images and noise as random variable ◦ Objective is to find an estimate of the uncorrupted image f such that the mean square error between them is minimized. 17th SSIP 2009, July, Debrecen, Hungary65

17th SSIP 2009, July, Debrecen, Hungary 66 spectrum Wiener filter input result original spectrum of the result

 Edge preserving filters ◦ E.g. anisotropic diffusion  Wavelet denoising  Point operations ◦ E.g. gamma correction, histogram operations  Iterative filtering  E.t.c. 17th SSIP 2009, July, Debrecen, Hungary67

 We always should consider some kind of noise model ◦ Even when working on phantom data  Should do in automatic way ◦ Have to chose carefully the method  Depends on the given task ◦ Determining the parameters  What we gain? ◦ Less problem afterwards ◦ Better final result  Even no other technique will be applied 17th SSIP 2009, July, Debrecen, Hungary68

 Digital Image Processing ◦ Gonzalez and Woods ◦  Course on Image Processing at University of Szeged ◦ Attila Kuba, Kálmán Palágyi  Image Restoration presentation ◦ Attila Kuba ◦ SSIP th SSIP 2009, July, Debrecen, Hungary69