On Implicit Image Derivatives and Their Applications Alexander - - PowerPoint PPT Presentation

on implicit image derivatives and their applications
SMART_READER_LITE
LIVE PREVIEW

On Implicit Image Derivatives and Their Applications Alexander - - PowerPoint PPT Presentation

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion On Implicit Image Derivatives and Their Applications Alexander Belyaev Mohamed Omran Uni Saarland Milestones and Advances in Image Analysis, 2012 1 / 32


slide-1
SLIDE 1

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion

On Implicit Image Derivatives and Their Applications

Alexander Belyaev Mohamed Omran

Uni Saarland

Milestones and Advances in Image Analysis, 2012

1 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-2
SLIDE 2

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

2 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-3
SLIDE 3

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

3 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-4
SLIDE 4

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

The Importance of Image Derivatives

differentiation: one of the most fundamental tasks of low level image processing used to detect edges and corners: perceptual building blocks necessary for a host of other image processing operations: e.g. smoothing, deblurring, segmentation

Figure: From Dalal & Triggs, 2005

4 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-5
SLIDE 5

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

5 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-6
SLIDE 6

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

Contributions

derivatives in image processing typically obtained using imprecise explicit schemes main contributions [2, 3]:

1

establishing a link between implicit and explicit finite differences used for gradient estimation

2

introducing new implicit differencing schemes and evaluating their properties

3

attempting to demonstrate the usefulness and potential of implicit finite differencing schemes for image processing tasks

6 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-7
SLIDE 7

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

7 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-8
SLIDE 8

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Basic Problem Current Approach Previous Work

Implicit Finite Differences

common among numerical mathematicians and computational physicists seminal paper by Lele [1]: demonstrated superior performance

  • f implicit finite difference schemes

uses (among others):

1

accurate numerical simulations of physical problems involving wave propagation phenomena

2

modelling weather phenomena

3

accurate visualisation of volumetric data

8 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-9
SLIDE 9

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

9 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-10
SLIDE 10

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Explicit vs. Implicit Methods

categorisation of numerical schemes

explicit methods: dependent variable can be obtained directly from input variables implicit methods: more complex relationship between variables, requires solving systems of linear equations

10 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-11
SLIDE 11

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

11 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-12
SLIDE 12

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Taylor Approximations

Definition (Taylor Approximant of Order k) f (x + h) =

k

  • i=0

f (i)(x) i! (h)i + Rk(h) = f (x) + f ′(x)(h) + . . . + f (k)(x) k! (h)k + Rk(h) (1) approximation of a function f, centered at x used to derive explicit finite difference schemes

12 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-13
SLIDE 13

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Padé Approximations

Definition (Padé Approximant of Order m/n) R(x) =

m

  • j=0

ajxj 1 +

n

  • k=1

bkxk = a0 + a1x + a2x2 + . . . + amxm 1 + b1x + b2x2 + . . . + bnxn (2) approximation of a function by a rational function

  • ften more precise than the Taylor approximation

later used to derive powerful implicit differentiation schemes

13 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-14
SLIDE 14

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

14 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-15
SLIDE 15

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

Differentiation in the Frequency Domain

differentiation is a linear operation, thus has interesting properties in the frequency domain in particular: F[f n)] = (jω)nF[f ](u), with ω = 2πu

0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 Wavenumber ω Modified wavenumber ideal derivative

Figure: Ideal Derivative

15 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-16
SLIDE 16

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

16 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-17
SLIDE 17

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Standard Central Difference

Definition (Central Difference Operator) f ′(x) ≈ 1 2h [f (x + h) − f (x − h)] (3) 1 2h

  • −1

1

  • (4)

frequency response of the central difference operator: jsinω for 2D: rotate the mask for differentiation in y-direction with estimates for fx and fy, we can compute gradient magnitude and gradient orientation

17 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-18
SLIDE 18

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Introducing Rotation Invariance

0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 Wavenumber ω Modified wavenumber ideal derivative 2nd−order central difference

Figure: Central Difference Operator

18 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-19
SLIDE 19

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Sobel, Scharr, Bickley and others

Definition (General 3x3 Differentiation Kernel) Dx = 1 2h(w + 2)   −1 1 −w w −1 1   = 1 2h

  • −1

1

  • 1

w + 2   1 w 1   (5) Sobel mask: w = 2 (corresponds to smoothing with a binomial kernel) Bickley mask:w = 4 Scharr mask: w = 10/3 (popular method, that works well in practice) NOTE: does not improve gradient magnitude estimation!

19 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-20
SLIDE 20

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

20 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-21
SLIDE 21

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Improving the Central Difference Operator

frequency response of the central difference operator: jsinω compensate for smoothing effects by applying a binomal kernel orthogonally:

1 w+2

  1 w 1   frequency response of the binomial kernel: Sw(ω) = w+2cosw

w+2

perhaps then an operator with a frequency response of jsinω ·

1 Sw(ω)?

21 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-22
SLIDE 22

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Improving the Central Difference Operator

frequency response of the central difference operator: jsinω compensate for smoothing effects by applying a binomal kernel orthogonally:

1 w+2

  1 w 1   frequency response of the binomial kernel: Sw(ω) = w+2cosw

w+2

perhaps then an operator with a frequency response of jsinω ·

1 Sw(ω)?

21 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-23
SLIDE 23

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Improving the Central Difference Operator

frequency response of the central difference operator: jsinω compensate for smoothing effects by applying a binomal kernel orthogonally:

1 w+2

  1 w 1   frequency response of the binomial kernel: Sw(ω) = w+2cosw

w+2

perhaps then an operator with a frequency response of jsinω ·

1 Sw(ω)?

21 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-24
SLIDE 24

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Improving the Central Difference Operator

frequency response of the central difference operator: jsinω compensate for smoothing effects by applying a binomal kernel orthogonally:

1 w+2

  1 w 1   frequency response of the binomial kernel: Sw(ω) = w+2cosw

w+2

perhaps then an operator with a frequency response of jsinω ·

1 Sw(ω)?

21 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-25
SLIDE 25

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Padé Schemes

Definition (4th Order Tridiagonal Padé Scheme) 1 6[f ′(x − h) + 4f ′(x) + f ′(x + h)] ≈ 1 2h [f (x + h) − f (x − h)] (6) 1 6(f ′

i−1 + 4f ′ i + f ′ i+1) = 1

2(−1 · fi-1 + 0 · fi + 1 · fi+1) (7) derived using classical Padé approximations lead to tridiagonal systems of linear equations frequency response jsinω ·

1 S4(ω)

22 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-26
SLIDE 26

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Padé Schemes

0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 Wavenumber ω Modified wavenumber ideal derivative 2nd−order central difference 4th−order tridiagonal Padé scheme 6th−order tridiagonal Padé scheme

Figure: Padé schemes

23 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-27
SLIDE 27

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Outline

1

Introduction Motivation Current Approach Previous Work

2

Background Explicit vs. Implicit Methods Taylor and Padé Approximations Differentiation as a Linear Operator

3

From Explicit to Implicit Differentiation Schemes Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

4

Discussion

24 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-28
SLIDE 28

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

General Implicit Scheme

Definition (General Seven-Point Stencil (Lele, 1992)) βf ′

i−2 + αf ′ i-1 + f ′ i + αf ′ i+1 + βf ′ i+2

= c fi-3 − fi-3 6 + b fi+2 − fi-2 4 + afi+1 − fi-1 2 (8) H(ω) = asinω + (b/2)sin2ω + (c/3)sin3ω 1 + 2αcosω + 2βcos2ω (9) set of coefficients using empirical considerations α = 0.5771439, β = 0.0896406, a = 1.302566, b = 0.99355, c = 0.03750245

25 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-29
SLIDE 29

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

General Implicit Scheme

0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 Wavenumber ω Modified wavenumber ideal derivative 2nd−order central difference 4th−order tridiagonal Padé scheme 6th−order tridiagonal Padé scheme Lele JCF−1992 scheme

Figure: Lele scheme

26 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-30
SLIDE 30

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Fourier-Padé-Galerkin Approximation

set of coefficients using a Fourier-Padé-Galerkin approximation: α = 3 5, β = 21 200, a = 63 50, b = 219 200, c = 7 125 basic idea:

goal: obtain the coefficients of H(ω) = asinω+(b/2)sin2ω+(c/3)sin3ω

1+2αcosω+2βcos2ω

approximate the ideal derivative f (ω) = ω use a rational Fourier series: f (ω) ≈ Rkl(ω) = Pk(ω)/Ql(ω)

27 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-31
SLIDE 31

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion Standard Explicit Schemes From Explicit to Implicit Schemes Advanced Implicit Schemes

Fourier-Padé-Galerkin Scheme

0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 Wavenumber ω Modified wavenumber ideal derivative 2nd−order central difference 4th−order tridiagonal Padé scheme 6th−order tridiagonal Padé scheme Lele JCF−1992 scheme Fourier−Padé−Galerkin scheme

Figure: Fourier-Padé-Galerkin Scheme

28 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-32
SLIDE 32

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion

Applications

Figure: Canny Edge Detection using various differentiation schemes: (a) Sobel mask, (b) implicit Scharr scheme, (c) Fourier-Pade-Galerkin scheme

29 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-33
SLIDE 33

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion

Applications

Figure: Deblurring: (a) original image, (b) Gaussian blur applied (c) using an implicit Bickley scheme (d, e) using the explicit Laplacian mask

30 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-34
SLIDE 34

Introduction Background From Explicit to Implicit Differentiation Schemes Discussion

Summary

traditional explicit schemes flawed, introduce unwanted smoothing, possible solutions:

1

apply smoothing in orthogonal direction

  • leads to explicit filter kernels for differentiation (e.g. Sobel,

Scharr, etc.)

2

apply smoothing to derivatives

  • leads to tridiagonal Pade schemes, as well as

Fourier-Pade-Galerkin schemes

31 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications

slide-35
SLIDE 35

Appendix For Further Reading

For Further Reading I

  • S. K. Lele.

Compact finite difference schemes with spectral-like resolution. Journal of Computational Physics, 103:16–42, 1992. A.G. Belyaev On Implicit Image Derivatives and their Applications. BMVC, 2012. A.G. Belyaev, Hitoshi Yamauchi Implicit Filtering for Image and Shape Processing VMV 2011: 277-283

32 / 32

  • M. Omran

On Implicit Image Derivatives and Their Applications