naïve compositing

52
1

Upload: carney

Post on 22-Feb-2016

96 views

Category:

Documents


0 download

DESCRIPTION

naïve compositing. Poisson compositing. our result. Objectives. Seamless compositing. Robust to inaccurate selection Output Quality - Limit color bleeding Time-Performance - Efficient method. Related Work: Poisson Compositing. Pasting gradients instead of pixels. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: naïve compositing

1

Page 2: naïve compositing

2

naïve compositing

Page 3: naïve compositing

3

Poisson compositing

Page 4: naïve compositing

4

our result

Page 5: naïve compositing

5

Objectives

• Robust to inaccurate selection

• Output Quality

- Limit color bleeding

• Time-Performance

- Efficient method

Seamless compositing

Page 6: naïve compositing

6

Poisson Compositing Result

Pros:• Blends seamlessly• Linear computationCons:• Bleeding visible• Foreground to background bleeding

Related Work: Poisson CompositingPasting gradients instead of pixelsPérez 03, Georgiev 06, …

Page 7: naïve compositing

7

Pros:• Reduced bleedingCons:• Nonlinear

- Computationally intensive

L1 Norm Result

Related Work: L1 NormIntroduced in shape from shadingReddy 09

Page 8: naïve compositing

8

Move the boundaries to avoid bleeding

Related Work: Moving Boundaries

Pros:• Avoids bleedingCons:• We don’t want boundaries to change• Changed composition

Changing boundaries

Jia 06

Page 9: naïve compositing

9

• Conceal bleeding in textured areas

• Better gradient field at boundary

• Efficient linear scheme

Contributions

Page 10: naïve compositing

10

• Problem Description

• Hiding Residuals with Visual Masking

• Generating a low-curl boundary

• Results and Comparisons

Overview

Page 11: naïve compositing

Algorithm Overview

Selection

Background

Foreground

Page 12: naïve compositing

Algorithm Overview

Selection

Background

Foreground

grad

grad

Page 13: naïve compositing

Algorithm Overview

Selection

Background

Foreground

Targetgradient

fieldpastegrad

grad

Page 14: naïve compositing

Algorithm Overview

Selection

Background

Foreground

Result 14

Targetgradient

fieldpaste

integrate

grad

grad

Page 15: naïve compositing

15

We seek image I with gradients close to target v.

target gradient field

=

Standard Approach: Poisson compositing

Page 16: naïve compositing

16

We seek image I with gradients close to target v.

target gradient field

output gradient field

=

Least-squares:

Standard Approach: Poisson compositing

Page 17: naïve compositing

17

target gradient field

=

Our Approach

value that minimizes curl

output gradient field

Weighted least-square:

We seek image I with gradients close to target v.

weight

Page 18: naïve compositing

18

• Problem Statement

• Hiding Residuals with Visual Masking

• Generating a low-curl boundary

• Results and Comparisons

Overview

Page 19: naïve compositing

19

Our Strategy

• Use the weights to locate integration residuals where they are less visible

• Exploit perceptual effect: visual masking– human perception affected by texture.

Page 20: naïve compositing

20

Visual Masking Demo

Can you spot all the dots?

Page 21: naïve compositing

21

Visual Masking Demo

Texture hides low-frequency content

Page 22: naïve compositing

22

Visual Masking Demo

Can you spot all the dots?

Page 23: naïve compositing

23

Design of the Weights

smooth region:needs high weightto prevent bleeding

textured regions:low weight is okbecause bleedingless visible

weights (white is high)

Page 24: naïve compositing

24

Estimating the Amount of Texture

RGB gradient field

Page 25: naïve compositing

25

Estimating the Amount of Texture

RGB gradient field Noise controlling function

Small Gaussian convolution

Large Gaussian convolution

Page 26: naïve compositing

26

Estimating the Amount of Texture

small Gaussian large Gaussian

gradient field g

Page 27: naïve compositing

27

Estimating the Amount of Texture

Texture Map Output (white indicates more texture)

Page 28: naïve compositing

28

• v depends only on foreground and background– does not depend on the unknown I– weights are constant in the optimization

• our energy is a classical least-squares optimization

Weight Formula

= 1 –

Weight output

Page 29: naïve compositing

29

Hiding Residuals with Visual Masking

Poisson compositing With texture weights

Bleeding only in textured areas

Page 30: naïve compositing

30

Hiding Residuals with Visual Masking

Poisson compositing With texture weights

Residuals

Page 31: naïve compositing

31

Hiding Residuals with Visual Masking

Poisson compositing With texture weights

Reduced bleeding but not fully

Page 32: naïve compositing

32

• Problem Statement

• Hiding Residuals with Visual Masking

• Generating a low-curl boundary

• Results and Comparisons

Overview

Page 33: naïve compositing

33

• Target field v integrable iff curl(v)=0• Only boundary has non-zero curl– Consequence of

target field construction(see paper)

• Our strategy: reducing the curl

curl usingstandard strategy

Boundary Problems

Page 34: naïve compositing

34

• Minimize

• Unfortunately, the result is not seamless:

output of naïve approach close-up

Naïve Approach

Page 35: naïve compositing

35

• Unknowns: target field v along boundary• Weights depend on texture (detail in paper)

zero curl seamless compositingweight

Our Approach: Least Squares Trade-off

Page 36: naïve compositing

36

• Problem Statement

• Hiding Residuals with Visual Masking

• Generating a low-curl boundary

• Results and Comparisons

Overview

Page 37: naïve compositing

37

Results and Comparisons

Copy-and-paste

Page 38: naïve compositing

38

Results and Comparisons

Poisson Reconstruction : Pérez 03, Georgiev 06, …

Page 39: naïve compositing

39

Results and Comparisons

Maximum Gradient : Pérez 03

Page 40: naïve compositing

40

Results and Comparisons

Diffusion : Agrawal 06

Page 41: naïve compositing

41

Results and Comparisons

Lalonde 07

Page 42: naïve compositing

42

Results and Comparisons

L1 Norm : Reddy 09

Page 43: naïve compositing

43

Results and Comparisons

Our Result

Page 44: naïve compositing

44

Results and Comparisons

Poisson

Max

Diffusion

Lalonde

L_1 Norm

Our Result

0 2 4 6 8 10 12 14 16 18 20

Running Time (Seconds)

Page 45: naïve compositing

45

Results and Comparisons Poisson

Page 46: naïve compositing

46

Results and Comparisons Our Result

Page 47: naïve compositing

47

Results and Comparisons Poisson

Page 48: naïve compositing

48

Results and Comparisons Our Result

Page 49: naïve compositing

49

• Several parameters

- all examples use the same parameters

• Discoloration may happen- happens in all gradient based operators

• Our model of visual masking is simple- good for performance

- more complex model could be used

Discussion

Page 50: naïve compositing

50

• Robust compositing using visual masking

• Better gradient field at boundary

• Efficient linear scheme

Conclusion

Poisson Reconstruction Our Result

Page 51: naïve compositing

51

Special Thanks

Todor GeorgievKavita BalaGeorge DrettakisAseem AgarwalaBill FreemanTim ChoBiliana KanevaMedhat H. IbrahimRavi Ramamoorthi

This material is based upon work supported by the National Science Foundation under Grant No. 0739255 and No. 0924968.

Page 52: naïve compositing

52

• Robust compositing using visual masking

• Better gradient field at boundary

• Efficient linear scheme

Conclusion

Poisson Reconstruction Our Result