Dense optical flow estimation in image sequences and disparity map - - PowerPoint PPT Presentation

dense optical flow estimation in image sequences and
SMART_READER_LITE
LIVE PREVIEW

Dense optical flow estimation in image sequences and disparity map - - PowerPoint PPT Presentation

Dense optical flow estimation in image sequences and disparity map computation for stereo pairs applied to 3D reconstruction Javier Snchez Prez Universidad de Las Palmas de Gran Canaria Departamento de Informtica y Sistemas Grupo de


slide-1
SLIDE 1

Universidad de Las Palmas de Gran Canaria Departamento de Informática y Sistemas Grupo de Análisis Matemático de Imágenes

Dense optical flow estimation in image sequences and disparity map computation for stereo pairs applied to 3D reconstruction

Javier Sánchez Pérez

slide-2
SLIDE 2

Contents

  • Optical flow methods

– Standard approach – Considering colour images – Making the method symmetric

  • Stereoscopic methods

– Epipolar geometry – Standard approach – Colour method – Symmetrical method

  • Main contributions and conclusions
slide-3
SLIDE 3

Optical flow Standard approach

  • Variational approach
  • Energy minimization
  • Large displacements
  • Numerical scheme
  • Experimental results

) , ( y x h r

slide-4
SLIDE 4

Variational approach

  • Energy

( )

t

y x v y x u h dw h dw h L h E ) , ( ), , ( ) ( ) ( ) ( = ⋅ Φ + ⋅ =

∫ ∫

Ω Ω

r r r r α

( )

2 2 1

) ) , ( ), , ( ( ) , ( ) ( y x v y y x u x I y x I h L + + − = r

( )

h I D h h

t

r r r ∇ ⋅ ∇ ⋅ ∇ = Φ ) (

1

slide-5
SLIDE 5

Regularizing term

  • Nagel-Enkelmann operator

( )

⎪ ⎭ ⎪ ⎬ ⎫ ⎪ ⎩ ⎪ ⎨ ⎧ + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ − − + ∇ = ∇ Id I I I I I I I I D

x y x y x y 2 2 2 2 2

2 1 γ γ

slide-6
SLIDE 6

Energy minimization

  • Associated Euler-Lagrange equations

( ) ( ) (

)

( ) ( ) (

)

) ( ) ( ) ( ) (

2 2 1 1 2 2 1 1

h x y I h x I I v I D div C h x x I h x I I u I D div C r r r r r r r r + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ =

slide-7
SLIDE 7

Energy minimization

  • Gradient descent

( ) ( )

( )

( ) ( )

( )

) ( ) ( ) ( ) (

2 2 1 1 2 2 1 1

h x y I h x I I v I D div C t v h x x I h x I I u I D div C t u r r r r r r r r + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂ + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂

  • Anisotropic diffusion – diffusion tensor

( )

⎪ ⎩ ⎪ ⎨ ⎧ ∇ ↓ ∇ ∇ ↑ ∇ ⇒ ∇ ∇ = ∂ ∂

) ( 2 1 ) ) ( ( u div I u div I u I D div t u

I

slide-8
SLIDE 8

Large displacements

  • Pyramidal approach

( ) ( ) (

)

( ) ( ) (

)

) ( ) ( ) ( ) (

2 2 1 1 2 2 1 1 z z z z z z z z z z z z z z z z

h x y I h x I I v I D div C t v h x x I h x I I u I D div C t u r r r r r r r r + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂ + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂

( )

( ) ( ) ( ) ( )

( )

v u v u v u v u z z z y x I y x I

n n

z z z z z z n z z z

, , , , 2 , 2 ,

1 1

1

→ → → → → > > > = K K

slide-9
SLIDE 9

Large displacements

slide-10
SLIDE 10

Large displacements

  • Scale-Space approach

( ) ( ) (

)

( ) ( ) (

)

) ( ) ( ) ( ) (

2 2 1 1 2 2 1 1 σ σ σ σ σ σ σ σ σ σ σ σ σ σ σ σ

h x y I h x I I v I D div C t v h x x I h x I I u I D div C t u r r r r r r r r + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂ + ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ + − + ∇ ∇ = ∂ ∂

) , ( ..... ) , ( ) , ( .... *

1 1

1

n n v

u v u v u I G I

n σ σ σ σ σ σ σ σ

σ σ σ → → → → > > > =

slide-11
SLIDE 11

Large displacements

slide-12
SLIDE 12

Invariance

  • Invariance under gray level shifts

dz z H s y x I C

I y x

) ( ) , ( max

) , ( 2

= ∇ =

ν

α

slide-13
SLIDE 13

Numerical scheme

( ) ( ) ( ) ( )

k j i j i k j i j i k j i j i k j i j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i j i j i k j i k j i

v y u x x I v y u x I y x I h u u e e h u u e e h u u e e h u u e e h u u f f h u u f f h u u d d h u u d d C t u u

, , , , , 2 , , , , , 2 , , , 1 2 1 1 , 1 1 , 1 , 1 , 1 2 1 1 , 1 1 , 1 , 1 , 1 2 1 1 , 1 1 , 1 , 1 , 1 2 1 1 , 1 1 , 1 , 1 , 1 2 1 1 , 1 1 , , 1 , 2 1 1 , 1 1 , , 1 , 2 1 1 , 1 , 1 , , 1 2 1 1 , 1 , 1 , , 1 , 1 ,

, , , 2 2 2 2 2 2 2 2 2 2 2 2 + + ∂ ∂ + + − + ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛ − + − − + − − − + + − + + + − + + − + + − + + − + = ∆ −

+ + + − + − + + − + − + + + − − − − + + + + + + + + − − + + + + + + − − + + + + + σ σ σ

slide-14
SLIDE 14

Experimental results

  • Squares sequence
slide-15
SLIDE 15

Experimental results

( ) ( ) ( ) ( ) ( ) ( ) ( ) ( )

⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎝ ⎛ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ + + + + = ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ − + − = 1 ~ ~ 1 , ~ , ~ 1 1 , , arccos ~ ~

2 , 2 , , , 2 , 2 , , , 2 , , 2 , , j i j i t j i j i j i j i j i j i j i j i j i j i

v u v u v u v u Average Error v v u u Average Error

σ σ σ σ σ σ

slide-16
SLIDE 16

Experimental results

  • Square sequence
slide-17
SLIDE 17

Experimental results

Comparison with other methods in Barron et al. 100% dense methods Method

  • Ang. Error
  • Stand. Dev.

Horn y Schunk 32,81º 13,67º Nagel 34,57º 14,38º Anandan 31,46º 18,31º Singh 46,12º 18,64º Ours 10,97º 9,60º

slide-18
SLIDE 18

Experimental results

  • Taxi sequence
slide-19
SLIDE 19

Experimental results

  • Yosemite sequence
slide-20
SLIDE 20

Experimental results

Comparison with other methods in Barron et al. 100% dense methods Method

  • Ang. Error
  • Stand. Dev.

Horn y Schunk 9,78º 16,19º Nagel 10,22º 16,51º Anandan 13,36º 15,64º Singh 10,03º 13,13º Ours 5,53º 7,40º

slide-21
SLIDE 21

Optical flow for color images

  • Energy

( )

( )

∫ ∑∫

∇ ∇ ∇ + + − =

=

h I D h h x I x I h E

t i i i

r r r r r r

max , 1 3 1 2 , 2 , 1

) ( ) ( ) ( α

{ }

3 , 2 , 1 ) , (

max

= ∀ ∇ ≥ ∇ ∇ = ∇ i I I I y x I

i i i

slide-22
SLIDE 22

Results

  • Cube sequence
slide-23
SLIDE 23

Symmetrical optic flow

2

h r

1

h r ) , ( ) , ( ) , (

2 1 2 2 1 1 2 1

h h E h h E h h E r r r r r r + =

  • Composed energy
slide-24
SLIDE 24

Variational approach

  • Energies

( )

∫ ∫ ∫

Ω Ω Ω

⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + + Φ + =

2 2 1 1 1 2 1 1

1

) ( ) ( ) , (

h

h h h h L h h E

r

r r r r r r ψ β α

( )

∫ ∫ ∫

Ω Ω Ω

⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + + Φ + =

2 1 2 2 2 2 1 2

2

) ( ) ( ) , (

h

h h h h L h h E

r

r r r r r r ψ β α

slide-25
SLIDE 25

Energy minimization

  • Choosing the ψ function

) , ( ) , ( ) , (

1 2 1 2 2 1 1 1 1 2 1 1 + + + +

+ =

n n n n n n

h h E h h E h h E r r r r r r ⎪ ⎩ ⎪ ⎨ ⎧ =

− γ s

e γ s s s

1

) ( ψ

  • Iterative scheme
slide-26
SLIDE 26

Experimental results

  • Squares sequence

Occlusions

1

h r

  • Euclid. error
  • Ang. error

Non- symmetric 0.16 0.081 Symmetric 0.50º 0.18º

slide-27
SLIDE 27

Experimental results

1

h r

  • Marble blocks (H. H. Nagel)
  • Euclid. error
  • Ang. error

Non- symmetric 0.37 0.17 Symmetric 9.4º 5.2º

slide-28
SLIDE 28

Stereoscopic vision

  • Epipolar geometry
  • Variational approach
  • Energy minimization
  • Experimental results
slide-29
SLIDE 29

Epipolar geometry

I2

C2

I1

C1

M

Epipolar lines Fundamental matrix mt

2 F m1=0

m1 m2

slide-30
SLIDE 30

Variational approach

  • Embedding the epipolar geometry

I2 I1

m1 m2

h r

λ m1

1

m F c b a ⋅ = ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎝ ⎛ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ = )) , ( ( )) , ( ( y x v y x u h λ λ r

slide-31
SLIDE 31

Variational approach

  • Energy

( )

( )

∫ ∫

∇ ⋅ ∇ ⋅ ∇ + + − = λ λ α λ λ

1 2 2 1

)) ( ( ) ( ) ( I D h x I x I E r r r

( ) ( ) ( )

( )

2 2 2 2 2 1 2

) ( ) ( ) ( ) ( b a x x I b x y I a x I x I I D div C t + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ ∂ ∂ − ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ − + ∇ ∇ = ∂ ∂ r r r r

λ λ λ

λ λ

slide-32
SLIDE 32

Experimental results

  • Hervé’s face
slide-33
SLIDE 33

Experimental results

  • Inria Library
slide-34
SLIDE 34

Stereo for color images

( )

( )

∫ ∑∫

∇ ∇ ∇ + + − =

=

λ λ λ λ

max , 1 3 1 2 , 2 , 1

)) ( ( ) ( ) ( I D h x I x I E

t i i i

r r r

{ }

3 , 2 , 1 ) , (

max

= ∀ ∇ ≥ ∇ ∇ = ∇ i I I I y x I

i i i

( ) ( )

( )

( )

2 2 , 2 , 2 3 1 , 2 , 1 max , 1

) ( ) ( ) ( ) ( b a x x I b x y I a x I x I I D div C t

i i i i i

+ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ − ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎝ ⎛ ∂ ∂ − + ∇ ∇ = ∂ ∂

∑∫

=

r r r r

λ λ λ

λ λ

slide-35
SLIDE 35

Experimental results

slide-36
SLIDE 36

Experimental results

slide-37
SLIDE 37

Symmetrical stereo method

  • Energy

) , ( ) , ( ) , (

2 1 2 2 1 1 2 1

h h E h h E h h E r r r r r r + =

( )

∫ ∫ ∫

Ω Ω Ω

⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + + Φ + =

2 2 1 1 1 2 1 1

1

) ( ) ( ) , (

h

h h h h L h h E

r

r r r r r r ψ β α

( )

∫ ∫ ∫

Ω Ω Ω

⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + + Φ + =

2 1 2 2 2 2 1 2

2

) ( ) ( ) , (

h

h h h h L h h E

r

r r r r r r ψ β α

( ) ( )

t t

v u h v u h ) ( ), ( ) ( ), (

2 2 2 1 1 1

λ λ λ λ = = r r

slide-38
SLIDE 38

Experimental results

slide-39
SLIDE 39

Main contributions

  • Common framework for optical flow and

stereoscopic vision

  • Improvement of Nagel-Enkelmann method

– Consistent centralization of both terms – Grey level shift invariance

  • Scale space approach to estimate large

displacements

  • Extensions to colour images
  • Symmetrization of results
slide-40
SLIDE 40

Conclusions

  • Good accuracy for large

displacements

  • Improvement of dense methods

studied in the work by Barron et al.

  • High accuracy of 3D reconstructions
  • Coherence in both directions
  • Natural way of detecting occlusions