ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission (10-5-06) Wiener Filtering Derivation Comments Re-sampling and Re-sizing 1D  2D 10/5/06.

Slides:



Advertisements
Similar presentations
Noise in Radiographic Imaging
Advertisements

2007Theo Schouten1 Restoration With Image Restoration one tries to repair errors or distortions in an image, caused during the image creation process.
Instructor: Yonina Eldar Teaching Assistant: Tomer Michaeli Spring 2009 Modern Sampling Methods
Digital Image Processing Lecture 11: Image Restoration Prof. Charlene Tsai.
Digital Image Processing
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
DIGITAL IMAGE PROCESSING
Noise on Analog Systems
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
EE465: Introduction to Digital Image Processing
EE322 Digital Communications
Digital Image Processing
Digital Image Processing Chapter 5: Image Restoration.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Matched Filters By: Andy Wang.
Sampling Random Signals. 2 Introduction Types of Priors Subspace priors: Smoothness priors: Stochastic priors:
Chapter 5 Image Restoration. Preview Goal: improve an image in some predefined sense. Image enhancement: subjective process Image restoration: objective.
EE513 Audio Signals and Systems Wiener Inverse Filter Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Adaptive Noise Cancellation ANC W/O External Reference Adaptive Line Enhancement.
Chapter 5ELE Adaptive Signal Processing 1 Least Mean-Square Adaptive Filtering.
Yuan Chen Advisor: Professor Paul Cuff. Introduction Goal: Remove reverberation of far-end input from near –end input by forming an estimation of the.
Image Processing in Freq. Domain Restoration / Enhancement Inverse Filtering Match Filtering / Pattern Detection Tomography.
Multiframe Image Restoration. Outline Introduction Mathematical Models The restoration Problem Nuisance Parameters and Blind Restoration Applications.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Restoration.
Computer Vision - Restoration Hanyang University Jong-Il Park.
1 Part 5 Response of Linear Systems 6.Linear Filtering of a Random Signals 7.Power Spectrum Analysis 8.Linear Estimation and Prediction Filters 9.Mean-Square.
Copyright, 1996 © Dale Carnegie & Associates, Inc. Image Restoration Hung-Ta Pai Laboratory for Image and Video Engineering Dept. of Electrical and Computer.
EE4328, Section 005 Introduction to Digital Image Processing Linear Image Restoration Zhou Wang Dept. of Electrical Engineering The Univ. of Texas.
Deconvolution, Deblurring and Restoration T , Biomedical Image Analysis Seminar Presentation Seppo Mattila & Mika Pollari.
Image Restoration using Iterative Wiener Filter --- ECE533 Project Report Jing Liu, Yan Wu.
ENEE631 Digital Image Processing (Spring'04) Image Restoration Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park  
Adv DSP Spring-2015 Lecture#9 Optimum Filters (Ch:7) Wiener Filters.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Image Restoration.
Instructor: Yonina Eldar Teaching Assistant: Tomer Michaeli Spring 2009 Modern Sampling Methods
EE513 Audio Signals and Systems
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;
LEAST MEAN-SQUARE (LMS) ADAPTIVE FILTERING. Steepest Descent The update rule for SD is where or SD is a deterministic algorithm, in the sense that p and.
Typical Types of Degradation: Motion Blur.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission Image Restoration distortion noise Inverse Filtering Wiener Filtering Ref: Jain,
ENEE631 Digital Image Processing (Spring'04) Basics on 2-D Random Signal Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park.
3.7 Adaptive filtering Joonas Vanninen Antonio Palomino Alarcos.
Wiener Filtering for Image Restoration & Basics on Image Compression
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Quantization independent samples uniform and optimum correlated.
Chapter 5 Image Restoration.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Image Compression Review of Basics Huffman coding run length coding Quantization.
Digital Image Processing CSC331 Image restoration 1.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
CS654: Digital Image Analysis Lecture 22: Image Restoration.
Image Restoration. Image restoration vs. image enhancement Enhancement:  largely a subjective process  Priori knowledge about the degradation is not.
Digital Image Processing
Locating a Shift in the Mean of a Time Series Melvin J. Hinich Applied Research Laboratories University of Texas at Austin
Yun, Hyuk Jin. Theory A.Nonuniformity Model where at location x, v is the measured signal, u is the true signal emitted by the tissue, is an unknown.
9/11/2018 ENEE631 Spring’09 Lecture 7 (2/16/2009) Image Restoration
Degradation/Restoration Model
ECE 7251: Signal Detection and Estimation
Chapter 3 Sampling.
IMAGE RESTORATION.
Sampling rate conversion by a rational factor
Image Analysis Image Restoration.
Image Restoration and Denoising
Basic Image Processing
Lecture 14 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
Adaptive Filter A digital filter that automatically adjusts its coefficients to adapt input signal via an adaptive algorithm. Applications: Signal enhancement.
Typical Types of Degradation: Motion Blur.
Digital Image Processing
- Final project of digital signal processing
Digital Image Processing Lecture 11: Image Restoration
Presentation transcript:

ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission ( ) Wiener Filtering Derivation Comments Re-sampling and Re-sizing 1D  2D 10/5/06

ELE 488 F06 Linear Spatial-Invariant Distortion and Inverse Filtering Assumption – no noise, known distortion – often used to correct blur Consider 1D case first, then take up 2D v = u * h, w = v * g = u * (h * g) want w = u, so h * g = δ. Inverse Filter: G(ω) = 1 / H(ω). (divide by 0?) Pseudo Inverse Filter: G(ω) = 1 / H(ω) if | H(ω) | > ε G(ω) = 0 if | H(ω) | < ε 2D: inverse filter: G(ω, λ ) = 1 / H(ω, λ ). pseudo inverse filter: G(ω, λ ) = 1 / H(ω, λ ) if | H(ω, λ ) | > ε G(ω, λ ) = 0 if | H(ω, λ ) | < ε h, H uv  g, G w UMCP ENEE631 Slides (created by M.Wu © 2001) restoration distortion

ELE 488 F06 Inverse & Pseudo-inverse Filtering From Jain Fig.8.10 UMCP ENEE631 Slides (created by M.Wu © 2001)

ELE 488 F06 Another Solution – cut off high frequencies Limit restoration to low frequency components to avoid amplifying noise at high freq and at nulls ( 480x480 image through severe turbulence) UMCP ENEE631 Slides (created by M.Wu © 2004) Gonzalez/ Woods

ELE 488 F06 A Different Approach to Deconvolution Consider distortion correction and noise suppression: –Treat image and noise as random fields –Minimize MSE between the original u and restored w: E{ [ u – w ] 2 }, given v –Best estimate is conditional mean: E { u | v } needs info not usually available usually difficult to solve, non-linear problem –To find the best linear estimate  Wiener filtering linear estimate from observed image by minimizing MSE UMCP ENEE631 Slides (created by M.Wu © 2001/2004) h, H uv  g, G w

ELE 488 F06 Wiener Filtering Best linear estimate –minimize MSE E{ [ w – u ] 2 } –spatial invariant filter w = v * g –wide-sense stationary signal and noise –noise uncorrelated with original signal power spectral densities: S uu (ω) S nn (ω) Solution: G(ω) = H*(ω) S uu (ω) / { |H| 2 (ω) S uu (ω) + S nn (ω) } = 1 / { H + S nn / ( H* S uu ) } (Notation: Φ uu Φ nn for power spectral densities last time) UMCP ENEE631 Slides (created by M.Wu © 2001) h, H uv  g, G w

ELE 488 F06 Wiener Filtering (cont) G = H* S uu / { |H| 2 S uu + S nn } Consider deblurring noisy image, need to balance between: –HPF filter for de-blurring (undo H distortion) –LPF for suppressing noise Noiseless case ~ S nn = 0 (inverse filter) –Wiener filter becomes pseudo-inverse filter for S nn  0 –G(ω) = H* S uu / { |H| 2 S uu + S nn } G(ω)  1 / H(ω), if H(ω) ≠ 0 G(ω)  0, if H(ω) = 0 No blur, H = 1 (smoothing Filter) –Wiener filter attenuates noise according to SNR at each freq. G(ω) = S uu / {S uu + S nn } = (S uu / S nn )/ { 1 + S uu / S nn } UMCP ENEE631 Slides (created by M.Wu © 2001)

ELE 488 F06 Comparisons From Jain Fig.8.11 UMCP ENEE631 Slides (created by M.Wu © 2001)

ELE 488 F06 Wiener Filtering vs. Inverse Filtering UMCP ENEE631 Slides (created by M.Wu © 2004) Gonzalez - Woods (480x480 image through severe turbulence)

ELE 488 F06 enlarged

ELE 488 F06 Wiener Filtering vs. Inverse Filtering UMCP ENEE631 Slides (created by M.Wu © 2004) Gonzalez - Woods

ELE 488 F06

Real discrete-time, wide sense stationary random signals

ELE 488 F06 Derivation of Wiener Filter h, H uv  g, G w

ELE 488 F06 Derivation of Wiener Filter

ELE 488 F06 Derivation of Wiener Filter

ELE 488 F06 Wiener Filter: From Theory to Practice Have assumed knowing power spectral densities of image & noise and frequency response Assumptions valid? Implementation issues UMCP ENEE631 Slides (created by M.Wu © 2004)

ELE 488 F06 Wiener Filter: Issues to Be Addressed Filter size –Theoretically infinite impulse response  large-size DFTs –Impose filter size constraint: find the best FIR that minimizes MSE Need to estimate power spectrum density (psd) S nn,S uu –Estimate psd of blurred image and compensate for effect of noise –Estimate pds from representative images similar to image to be restored –Use statistical modeling for the image and estimate parameters –Constrained least square filter ~ (Jain Sec.8.8, Gonzalez Sec.5.9) Optimize smoothness in restored image (least-square of the rough transitions) Constrain differences between blurred image and blurred version of reconstructed image Estimate the restoration filter w/o the need of estimating p.s.d. Unknown distortion H ~ Blind Deconvolution UMCP ENEE631 Slides (created by M.Wu © 2001)

ELE 488 F06 Basic Ideas of Blind Deconvolution Three ways to estimate H: observation, experimentation, assume model Estimate H via spectrum’s zero patterns –Two major classes of blur (motion blur and out-of-focus) –H has nulls related to the type and the parameters of the blur Maximum-Likelihood blur estimation –Each set of image model and blur parameters gives a “typical” blurred output. –Given the observation of blurred image, try to find the set of parameters that is most likely to produce that blurred output Iteration ~ Expectation-Maximization approach (EM) Given estimated parameters, restore image via Wiener filtering Examine restored image and refine parameter estimation Get local optimum “Blind Image Deconvolution” by Kundur et al, IEEE Sig. Proc. Magazine, vol.13, 1996 UMCP ENEE631 Slides (created by M.Wu © 2001/2004)

ELE 488 F06 Image Resizing: Scaling and Interpolation 512x512 image resample to 216x216 and to 128x128

ELE 488 F06

Image Resampling 512x512 image resample to 216x216 and to 128x128

ELE 488 F06 Image Resizing: Scaling and Interpolation 512x x256 zoom in

ELE 488 F06 Image Resizing: Scaling and Interpolation 512x x128 zoom in

ELE 488 F06

Image Resizing: Scaling and Interpolation 512x x600

ELE 488 F06 Image Resizing: Scaling and Interpolation 512x x200

ELE 488 F06 Integer Subsampling by L (=2) Beware of Aliasing! Review of 1 D sampling and re-sampling

ELE 488 F06 1 D Sampling and Reconstruction signal x(t) samples x(nT) h(t) = 1, 0<t<T h(t) = 0, other t piecewise constant x r (t) Reconstruction from samples : x r (t) =x(nT) h(t - nT)

ELE 488 F06 h(t) = 1 - | t |/T, 0<t<T h(t) = 0, other t piecewise linear x r (t) h(t) = sinc(t/T) = sin(πt /T) / (π t /T) bandlimited x r (t) Sampling Theorem (Shannon, Nyquist, Whittaker, Komogorov,...)

ELE 488 F06 Sampling, Reconstruction, Aliasing

ELE 488 F06

Decrease Sampling Rate by M

ELE 488 F06 Example

ELE 488 F06 Increasing Sampling Rate by L Use LPF (stopband edge ωc = π/M) to remove “image”.

ELE 488 F06 Change Sampling Rate by L/M

ELE 488 F06 Integer Subsampling by L L=2 Beware of Aliasing!

ELE 488 F06 Sampling Subsampled by 5 Noticable aliasing! Gaussian LPF (2) then Subsampled by 5 Gaussian LPF (4) then Subsampled by 5

ELE 488 F06 Resizing from M x N down to J x K M x N J x K Sinc interpolation at new grid points – not practical Use approximate reconstruction with reduced computation sample reconstruct sample