Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout...

27
Image Restoration Reference Gonzalez and Woods, Digital Image Processing, 2 nd Ed, Prentice Hall, 2002. Khan Iftekharuddin ISIP Lab

Transcript of Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout...

Page 1: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

Image Restoration

ReferenceGonzalez and Woods, Digital Image

Processing, 2nd Ed, Prentice Hall, 2002.

Khan IftekharuddinISIP Lab

Page 2: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Image RestorationImage Restoration

Page 3: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

•pdf of Gausssian random variable z:

70% of values are in [(µ-σ),(µ+σ)]

95% of values are in [(µ-2σ),(µ+2σ)]

•pdf of Rayleigh noise:

Noise ModelsNoise Models

22 2/)(

21)( σµ

σπ−−= zezp

44(4/

:var,0

,)(2)(

2

/)( 2

πσπµ −=+=

≥−=−−

bandba

areianceandmeanTheazfor

azforeazbzp

baz

Page 4: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Noise ModelsNoise Models

Erlang (Gamma) noise pdf:2

2

1

;0,0

0,)!1()(

aband

ab

zfor

zforebza

zpaz

bb

==

<

≥−=

−−

σµ

Uniform noise pdf:12

)(,2;,0

,1)(

22 abba

otherwise

bzaifabzp −

=+=

≤≤

−= σµ

Impulse (salt-and-pepper) noise pdf:

.;,0,,

)( dotlightaasappearwillblevelgrayabIfotherwise

bzforPazforP

zp b

a

−>

==

=

Page 5: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Noisy ImagesNoisy Images

Page 6: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Noisy ImagesNoisy Images

Page 7: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Noisy ImagesNoisy Images

Page 8: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Additive Noise RemovalSpatial Filtering

Additive Noise RemovalSpatial Filtering

Arithmetic Mean filter

∑∈

=xySts

tsgmn

yxf),(

),(1),(

Similar to convolution mask. Sxy is the nxn filter

Geometric mean filtermn

Sts xy

tsgyxf

1

),(

),(),(

= ∏

Harmonic filter

∑∈

=

xySts tsg

mnyxf

),( ),(1),(

Page 9: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Additive Noise RemovalSpatial Filtering

Additive Noise RemovalSpatial Filtering

Contraharmonicmean filterQ ->order of filter

For +ve->removes pepper noise

For –ve->removes salt noise

For Q=0 ->arithmetic

For Q=-1 -> mean

+

=

xy

xy

Sts

QSts

Q

tsg

tsgyxf

),(

),(

1

),(

),(),(

Page 10: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Spatial FilteringSpatial Filtering

Page 11: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Order-Statistics FiltersOrder-Statistics Filters

Filters

Median

Max and Min

Midpoint

Page 12: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Spatial FiltersSpatial Filters

Page 13: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Spatial FiltersSpatial Filters

Alpha trimmed mean filter

levelsgraytotaldtsgdmn

yxfxyStsr ;),(1),(

),(∑∈−

=

Page 14: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Adaptive Spatial FilteringAdaptive Spatial Filtering

Page 15: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Frequency filtersFrequency filters

Page 16: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Butterworth FilteringButterworth Filtering

Page 17: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Frequency FiltersFrequency Filters

Page 18: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Frequency filteringFrequency filtering

Page 19: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Interference noiseInterference noise

Page 20: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Degraded ImpulseDegraded Impulse

Page 21: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Turbulence NoiseTurbulence Noise

6/5)^2^2^{exp( vuk +−Turbulence Model

Page 22: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Blurred Image Restoration - IFBlurred Image Restoration - IF

Page 23: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Motion Blur onlyMotion Blur only

Page 24: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Inverse and least mean square (wiener) FilteringInverse and least mean square (wiener) Filtering

Page 25: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Motion Blur+ noiseIF and wiener filteringMotion Blur+ noise

IF and wiener filtering

Page 26: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Constrained least square filteringConstrained least square filtering

Page 27: Image Restoration - Old Dominion Universityww2.odu.edu/~kiftekha/ECE783_883/handout material/noise.pdfImage Restoration Reference Gonzalez and Woods, Digital Image Processing, 2nd

ISIP Lab/KMI

Iterative Constrained least square filteringIterative Constrained least square filtering