• Keine Ergebnisse gefunden

A Shock-Capturing Algorithm for the Differential Equations of Dilation and Erosion

N/A
N/A
Protected

Academic year: 2021

Aktie "A Shock-Capturing Algorithm for the Differential Equations of Dilation and Erosion"

Copied!
28
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Mathematical Image Analysis Group, Saarland University http://www.mia.uni-saarland.de

A Shock-Capturing Algorithm for the Differential Equations of Dilation and Erosion

talk by Sebastiano Barbieri 23 May 2007

based on a paper by M. Breuß, J. Weickert

Outline:

Introduction

Reminder about Upwinding

The FCT Scheme for 1-D Dilation

1 2 3 4 5 6 7 8 9 10 11

(2)

Introduction

The two basic morphological processes of dilation and erosion (using a disc as structuring element) are described by the PDE

tu = ±k∇uk2

Prominent numerical methods used to solve this PDE include the upwinding schemes proposed by Osher-Sethian and Rouy-Tourin.

Both suffer from undesirable blurring effects, also called numerical viscosity.

This problem is overcome by the flux corrected transport (FCT) technique by Breuß-Weickert.

Left: Initial image. Middle: Erosion by Rouy-Tourin scheme.

1 2 3 4 5 6 7 8 9 10 11 12 13

(3)

Reminder about Upwinding

The notion of “upwinding” comes from thinking of a sailboat which turns its sails into the direction of the wind. For numerical methods this means in analogy that derivatives are approximated by one-sided differences, in the direction from which information is coming.

Example of upwind scheme

For a general one-dimensional hyperbolic first-order PDE ∂tu + ∂x(f(u)) = 0 the

“direction of the wind” is to the right in case f0(.) ≥ 0 and to the left in case

0

1 2 3 4 5 6 7 8 9 10 11

(4)

The FCT Scheme for 1-D Dilation Basic Idea

For the 1-D dilation equation ∂tu = ∂xu the “blurry” Rouy-Tourin scheme uses the first-order approximation

xu ≈ 1

h max(0, δUj+1/2n , −δUjn−1/2) where δUjn+1/2 = Ujn+1 − Ujn and δUjn−1/2 = Ujn − Ujn−1.

The basic idea behind the FCT scheme is to rewrite these one-sided discrete

differences (which are a first order approximation of ∂xu) as the sum of a second order approximation of ∂xu and a so called viscosity term. This term is

responsible for the blurring artifacts in the results.

Therefore what can be done is to:

1. calculate the value of Ujn+1 by the Rouy-Tourin scheme in an initial predictor step.

2. subtract the viscosity term from Ujn+1 in a corrector step.

1 2 3 4 5 6 7 8 9 10 11 12 13

(5)

The FCT Scheme for 1-D Dilation Different Cases: Case I

If δUjn−1/2 ≥ 0 and δUjn+1/2 > 0 the upwind scheme reads:

Ujn+1 − Ujn

τ = Uj+1n − Ujn h

= Uj+1n − Ujn−1

+ Uj+1n − Ujn

− Ujn − Uj−1n

1 2 3 4 5 6 7 8 9 10 11

(6)

The FCT Scheme for 1-D Dilation Different Cases: Case II

If δUjn−1/2 < 0 and δUjn+1/2 ≤ 0 the upwind scheme reads:

Ujn+1 − Ujn

τ = − Ujn − Uj−1n h

= Uj−1n − Uj+1n 2h

| {z }

(a)

+ Uj+1n − Ujn

2h − Ujn − Uj−1n 2h

| {z }

(b)

where (a) is a different second order approximation of |∂xu| but the viscosity term (b) is the same as in “Case I”.

1 2 3 4 5 6 7 8 9 10 11 12 13

(7)

The FCT Scheme for 1-D Dilation Different Cases: Case III - Local Minima

If δUjn−1/2 < 0 and δUjn+1/2 ≥ 0 the upwind scheme reads:

Ujn+1 − Ujn

τ = max

Uj+1n − Ujn

h ,−Ujn − Uj−1n h

where we have the same viscosity form as in “Case I” and “Case II” respectively.

1 2 3 4 5 6 7 8 9 10 11

(8)

The FCT Scheme for 1-D Dilation Different Cases: Case IV - Local Maxima

If δUjn−1/2 ≥ 0 and δUjn+1/2 ≤ 0 the upwind scheme reads:

Ujn+1 − Ujn

τ = 0

according to the principle that local maxima are maintained.

1 2 3 4 5 6 7 8 9 10 11 12 13

(9)

The FCT Scheme for 1-D Dilation Summary of Cases I to IV

Cases I to IV can be summarized as:

Ujn+1 =

Ujn for local maxima

Ujn + λ2|∆Ujn| + λ2δUjn+1/2λ2δUjn−1/2 else

where λ = hτ and ∆Ujn = Ujn+1 − Uj−1n .

This scheme is identical to the Rouy-Tourin method, but we have gained that we can now identify the numerical viscosity arising by the first order approximation of the spatial derivative.

1 2 3 4 5 6 7 8 9 10 11

(10)

The 1-D FCT Step

Let us define:

• Ujn+1/2 as the data obtained by the upwind scheme starting from Ujn

• Ujn+1 as the data obtained after subtracting the viscosity term from Ujn+1/2

Simply subtracting the viscosity term from Ujn+1/2 would lead to unstable evolutions, therefore we have to introduce the function g defined as:

gj+1/2 := minmod

δUj−1/2n+1/2, λ

2 δUj+1/2n+1/2, δUjn+1/2+3/2

minmod(a, b, c) := sign(b) max

0, min(sign(b) · a, |b|, sign(b) · c)

The middle argument of g corresponds indeed to the viscosity term, whereas the left and right arguments are responsible for stabilization.

Finally Ujn+1 is given by

Ujn+1 = Ujn+1/2 − gj+1/2 + gj−1/2

Stability Result: if τ ≤ h is chosen, the investigated scheme satisfies locally and globally a discrete maximum-minimum principle.

1 2 3 4 5 6 7 8 9 10 11 12 13

(11)

The 2-D FCT Scheme

The extension of the one-dimensional analysis to the two-dimensional dilation/erosion PDE

t = ±k∇uk2 = q

|∂xu|2 + |∂yu|2

is straightforward.

Again, the idea is to separate the viscosity term from a second-order discretization of |∂xu| and |∂yu|.

Stability Result: if τ ≤ h

2 is chosen, also the 2-D FCT scheme satisfies locally and globally a discrete maximum-minimum principle.

1 2 3 4 5 6 7 8 9 10 11

(12)

Examples

Left: Initial image. Middle: Erosion by FCT scheme.

Right: Dilation by FCT scheme (in both cases τ = 0.5,3 iterations).

1 2 3 4 5 6 7 8 9 10 11 12 13

(13)

Examples

Left: Initial image. Middle: Beucher gradient by Rouy-Tourin scheme.

Right: Beucher gradient by FCT scheme (in both cases τ = 0.5,2 iterations).

It is possible to see that the Beucher gradient (difference between dilated and eroded image) calculated by the FCT scheme appears less blurred than the Beucher gradient calculated by the Rouy-Tourin scheme.

1 2 3 4 5 6 7 8 9 10 11

(14)

Conclusions

Conclusions:

• The FCT scheme by Breuß-Weickert overcomes blurring problems typical of classical upwind schemes.

• The basic idea for deriving the FCT scheme is to rewrite the one-sided discrete differences (which approximate ∂xu) as the sum of a second order

approximation of ∂xu and a so called viscosity term, which will later be subtracted from the solution.

Bibliography

1. M. Breuß, J. Weickert:

A shock-capturing algorithm for the differential equations of dilation and erosion.

Journal of Mathematical Imaging and Vision, Vol. 25, 187-201, 2006.

1 2 3 4 5 6 7 8 9 10 11 12 13

(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)

Referenzen

ÄHNLICHE DOKUMENTE

Key words: Klein–Gordon Equation; Exponential Time Differencing; Integrating Factor; Spectral Methods; High Accuracy; Soliton; Conservation of

Equation 8 may be used to calculate the probability that a patient experiences a length of stay equal to t2 in care stage B, given that in the previous stage of care stage A they

Theorem 2.18 essentially states that the approximation order which can be achieved by uniform linear schemes depends on the regularity of the object under consideration in the

Some authors have proposed different numerical methods which show moment preservation numerically with respect to the total number or total mass for an individual process

In this work we study the problem of step size selection for numerical schemes, which guarantees that the numerical solution presents the same qualitative behavior as the

How- ever, the mixture of these two types of equations (DAEs and DDEs) leads to substantial mathematical difficulties and many open questions for DDAEs, even for fundamental

The third section on the other hand uses the asset register as basis for developing a template for information users setting up new information assets or work spaces on

• Numerical determination of water influx requirements and parameters for analytical aquifer models by matching of field and region pressure history for the Sabah field using