Top Banner
1 Covariant Derivatives and Vision Todor Georgiev Adobe Photoshop Presentation at ECCV 2006
45

Covariant Derivatives and Vision

Jan 03, 2017

Download

Documents

voquynh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Covariant Derivatives and Vision

1

Covariant Derivatives and Vision

Todor GeorgievAdobe Photoshop

Presentation at ECCV 2006

Page 2: Covariant Derivatives and Vision

2

Original

Page 3: Covariant Derivatives and Vision

3

Selection to clone

Page 4: Covariant Derivatives and Vision

4

Poisson cloning from dark area

Page 5: Covariant Derivatives and Vision

5

Selection to clone

Page 6: Covariant Derivatives and Vision

6

Poisson cloning from illuminated area

Page 7: Covariant Derivatives and Vision

7

Poissoncloning

Covariantcloning(see next)

Page 8: Covariant Derivatives and Vision

8

Poisson cloning can be viewed as an approximation to covariant cloning.

Outline of our theory:

Page 9: Covariant Derivatives and Vision

9

Page 10: Covariant Derivatives and Vision

10

Thanks to Jan Koenderink

Page 11: Covariant Derivatives and Vision

11

• The image is just a record of pixel values.

• We do not see pixel values directly.

• What we see is an illusion generated fromthe above record through internal adaptation.We can not compare pixels.

Retina / Cortex Adaptation

Page 12: Covariant Derivatives and Vision

12

Models of Image Space:

Page 13: Covariant Derivatives and Vision

13

• A pair (location, intensity)

• Multiple copies of the intensity line.

• We can compare intensities. The image is a functionthat specifies an intensity at each point.

(1) Cartesian Product

Page 14: Covariant Derivatives and Vision

14

• Two spaces and a mapping (vertical projection)

Total space EBase space B

• Fiber is the set of points that map to a single point. We will use vector bundles, where fibers are vectorspaces.

(2) Fiber Bundle

Page 15: Covariant Derivatives and Vision

15

• Mapping from base B to total space E

Sections replace functions

• We can not compare intensities. Horizontalprojection is not defined. We have forgotten it.

• Perceptually correct model of the image Image = graph of a section

Section in a Fiber Bundle

Page 16: Covariant Derivatives and Vision

16

Derivatives in a Fiber Bundle

Definition:

Derivative is a mapping from one section to another that satisfies the Leibniz rule relative to multiplication by functions:

In the Cartesian product space this definition is equivalent to the conventional derivative.

Page 17: Covariant Derivatives and Vision

17

If we express a section as a linear combination of some basis sections

then the derivative will be:

Derivatives in a Fiber Bundle

Page 18: Covariant Derivatives and Vision

18

Derivatives in a Fiber Bundle

If we represent the section in terms of the functionsthat define it in a given basis (not writing the

basis vectors), the last equation can be written as:

The functions are called “color channels” in Photoshop, and D is called “Covariant Derivative”. It corresponds to the derivative in the Cartesian product model.

Page 19: Covariant Derivatives and Vision

19

The covariant derivative is a rigorous mathematical tool for perceptual pixel comparison in the fiber bundle modelof image space. It replaces the conventional derivative of the Cartesian product model as:

Page 20: Covariant Derivatives and Vision

20

Page 21: Covariant Derivatives and Vision

21

- Reconstructing images with the covariant Laplace equation

,based on adaptation vector field, A.

- Reconstructing surfaces based on gradient field.Recent work by R. Raskar et. al. Covariant Laplace should produce better results than Poisson.

How can we know A?It can be extracted based on the idea of covariantlyconstant section, next:

Page 22: Covariant Derivatives and Vision

22

Assume perceived gradient of image g(x, y) is zero.This means complete adaptation:

Substitute in covariant Laplace:

Covariantcloning

Poisson equation

Page 23: Covariant Derivatives and Vision

23

Poissoncloning

Covariantcloning

Page 24: Covariant Derivatives and Vision

24

Poisson

Covariant

Page 25: Covariant Derivatives and Vision

25

Detailed Example:

Page 26: Covariant Derivatives and Vision

26

Original Damaged Area

Page 27: Covariant Derivatives and Vision

27

Laplace

Page 28: Covariant Derivatives and Vision

28

Poisson

Page 29: Covariant Derivatives and Vision

29

Laplace

Page 30: Covariant Derivatives and Vision

30

Inpainting

Thanks to Guillermo Sapiro and Kedar Patwardhan

Page 31: Covariant Derivatives and Vision

31

Poisson

Page 32: Covariant Derivatives and Vision

32

Covariant

Page 33: Covariant Derivatives and Vision

33

Inpainting

Thanks to Guillermo Sapiro and Kedar Patwardhan

Page 34: Covariant Derivatives and Vision

34

Structure and Texture Inpainting

Bertalmio – Vese – Sapiro – Osher

Page 35: Covariant Derivatives and Vision

35

Covariant Inpainting

Page 36: Covariant Derivatives and Vision

36

Day

Page 37: Covariant Derivatives and Vision

37

Night

Page 38: Covariant Derivatives and Vision

38

Covariant cloning from day

Page 39: Covariant Derivatives and Vision

39

Poisson cloning from day

Page 40: Covariant Derivatives and Vision

40

Thanks to R. Raskar and J. Yu

Cloning from night to day

Page 41: Covariant Derivatives and Vision

41

Gradient Domain HDR Compression

Changing the lighting conditions. The visual system is robust. It compensates for the changes in illuminationby adaptation vector field A:

Simplest energy invariant to those transforms is:

Page 42: Covariant Derivatives and Vision

42

Gradient Domain HDR Compression

Euler-Lagrange equation for the above energy:

Exactly reproduces the result of the Fattal-Lischinski-Werman paper. They assume log; we derive log.

Any good visual system needs to be logarithmic!

Page 43: Covariant Derivatives and Vision

43

Conclusion:

The covariant (adapted) derivative providesa way to perform perceptual image processingaccording to how we see images as opposed to -how images are recorded by the camera.

Useful for Poisson editing, inpainting or any PDE,HDR compression, surface reconstruction from gradients, night/day cloning, graph cuts, bilateraland trilateral filters in terms of jet bundles, and practically any perceptual image editing.

Page 44: Covariant Derivatives and Vision

44

Bilateral interpreted in 3D image space

The image is a distribution in 3D:

or -perceptual?

Integrate the following 3D filter expression over z

and evaluate it on the original surface. Result:

(1)

Appendix:

Page 45: Covariant Derivatives and Vision

45

(1)

Same procedure on the logarithmic expression

produces (using “delta function of function” formula):

(2)

Now, bilateral filter is exactly expression (2) dividedby expression (1). Paris-Durand paper derives a similarresult (based on intuition) and a speed up algorithm.

Bilateral