2007Theo Schouten1 Restoration With Image Restoration one tries to repair errors or distortions in an image, caused during the image creation process.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

QR Code Recognition Based On Image Processing
Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
2007Theo Schouten1 Transformations. 2007Theo Schouten2 Fourier transformation forward inverse f(t) = cos(2*  *5*t) + cos(2*  *10*t) + cos(2*  *20*t)
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
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing
Image Restoration.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
Digital Image Processing Chapter 5: Image Restoration.
Image Restoration.
1 Image filtering Hybrid Images, Oliva et al.,
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.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
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.
1 Chapter 8: Image Restoration 8.1 Introduction Image restoration concerns the removal or reduction of degradations that have occurred during the acquisition.
Image Processing in Freq. Domain Restoration / Enhancement Inverse Filtering Match Filtering / Pattern Detection Tomography.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Restoration.
Computer Vision - Restoration Hanyang University Jong-Il Park.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Image Preprocessing: Geometric Correction Image Preprocessing: Geometric Correction Jensen, 2003 John R. Jensen Department of Geography University of South.
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.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
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.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Image Restoration.
Digital Image Processing Lecture : Image Restoration
Image Restoration Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng Kung University Last.
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;
GEOMETRIC OPERATIONS. Transformations and directions Affine (linear) transformations Translation, rotation and scaling Non linear (Warping transformations)
Typical Types of Degradation: Motion Blur.
Digital Image Processing CSC331 Image restoration 1.
Digital Image Processing Lecture 11: Image Restoration March 30, 2005 Prof. Charlene Tsai.
Chapter 5 Image Restoration.
Digital Image Processing CSC331 Image restoration 1.
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.
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
Digital Image Processing Lecture 10: Image Restoration
Degradation/Restoration Model
Image Restoration – Degradation Model and General Approaches
Image Geometry and Geometric Transformation
DIGITAL IMAGE PROCESSING
IMAGE RESTORATION.
Lecture 11 Image restoration and reconstruction II
Image Analysis Image Restoration.
Image filtering Hybrid Images, Oliva et al.,
Image Restoration and Denoising
ENG4BF3 Medical Image Processing
Basic Image Processing
Lecture 14 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
Digital Image Processing
Image filtering
Image filtering
Typical Types of Degradation: Motion Blur.
- Final project of digital signal processing
Digital Image Processing Lecture 11: Image Restoration
Presentation transcript:

2007Theo Schouten1 Restoration With Image Restoration one tries to repair errors or distortions in an image, caused during the image creation process. In general our starting point is a degradation and noise model: g(x,y) = H ( f(x,y) ) +  (x,y) Determined by quality of equipment and image taking conditions: image restoration is computationally complex equipment as degradation free as possible seen technical and financial limitations medical: low radiation, little time in magnet-tube lowest image quality to achieve medical goals web-cams: cheap lens distortions corrected by CPU in cam

2007Theo Schouten2 Noise functions

2007Theo Schouten3 Only noise See also enhancement, mean and median filters

2007Theo Schouten4 Mars, mariner 6

2007Theo Schouten5 Linear degradation When the degradation process is linear: H( k 1 f 1 + k 2 f 2 ) = k 1 H( f 1 ) + k 2 H( f 2 ) we can write (we temporarily leave the noise out of consideration): g(x,y) = H(f(x,y)) = H(  f( ,  )  (x- ,y-  ) d  d  ) =  f( ,  ) H(  (x- ,y-  ) ) d  d  =  f( ,  ) h(x, ,y,  ) d  d  h(x, ,y,  ) is the "impulse response" or "point spread function", the degraded image of an ideal light point. The integral is called the "superposition“ or "Fredholm” integral of the first kind.

2007Theo Schouten6 Position invariant, inverse filtering When H is a spatial invariant: Hf(x- ,y-  )=g(x- ,y-  ) then: h(x, ,y,  ) = h(x- ,y-  ) and g(x,y) =  f( ,  ) h(x- ,y-  ) d  d  a convolution integral, and taking into account the noise: G(u,v) = H(u,v)F(u,v) + N(u,v) Inverse filtering: G(u,v)/H(u,v) = F(u,v) + N(u,v)/H(u,v) Problems: if H(u,v) = 0, or small: noise is blown up pseudo-inverse filter: use only parts of H(u,v)

2007Theo Schouten7 Degradation function by experiment

2007Theo Schouten8 by modelling H(u,v)= exp( -k(u 2 +v 2 ) 5/6 ) atmosferic turbulence model

2007Theo Schouten9 by calculation, linear motion Suppose a movement of the image during shutter opening: g(x,y) =  0 T f(x-x 0 (t),y-y 0 (t)) dt G(u,v)=   [  0 T f(x-x 0 (t),y-y 0 (t)) dt ] e -j2  (ux+vy) dxdy = F(u,v)  0 T e -j2  [uxo(t)+vy0(t)] dt = F(u,v) H(u,v) With linear motion x 0 (t)=at/T and y 0 (t)=bt/T : H(u,v)= {T/[  (ua+vb)] } sin[  (ua+vb)] e -j  [ua+vb] This has a lot of 0’s : (ua+vb) = n (any integer) pseudo-inverse filter is useless

2007Theo Schouten10 Linear motion blur

2007Theo Schouten11 Pseudo-inverse filter

2007Theo Schouten12 Gaussian movement A 1-D Gaussian kernel for distortions in the horizontal direction. The intensity of each pixel is spread out over the neighboring pixels according to this kernel. Power spectrum Inverse filter

2007Theo Schouten13 with noise Uniform noise [0,1] added (rounding floating point to unsigned byte) Movement lines disappear due to noise Inverse filter: nothing Pseudo-inverse filter, only when H(u,v) > T

2007Theo Schouten14 Wiener filtering minimum mean square error: e 2 = E{ (f-f c ) 2 } F c (u,v) =[1/H(u,v)] [ |H(u,v| 2 / (|H(u,v| 2 +S  (u,v)/S f (u,v))] G(u,v) S  (u,v) = |N(u,v)| 2 power spectrum of noise Approximations of S  (u,v)/S f (u,v): K (constant)  |P(u,v)| 2 (power spectrum of Laplacian)  found by iterative method to minimize e 2 (constrained least squares filtering)

2007Theo Schouten15 Example Wiener filter Original Noise added Pseudo-inverse Wiener filter

2007Theo Schouten16 Linear motion Wiener filter

2007Theo Schouten17 Geometric distorsion Lenses often show a typical pincushion or barrel deviation. When the projection function x'=g(x) is known, for each measured pixel it can be determined from which parts of ideal pixels it is buit up. If the inverse function g -1 is known, then for each ideal pixel we can determine from which parts of the distorted pixels it is built up of.

2007Theo Schouten18 Corrections Original Nearest neighbor Bilinear interpolation More complex, slower: bilinear interpolation subsampling e.g. 5x5

2007Theo Schouten19 Calibration Calibration, e.g. x’ = a +b x +c y and y’ = r +s x +t y : affine transformations Also higher order terms like d x 2 + e y 2 + f xy

2007Theo Schouten20 Fish eye lens x' = x + x*(K 1 *r 2 + K 2 *r 4 + K 3 *r 6 ) + P 1 *(r 2 + 2*x 2 ) + 2*P 2 *x*y y' = y + y*(K 1 *r 2 + K 2 *r 4 + K 3 *r 6 ) + P 2 *(r 2 + 2*y 2 ) + 2*P 1 *x*y