[06]image composition and matting

49
ICT Junior Camp 2007 @ Mahidol University 1 University Image Matting and Composition Dr. Rawesak Tanawongsuwan [email protected]

Upload: api-3738694

Post on 10-Apr-2015

192 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: [06]Image Composition and Matting

ICT Junior Camp 2007 @ Mahidol University

1

University

Image Matting and Composition

Dr. Rawesak Tanawongsuwan

[email protected]

Page 2: [06]Image Composition and Matting

Outline

• Image Composition

• Matting Process

• Blue Screen Matting

• Environment/Shadow Matting

• Recent Matting Techniques

2

• Recent Matting Techniques

(Knockout/Bayesian/Grabcut/Poisson)

• Interactive Matting Techniques (Robust

matting/Easy matting/Closed-form matting)

• Flash Matting

• Video Matting (Video cutout/Video

defocus/Camera Array matting)

Page 3: [06]Image Composition and Matting

Digital Image Composition

3

Page 4: [06]Image Composition and Matting

Digital Image Composition

4

Matte

Page 5: [06]Image Composition and Matting

How does Superman fly?

5

Page 6: [06]Image Composition and Matting

Pulling a matte

Problem Definition:

• The separation of an image into• A foreground object image

• A background image

6

• An alpha matte

Hard problem

Page 7: [06]Image Composition and Matting

Matte creation

• From digitized images

– Blue-screen matting

– Video or chroma-keying

– Image processing

7

– Image processing

Page 8: [06]Image Composition and Matting

Blue Screen

8

Page 9: [06]Image Composition and Matting

Nothing special about blue

9

Page 10: [06]Image Composition and Matting

Digital Matting Equation

• For each pixel

C = αF + (1- α)B

10

• C: Rendered Color

• F: Foreground color

• B: Background color

� α: Amount of light passing through the

foreground – called the Alpha-Channel

Page 11: [06]Image Composition and Matting

Challenges to Matting &

Compositing

• Extracting the Matte (alpha

• channel) from natural scenes

• Handling the occluding contour?

11

• Handling the occluding contour?

• Foreground has color of background

• Refracted and reflected light

• …

Page 12: [06]Image Composition and Matting

What about semi-transparent

mattes?

12

Page 13: [06]Image Composition and Matting

We want a semi-transparent

matte

13

Page 14: [06]Image Composition and Matting

Solution…

14

Page 15: [06]Image Composition and Matting

More example…

15

Page 16: [06]Image Composition and Matting

Problems with Matting

• Images do not look realistic

• Lack of Refracted Light

• Lack of Reflected Light

16

Page 17: [06]Image Composition and Matting

Environment Matting and

Composition

17

Page 18: [06]Image Composition and Matting

Process of environment

matting

• Learn how light is reflected and refracted from

a backdrop and from various sidedrops

18

Page 19: [06]Image Composition and Matting

Process of environment

matting

19

Page 20: [06]Image Composition and Matting

Results of environment

matting

20

Page 21: [06]Image Composition and Matting

Results of environment

matting

21

Page 22: [06]Image Composition and Matting

Movies of environment

matting

22

Page 23: [06]Image Composition and Matting

Shadow matting and

compositing

23

Page 24: [06]Image Composition and Matting

Shadow matting and compositing

24

Page 25: [06]Image Composition and Matting

Shadow matting

• Show clip ShadowMattingDivXS.avi

25

Page 26: [06]Image Composition and Matting

Natural image matting

• Beyasian approach

26

Page 27: [06]Image Composition and Matting

Natural image matting

27

Page 28: [06]Image Composition and Matting

Level of user interaction

28

Trimap

GrabCut

Page 29: [06]Image Composition and Matting

Robust matting tool

• Demo

29

Page 30: [06]Image Composition and Matting

Interactive matting

• Easy matting

30

Page 31: [06]Image Composition and Matting

Interactive matting

• Closed form matting

31

Page 32: [06]Image Composition and Matting

Interactive matting

• Soft Scissors

32

Page 33: [06]Image Composition and Matting

Flash matting

• Extract mattes using a pair of flash/no-flash images

33

Page 34: [06]Image Composition and Matting

Image Matting is Difficult

34

Page 35: [06]Image Composition and Matting

Image Matting is Easy with

FLASH

35

Page 36: [06]Image Composition and Matting

Flash Matting

36

Page 37: [06]Image Composition and Matting

Flash matting

• Show clip FlashMatting.wmv

37

Page 38: [06]Image Composition and Matting

Video

• Let’s understand the nature of video clip

• A sequence of image frames

38

• Show videoCubism.avi

Page 39: [06]Image Composition and Matting

Video matting

• Easier or more difficult?

• Issues…

39

• Issues…

• Show VideoCutout.avi

Page 40: [06]Image Composition and Matting

Special hardware/cameras

• Need more than a single camera

• Defocus video matting

40

• Defocus video matting

• Multiple cameras matting

Page 41: [06]Image Composition and Matting

Defocus video : Capture Hardware

41

Page 42: [06]Image Composition and Matting

Capture Hardware

42

Page 43: [06]Image Composition and Matting

Preview: Input

43P

I

Everything in Focus

FI

Actor in Focus

BI

Background in Focus

Page 44: [06]Image Composition and Matting

Defocus video

• Show clip DefocusMatting.avi

44

Page 45: [06]Image Composition and Matting

Multi-cameras system

45

Page 46: [06]Image Composition and Matting

Using a Camera Array

46

Page 47: [06]Image Composition and Matting

500

2500

4500

47

Page 48: [06]Image Composition and Matting

48

Page 49: [06]Image Composition and Matting

Multi-camera system

• Automatic matte extraction

• Toward real-time performance

• Show clip CameraArrayMatting.mp4

49

• Show clip CameraArrayMatting.mp4