lecture 10 image restoration and reconstruction 1.basic concepts about image degradation/restoration...

22
Lecture 10 Image restoration and reconstruction 1. Basic concepts about image degradation/restoration 2. Noise models 3. Spatial filter techniques for restoration

Upload: osborne-brooks

Post on 14-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Lecture 10 Image restoration and reconstruction

1. Basic concepts about image degradation/restoration

2. Noise models

3. Spatial filter techniques for restoration

Page 2: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Image Restoration

• Image restoration is to recover an image that has been degraded by using a priori knowledge of the degradation phenomenon

• Image enhancement vs. image restoration– Enhancement is for vision– Restoration is to recover the original image– There is overlap of the techniques used

• Image restored is an approximation of the original image– Criteria for the goodness

Page 3: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

The model of Image Degradation

( , ) ( , ) ( , ) ( , )

( , ) ( , ) ( , ) ( , )

g x y h x y f x y x y

G u v H u v F u v N u v

Page 4: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Noise models

• Noise often arise during image acquisition/transformation– Caused by many factors– Spatial noise– Frequency noise

• Some important noise probability density functions– Gaussian noise– Rayleigh noise– Erlang (gamma) noise– Exponential noise– Uniform– Impulse

• Periodic noise

Page 5: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

2

2

( )

21( )

2

z z

p z e

2( ) /

2

2( ) ,

( )0,

(4 )/ 4,

4

z a bz a e z ap z b

z a

bz a b

1

22

,( ) ,( 1)!

0,

,

b baza z

e z ap z b

z a

b bz

a a

22

,( )

0,

1 1,

azae z ap z

z a

za a

22

1,

( ) 10,

( ),

2 12

a z bp z b

otherwise

a b b az

2

2

( )

0

( ),

2 12

a

b

P a z

p z P z b

otherwise

a b b az

Page 6: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Generate spatial noise of a given distribution

Theorem

Given CDF F(z). Let w be the uniform random number generator on (0,1). Then the random number has the CDF F(z)

Example: Reyleigh’s CDF is

1( )zz F w

2( ) /1( )

0

ln(1 )

z a b

z

e z aF w

z a

z a b w

Matlab example: a = 50, b =10, M = 100, N = 100;R = a + sqrt(-b*log(1-rand(M,N)));

MatLab example 2: Gaussian distribution mean a and std ba = 10, b =10, M = 100, N = 100;R = a + b*randn(M,N);

Page 7: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Add spatial noise to an image of

• Let f(x, y) be an M N image, and N(x, y) be the random MN noise of the given distribution. Then the image with the spatial noise is g(x, y) = f(x,y) + N(x,y)

MatLab example: f = imread('moon.tif');[M N] = size(f);s = uint8(a + sqrt(-b*log(1-rand(M,N))));fs = y + s;imshow(fs)

Page 8: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 9: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 10: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 11: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Estimation of Noise Parameters

• Parameters of a PDF: mean, standard deviation, variance, moments about the mean

• The method of estimation– If possible, take a flat image the system and compute its

parameter– If only images are available.

Take a strip image S. Determine the histogram of S. Let denote the frequency of value zi

1

0

1 12 2 2

0 0

1 1

0 0

( )

( ) ( ), ( ) ( )

( ) ( ), ( ),

L

i ii

L L

i i i ii i

L Ln n

n i i n i ii i

z z p z

z z p z z z p z

z z p z z p z

( )ip z

Page 12: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 13: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Spatial filters based restoration technique

• When only additive random noise is present, spatial filter can be applied

• Mean filters – Arithmetic mean filter

( , )

1ˆ( , ) ( , )

is the set of coordinates in a rectangle subimage

window (neighborhood) of size centered at ( , )

s t

xy

f x y g s tmn

S

m n x y

( , ) ( , ) ( , )

( , ) ( , ) ( , )

g x y f x y x y

G u v F u v N u v

Page 14: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration

Spatial filters based restoration technique

– Geometric mean filter

– Harmonic mean filter

– Contraharmonic mean filter

1

( , )

ˆ ( , ) ( , )xy

mn

s t S

f x y g s t

( , )

ˆ ( , )1

( , )xys t S

mnf x y

g s t

1

( , )

( , )

( , )ˆ ( , )

( , )

where is called the order of the filter. This filter is good for

reducing salt-and-pepper noise.

xy

xy

Q

s t S

Q

s t S

g s t

f x yg s t

Q

Page 15: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 16: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 17: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 18: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 19: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 20: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 21: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration
Page 22: Lecture 10 Image restoration and reconstruction 1.Basic concepts about image degradation/restoration 2.Noise models 3.Spatial filter techniques for restoration