Inverse IllPosed Problems in Image Processing Image Deblurring a - - PowerPoint PPT Presentation

inverse ill posed problems in image processing
SMART_READER_LITE
LIVE PREVIEW

Inverse IllPosed Problems in Image Processing Image Deblurring a - - PowerPoint PPT Presentation

Inverse IllPosed Problems in Image Processing Image Deblurring a 1 , M. Ple singer 2 , Z. Strako s 3 I. Hn etynkov hnetynko@karlin.mff.cuni.cz , martin.plesinger@tul.cz , strakos@cs.cas.cz 1 , 3 Faculty of Mathematics and


slide-1
SLIDE 1

Inverse Ill–Posed Problems in Image Processing

  • Image Deblurring
  • I. Hnˇ

etynkov´ a1, M. Pleˇ singer2, Z. Strakoˇ s3

hnetynko@karlin.mff.cuni.cz, martin.plesinger@tul.cz, strakos@cs.cas.cz

1,3Faculty of Mathematics and Phycics, Charles University, Prague 2Department of Mathematics, FP, TU Liberec 1,2,3Institute of Computer Science, Academy of Sciences of the Czech Republic

Schola Ludus — Nov´ e Hrady — July 25, 2012

1 / 34

slide-2
SLIDE 2

Goals of this lecture

◮ What is the inverse ill-posed problem?

(Image deblurring as an example of such problem.)

◮ What is the regularization?

How / why it works?

2 / 34

slide-3
SLIDE 3
  • Motivation. A gentle start ...

What is it an inverse problem?

3 / 34

slide-4
SLIDE 4
  • Motivation. A gentle start ...

What is it an inverse problem? Forward problem Inverse problem

[Kjøller: M.Sc. thesis, DTU Lyngby, 2007].

  • bservation b

unknown x A(x) = b A A−1

3 / 34

slide-5
SLIDE 5

More realistic examples of inverse ill-posed problems

Computer tomography in medical sciences

Computer tomograph (CT) maps a 3D object of M × N × K voxels by ℓ X-ray measurements on ℓ pictures with m × n pixels, A(·) ≡ : RM×N×K − →

  • j=1

Rm×n. Simpler 2D tomography problem leads to the Radon transform. The inverse problem is ill-posed. (3D case is more complicated.) The mathematical problem is extremely sensitive to errors which are always present in the (measured) data: discretization error (finite ℓ, m, n); rounding errors; physical sources of noise (electronic noise in semiconductor PN-junctions in transistors, ...).

4 / 34

slide-6
SLIDE 6

More realistic examples of inverse ill-posed problems

Transmision computer tomography in crystalographics

Reconstruction of an unknown orientation distribution function (ODF) of grains in a given sample of a polycrystalline matherial, A ⎛ ⎜ ⎜ ⎝ ⎞ ⎟ ⎟ ⎠ ≡ − → ⎛ ⎜ ⎜ ⎝ , . . . ⎞ ⎟ ⎟ ⎠

  • bservation = data + noise

. The right-hand side is a set of measured difractograms.

[Hansen, Sørensen, S¨ udk¨

  • sd, Poulsen: SIIMS, 2009].

Further analogous applications also in geology, e.g.:

◮ Seismic tomography (cracks in tectonic plates), ◮ Gravimetry & magnetometry (ore mineralization).

5 / 34

slide-7
SLIDE 7

More realistic examples of inverse ill-posed problems

General framework

In general we deal with a linear problem Ax = b which typically arose as a discretization of a Fredholm integral equation of the 1st kind b(s) =

  • K(s, t)x(t)dt ≡ A
  • x(t)
  • ,

and the right-hand side b is typically contaminated by noise. Our pilot application is the image deblurring problem.

6 / 34

slide-8
SLIDE 8

Mathematical model of blurring

Image deblurring—Our pilot application

Our pilot application is the image deblurring problem [J. Nagy]: A ⎛ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝

x = true image

⎞ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ =

b = blurred, noisy image

It leads to a linear system Ax = b with square nonsingular matrix. We consider gray-scale images, thus each pixel is represetned by

  • ne real number, e.g., from the interval [0, 1] ≡ [black, white].

7 / 34

slide-9
SLIDE 9

Mathematical model of blurring

Blurring as an operator of the vector space of images

Consider a single-pixel-image (SPI) and a blurring operator A as follows A(X) = A ⎛ ⎜ ⎜ ⎝ ⎞ ⎟ ⎟ ⎠ = = B. and denote X = [x1, . . . , xn], B = [b1, . . . , bn] ∈ Rm×n. Consider a mapping vec : Rm×n − → Rmn such that x = vec(X) ≡ [xT

1 , . . . , xT n ]T .

The picutre B is called point-spread-function (PSF).

8 / 34

slide-10
SLIDE 10

Mathematical model of blurring

Reshaping

b = B b b b = [ , ,..., ]

1 2 w

[ ]

b b b

1 2

...

w

B = [b1, . . . , bn] b = ⎡ ⎢ ⎣ b1 . . . bn ⎤ ⎥ ⎦ b = vec(B)

9 / 34

slide-11
SLIDE 11

Mathematical model of blurring

Linear and spatial invariant operator

Linearity + spatial invariance: ↓ ↓ ↓ ↓ ↓ ↓ + + + + = + + + + = First row: Original (SPI) images (matrices X). Second row: Blurred (PSF) images (matrices B = A(X)).

10 / 34

slide-12
SLIDE 12

Mathematical model of blurring

Matrix A

11 / 34

slide-13
SLIDE 13

Mathematical model of blurring

Point—spread—function (PSF)

Examples of PSFA:

horizontal vertical

  • ut-of-focus

Gaußian motion blur motion blur blur blur

(Note: Action of the linear and spatial invariant blurring operator A(X) on the given image X is done by 2D convolution of the image with the PSF corresponding to the operator.)

12 / 34

slide-14
SLIDE 14

System of linear algebraic equations

Smoothing properties

If A is linear, then A(X) = B, the problem A(X) = B can be rewritten as a system of linear algebraic equations Ax = b, A ∈ Rmn×mn, x = vec(X), b = vec(B) ∈ Rmn. The kernel K(s, t) in the underlying Fredholm equation b(s) =

  • K(s, t)x(t)dt,

◮ has smoothing property, ◮ thus the function b(s) is smooth (recall the blurred image).

Because A and b are restrictions of K(s, t), and y(s); the linear system Ax = b in some sense inherits these properties.

13 / 34

slide-15
SLIDE 15

System of linear algebraic equations

Singular valued decomposition

For any matrix A ∈ RM×N, r = rank(A) there exist orthogonal matrices U = [u1, . . . , uM] ∈ RM×M, U−1 = UT V = [v1, . . . , vN] ∈ RN×N, V −1 = V T and diagonal matrix Σ = diag(σ1, . . . , σN) ∈ RM×N, σ1 ≥ . . . ≥ σr > 0 with r positive nonincreasing entries on the diagonal, such that A = U Σ V T, A = u1 σ1 v T

1

  • A1

+ . . . + ur σr v T

r

  • Ar

. It is called the singular value decomposition (SVD). (See also the principal component analysis (PCA).)

14 / 34

slide-16
SLIDE 16

System of linear algebraic equations

Singular valued decomposition

A U

  • V

T

A A1 A2 Ar -1 Ar ... + + + +

i = 1 r

Ai

A =

15 / 34

slide-17
SLIDE 17

System of linear algebraic equations

Singular valued decomposition

In our case the matrix A is square nonsingular (i.e. M = N = r), and, symmetric positive definite (i.e. the SVD is identical to the spectral decomposition of A). Using the SVD the soution of Ax = b, A ∈ RN×N, N = mn, can be written as x = A−1b = V Σ−1UTb = N

j=1

uT

j b

σj vj. Recall that σ1 ≥ σ2 ≥ . . . ≥ σN > 0.

16 / 34

slide-18
SLIDE 18

Properties of the problem

The Discrete Picard condition (DPC)

The singular values σj of A decay but the sum x = N

j=1

uT

j b

σj vj represents some “real data”. By the (discrete) Picard condition: the projections |uT

j b| has to decay on average faster than σj.

10 20 30 40 50 60 10

−40

10

−30

10

−20

10

−10

10

singular value number

σj, double precision arithmetic σj, high precision arithmetic |(bexact, uj)|, high precision arithmetic 17 / 34

slide-19
SLIDE 19

Properties of the problem

Singular vectors of A

Left singular vectors of A represent bases with increasing frequencies:

200 400 −0.1 0.1 u1 200 400 −0.1 0.1 u2 200 400 −0.1 0.1 u3 200 400 −0.1 0.1 u4 200 400 −0.1 0.1 u5 200 400 −0.1 0.1 u6 200 400 −0.1 0.1 u7 200 400 −0.1 0.1 u8 200 400 −0.1 0.1 u9 200 400 −0.1 0.1 u10 200 400 −0.1 0.1 u11 200 400 −0.1 0.1 u12

(1D ill-posed problem SHAW(400) [Regularization Toolbox]).

18 / 34

slide-20
SLIDE 20

Properties of the problem

Right singular vectors ≡ Singular images

Reshaped right singular vectors of A (singular images) (Image deblurring problem, Gaußian blur, zero BC).

19 / 34

slide-21
SLIDE 21

Impact of noise

Noise, Sources of noise

Consider a problem of the form Ax = b, b = bexact + bnoise, bexact ≫ bnoise, where bnoise is unknown and represents, e.g.,

◮ rounding errors, ◮ discretization error, ◮ noise with physical sources.

We want to compute (approximate) xexact ≡ A−1bexact. The vector bnoise typically resebles white noise, i.e. it has flat frequency characteristics.

20 / 34

slide-22
SLIDE 22

Impact of noise

Violation of the discrete Picard condition

Recall that the singular vectors of A represent frequencies. Thus the white noise components in left singular subspaces are about the same order of magnitude. The vector bnoise violates the discrete Picard condition. Summarizing:

◮ bexact has some real pre-image xexact, it satifies DPC ◮ bnoise does not have any real pre-image, it violates DPC.

21 / 34

slide-23
SLIDE 23

Impact of noise & regularization

Violation of the discrete Picard condition

Violation of the discrete Picard condition by noise (SHAW(400)):

50 100 150 200 250 300 350 400 10

−20

10

−15

10

−10

10

−5

10 10

5

singular value number

σj |(b, uj)| for δnoise = 10−14 |(b, uj)| for δnoise = 10−8 |(b, uj)| for δnoise = 10−4

22 / 34

slide-24
SLIDE 24

Impact of noise & regularization

Violation of the discrete Picard condition

Consider the naive solution x = A−1b = A−1bexact + A−1bnoise, using the singular value expansion x = A−1b = N

j=1

uT

j b

σj vj = N

j=1

uT

j bexact

σj vj

  • xexact

+ N

j=1

uT

j bnoise

σj vj

  • amplified noise

. Thus, even for bexact ≫ bnoise, A−1bexact ≪ A−1bnoise, the data are covered by the inverted noise.

23 / 34

slide-25
SLIDE 25

Regulaization

MatLab demo

24 / 34

slide-26
SLIDE 26

Regulaization

Filtered solution, Truncated SVD filter

The impact of noise can be eliminated by filtering the solution xFilt =

N

  • j=1

φj uT

j b

σj vj instead of x = A−1b =

N

  • j=1

uT

j b

σj vj. The simplest case is the truncated SVD (TSVD) filter φj = 1, forj ≤ k 0, forj > k xTSVD(k) =

k

  • j=1

uT

j b

σj vj, k ≪ N. Disadvantage: We have to know the SVD of A explicitely.

25 / 34

slide-27
SLIDE 27

Regulaization

TSVD filter

1 2 3 4 5 6 7 8 x 10

4

10

−12

10

−10

10

−8

10

−6

10

−4

10

−2

10 10

2

10

4

singular values of A and TSDV filtered projections u

i Tb

filtered projections φ(i) ui

Tb

singular values σi noise level filter function φ(i)

26 / 34

slide-28
SLIDE 28

Regulaization

TSVD solution

TSVD solution, k = 2983 50 100 150 200 250 300 50 100 150 200 250 27 / 34

slide-29
SLIDE 29

Regulaization

Tikhonov regularization

Recall that the norm A−1b ≥ A−1bnoise can be large. The goal of Tikhonov regularization is to minimize both, the residual norm and the solution norm xTikh(λ) = arg min

x {b − Ax2 + λ2x2},

for some λ. (It represents a least squares problem.) Using the SVD of A the Tikhonov solution can be written as xTikh =

N

  • j=1

σ2

j

σ2

j + λ2

uT

j b

σj vj. Which is the filtered solution with filter factors φj =

σ2

j

σ2

j +λ2 . 28 / 34

slide-30
SLIDE 30

Regulaization

Tikhonov filter

1 2 3 4 5 6 7 8 x 10

4

10

−25

10

−20

10

−15

10

−10

10

−5

10 10

5

singular values of A and Tikhonov filtered projections ui

Tb

filtered projections φ(i) ui

Tb

singular values σi noise level filter function φ(i)

29 / 34

slide-31
SLIDE 31

Regulaization

Tikhonov solution

Tikhonov solution, λ = 8*10−4 50 100 150 200 250 300 50 100 150 200 250 30 / 34

slide-32
SLIDE 32

Regulaization

Choosing the parameter

Choosing of the regularization parameter (k or λ):

◮ Discrepancy principle [Morozov ’66, ’84] ◮ Generalized cross validation (GCV) [Chung, Nagy, O’Leary

’04], [Golub, Von Matt ’97], [Nguyen, Milanfar, Golub ’01]

◮ L-curve [Calvetti, Golub, Reichel ’99] ◮ Normalized cumulative periodograms (NCP) [Rust ’98, ’00],

[Rust, O’Leary ’08], [Hansen, Kilmer, Kjeldsen ’06]

◮ ...

31 / 34

slide-33
SLIDE 33

Regulaization

Iterative and hybrid approaches

Stationary iterative methods:

◮ Simultaneous iterative reconstruction techniques (SIRT)

(Landweber, Cimminio iteration)

◮ Kaczmar’s method / algebraic reconstuction techniques

(ART) Projection methods (Krylov subspace metods):

◮ CGLS, LSQR, CGNE

Hybrid methods [O’Leary, Simmons ’81], [Hansen ’98], [Fiero, Golub, Hansen, O’Leary ’97], ... and many others

32 / 34

slide-34
SLIDE 34

References

Textbooks + software

Textbooks:

◮ Hansen, Nagy, O’Leary: Deblurring Images, Spectra, Matrices,

and Filtering, SIAM, FA03, 2006.

◮ Hansen: Discrete Inverse Problems, Insight and Algorithms,

SIAM, FA07, 2010. Sofwtare (MatLab toolboxes):

◮ HNO package, ◮ Regularization tools, ◮ AIRtools, ◮ ...

(software available on the homepage of P. C. Hansen).

33 / 34

slide-35
SLIDE 35

Thank You for Your Attention!

34 / 34