johann radon institute for computational and applied mathematics: 1/25 signal- und...

25
1/25 Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing Arjan Kuijper 23.11.2006 Johann Radon Institute for Computational and Applied Mathematics (RICAM) Austrian Academy of Sciences Altenbergerstraße 56 A-4040 Linz, Austria [email protected]

Upload: bernard-wilder

Post on 31-Mar-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

1/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Signal- und Bildverarbeitung, 323.014

Image Analysis and Processing

Arjan Kuijper

23.11.2006

Johann Radon Institute for Computational and Applied Mathematics (RICAM)

Austrian Academy of Sciences Altenbergerstraße 56A-4040 Linz, Austria

[email protected]

Page 2: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

2/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Last week

• The diffusion can be made locally adaptive to image structure. Three mathematical approaches are discussed:1. PDE-based nonlinear diffusion, where the luminance function

evolves as the divergence of some flow. 2. Evolution of the isophotes as an example of curve-evolution;3. Variational methods, minimizing an energy functional defined on

the image.• The nonlinear PDE's involve local image derivatives, and

cannot be solved analytically.• Adaptive smoothing requires geometric reasoning to define

the influence on the diffusivity coefficient. • The simplest equation is the equation proposed by Perona &

Malik, where the variable conduction is a function of the local edge strength. Strong gradient magnitudes prevent the blurring locally, the effect is edge preserving smoothing.

• The Perona & Malik equation leads to deblurring (enhancing edges) for edges larger than the turnover point k, and blurs smaller edges.

Page 3: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

3/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Today

• Total Variation– Rudin – Osher – Fatemi (ROF) Model– Denoising– Edge preserving– Energy minimizing– Bounded variation

Taken from:

Page 4: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

4/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• Let the observed intensity function u0(x, y) denote the pixel values of a noisy image for x, y . Let u(x, y) denote the desired clean image, so

with n additive white (0,)noise.

• The constrained minimization problem is: Min(H|I1,I2) = Min (H - 1I1 - 2I2)

Page 5: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

5/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• We arrive at the Euler-Lagrange equations 0= H - 1I1 - l2I2

• Integrating the expression over gives 1 = 0. So the average intensity is kept.

Page 6: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

6/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• The solution procedure uses a parabolic equation with time as an evolution parameter, or equivalently, the gradient descent method. This means that we solve

Page 7: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

7/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• We must compute (t). We merely multiply the equation in by (u - u0) and integrate by parts over . We then have

Page 8: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

8/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• The numerical method in two spatial dimensions is as follows:

Page 9: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

9/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• The numerical approximation is

Page 10: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

10/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• and n is defined discreetly via

• A step size restriction is imposed for stability:

Page 11: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

11/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Results

Page 12: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

12/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Page 13: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

13/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• Original• Noisy• Wiener• TV

Page 14: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

14/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• Do it slightly sloppy:

• demo

L t = r ¢¡kr Lk¡ 1r L

¢+ ¸(L ¡ L0)

±L = C ¢D¡i ;j

¡kD+

i;j Lk¡ 1D+i;j L

¢+¸(L ¡ L0)

Page 15: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

15/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

• Write

• Then I(u) is a constant of motion: I(u0)=I(ut):

• Then the pde converges to a minimum on the manifold given by the constraints:

ut = ¡ (±H ¡ ¸±I )

@tI (u) =< ±I ;ut >= 0

@tH(u) = ¡ u2t · 0

¸ = <±H ;±I ><±I ;±I >

< A;B >=R

A ¢B d

Page 16: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

16/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Some extensions

• A blurred noisy image:

u0 = (Au)(x,y) + n(x,y)

where A is a compact operator on L2.

• Multiplicative noise & blurring

u0 = [(Au)(x,y) ] n(x,y)u0 = (Au)(x,y) + [u(x,y) n(x,y)]

• Smarter functional:H =

R

Á(jr L j)d

Page 17: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

17/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Recent Developments in Total Variation Image Restoration

• T. Chan, S. Esedoglu, F. Park, A. YipHandbook of Mathematical Models in Computer Vision

Since their introduction in a classic paper by Rudin, Osher and Fatemi, total variation minimizing models have become one of the most popular and successful methodology for image restoration.

More recently, there has been a resurgence of interest and exciting new developments, some extending the applicabilities to inpainting, blind deconvolution and vector-valued images, while others offer improvements in better preservation of contrast, geometry and textures, in ameliorating the stair casing effect, and in exploiting the multi-scale nature of the models.

In addition, new computational methods have been proposed with improved computational speed and robustness.

Page 18: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

18/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Properties

• Total variation based image restoration models were first introduced by Rudin, Osher, and Fatemi (ROF) in their pioneering work on edge preserving image denoising.

• It is one of the earliest and best known examples of PDE based edge preserving denoising.

• It was designed with the explicit goal of preserving sharp discontinuities (edges) in images while removing noise and other unwanted fine scale detail.

• Being convex, the ROF model is one of the simplest variational models having this most desirable property.

• The revolutionary aspect of this model is its regularization term that allows for discontinuities but at the same time disfavors oscillations.

Page 19: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

19/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Properties

• The constraint of the optimization forces the minimization to take place over images that are consistent with this known noise level.

• The objective functional itself is called the total variation (TV) of the function u(x); for smooth images it is equivalent to the L1 norm of the derivative, and hence is some measure of the amount of oscillation found in the function u(x).

Page 20: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

20/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Remark

• The step from

to

is not trivial!

Page 21: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

21/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

BV

• The space of functions with bounded variation (BV) is an ideal choice for minimizers to the ROF model since BV provides regularity of solutions but also allows sharp discontinuities (edges). Many other spaces like the Sobolev space W1,1 do not allow edges.

• Before defining the space BV, we formally state the definition of TV as:

where and is a bounded open set.• We can now define the space BV as

• Thus, BV functions amount to L1 functions with bounded TV semi-norm.

Page 22: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

22/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

TV & Contours

• Why does this work?Ignoring the constraints we get

• The TV norm of f can be obtained by integrating along all contours of f = c for all values of c.

• Thus, one can view TV as controlling both the size of the jumps in an image and the geometry of the isophotes (level sets).

@f@t = f v v

f w= ¡ · !

Page 23: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

23/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Caveats

• While using TV-norm as regularization can reduce oscillations and regularize the geometry of level sets without penalizing discontinuities, it possesses some properties which may be undesirable under some circumstances.– Loss of contrast: The total variation of a function, defined

on a bounded domain, is decreased if we re-scale it around its mean value in such a way that the difference between the maximum and minimum value (contrast) is reduced.

– Loss of geometry: In addition to loss of contrast, the TV of a function may be decreased by reducing the length of each level set.

– Staircasing: This refers to the phenomenon that the denoised image may look blocky (piecewise constant).

– Loss of Texture: Although highly effective for denoising, the TV norm cannot preserve delicate small scale features like texture.

Page 24: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

24/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Summary

• Total variation minimizing models have become one of the most popular and successful methodology for image restoration.

• ROF is one of the earliest and best known examples of PDE based edge preserving denoising.

• It was designed with the explicit goal of preserving sharp discontinuities (edges) in images while removing noise and other unwanted fine scale detail.

• However, it has some drawbacks as shown in the previous slides

Page 25: Johann Radon Institute for Computational and Applied Mathematics:  1/25 Signal- und Bildverarbeitung, 323.014 Image Analysis and Processing

25/25Johann Radon Institute for Computational and Applied Mathematics: www.ricam.oeaw.ac.at

Next week

• Non-linear diffusion:

Mean curvature motion– Curve evolution– Denoising– Edge preserving– Implementation– Isophote vs. image implementation