Environment Matting and Compositing

22
Environment Matting and Compositing CS 395 – Advanced Graphics Presented by Jay Hetler Douglas E. Zongker ~ Dawn M. Werner ~ Brian Curless ~

description

Environment Matting and Compositing. CS 395 – Advanced GraphicsPresented by Jay Hetler Douglas E. Zongker ~ Dawn M. Werner ~ Brian Curless ~ David H. Salsin. What is Matting? Extracting the foreground image from the background Describing the opacity of the foreground at every point. - PowerPoint PPT Presentation

Transcript of Environment Matting and Compositing

Page 1: Environment Matting and Compositing

Environment Matting and Compositing

CS 395 – Advanced Graphics Presented by Jay Hetler

Douglas E. Zongker ~ Dawn M. Werner ~ Brian Curless ~ David H. Salsin

Page 2: Environment Matting and Compositing

What is Matting?•Extracting the foreground image from the background•Describing the opacity of the foreground at every point

What is Compositing?•Holding back the part of the new background that theforeground blocks.•Placing the foreground element in a new background

Page 3: Environment Matting and Compositing

Original Uses

Weather Reports Cinema Special Effects

Page 4: Environment Matting and Compositing

Matting Equation

C = F + (1- )B

• C ~ Color• F ~ Foreground color• B ~ Background color• ~ Amount of light that passes through the

foreground

Page 5: Environment Matting and Compositing

How difficult is Matting?

Page 6: Environment Matting and Compositing

Matte Image

Page 7: Environment Matting and Compositing

Good Results?

Page 8: Environment Matting and Compositing

Problems with Matting

Images do not look realistic

• Lack of Refracted Light

• Lack of Reflected Light

Solution:Modify the Matting Equation

Page 9: Environment Matting and Compositing

Environment Matting Equation

C = F + (1- )B + • C ~ Color• F ~ Foreground color• B ~ Background color• ~ Amount of light that passes through the

foreground• ~ Contribution of light from Environment

that travels through the object

Page 10: Environment Matting and Compositing

Explanation of

= R M(T , A )R ~ Reflectance coefficient

M ~ Texture mapping operator

for axis-aligned rectangle (A)

of texture (T)

i = 1i i i

m

Page 11: Environment Matting and Compositing

Environment Mattes

Page 12: Environment Matting and Compositing

Performance

• Calibration

• Matting: 10-20 minutes extraction time for each texture map (Pentium II 400Mhz)

• Compositing: 4-40 frames per second

• Real-Time?

Page 13: Environment Matting and Compositing

How much better is Environment Matting?

Alpha Matte Environment Matte Photograph

Page 14: Environment Matting and Compositing

How much better is Environment Matting?

Alpha Matte Environment Matte Photograph

Page 15: Environment Matting and Compositing

Movies!

Page 16: Environment Matting and Compositing

Importance of Sidedrops

Light comes from other parts of the environment

Page 17: Environment Matting and Compositing

Sidedrop Example

Page 18: Environment Matting and Compositing

Sidedrop x2

Page 19: Environment Matting and Compositing

Failure Cases

Box-filter Gaussian-weighted Photograph

Page 20: Environment Matting and Compositing

Failure Cases

Composite Photograph

Failure of Engineering

Failure of Theory

Page 21: Environment Matting and Compositing

Next Steps

• Depth

• Accuracy

• Real-Time Capture

Page 22: Environment Matting and Compositing

Progress?Depth Accuracy

No Real-Time