Top Banner
HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組組 : P78961304 組組組 P76961023 組組組 P76974157 組組組 P76974482 組組組
22

HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Dec 21, 2015

Download

Documents

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: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

HCI Project :An Iterative Optimization Approach for

Unified Image Segmentation and Matting

組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻

Page 2: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Abstract

• Extracting a matte by previous approaches require the input image to be pre-segmented into three regions (trimap).

• This pre-segmentation based approach fails for images with large portions of semi-transparent foreground.

• In this paper we combine the segmentation and matting problem together and propose a unified optimization approach based on Belief Propagation.

Page 3: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Introduction

• The observed image I(z) (z = (x, y)) is modeled as a linear combination of foreground image F(z) and background image B(z) by an alpha map: I(z) = αzF(z) + (1 − αz)B(z)

• Image Matting– estimating an opacity (alpha value) and

foreground and background colors for each pixel in the image.

Page 4: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Limitations of a Trimap

• To generate good mattes, all these approaches require the user to ”carefully” specify the trimap.

• it is almost impossible to manually create an optimal trimap.

Page 5: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Limitations of a Trimap (cont.)

• Automatically generated trimaps based on the binary segmentation result is non-optimal, since it always has uniform thickness regardless of local image characteristics.

Page 6: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

MRF Construction

• Each pixel in and are treated as a node in the MRF• Minimize the total energy of the following function

• : How well the estimated alpha value , and foreground and background color for fit with the actual color

• : The smoothness energy which penalizes inconsistent alpha value changes between two neighbors and

cU cU~

p qp

qpspd VVV,

),()(

dV pp

pC

sVp q

Page 7: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Markov Random Field• 上層 – 原值• 下層 – 估計值

Page 8: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Predefined arguments

• Discretize the possible alpha value to 25 levels between 0 and 1,denoted as , k=1,…,25

• Each level corresponds to a possible state for a node in the MRF

• The local neighborhood area is defined to have a radius of r=20

Page 9: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

in detail

• Compute the likelihood of each alpha level as

• The set of valid foreground samples, are then weighted by their uncertainty and distance, by

dV

K

k k

kkpd

pL

pLV

1)(

)(1)(

k

)2/))1(,(exp(.1

)(22

1 12

kd

pj

kpi

kpc

N

i

N

j

Bj

Fik BFCdww

NpL

))),(

exp()))(1(2

2

w

ii

Fi

ppspuw

Page 10: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

in detail

• The smoothness cost is defined as

sV

)/)(exp(1),( 222121 ssV

Page 11: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Belief Propagation Optimization

• Use loopy belief propagation (BP) to solve problem– Finding a labeling with minimum energy corresponds to

the MAP estimation problem

• It works by passing messages along links in the constructed path

Page 12: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

BP Algorithm(1)

• In each iteration, new messages are computed for each possible state

• H (p) \ q denotes the neighbors of p other than q• c is a normalization factor

Page 13: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

BP Algorithm(2)

• After T iterations a belief vector is computed for each node

• The state the maximizes at each node is selected as the estimated level

k p

kb p

pk p *

p

Page 14: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

BP Algorithm(3)

• If =1, set the color as a new foreground sample

• If =0, set the color as a new background sample

• Otherwise, choose the pair of foreground and background colors from the group of samples

*

p C p

*

p C p

Page 15: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

BP Algorithm(4)

• Then, the uncertainty value u(p) is updated as

• and are weights for the selected pair of foreground and background samples w

F

i

*

wB

i

*

Page 16: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Iterative Belief Propagation for Image Matting

Page 17: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Extension to Video

is small as definite foreground

Page 18: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Result and Comparisons

Propose approach

Bayesian

Page 19: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Extracted foreground and novel background

Page 20: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Foreground and background is similar

Not work well

Page 21: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Start with initial trimap

Rough trimap the user created

Bayesian

Proposedapproach

Page 22: HCI Project : An Iterative Optimization Approach for Unified Image Segmentation and Matting 組員 : P78961304 周智倫 P76961023 黃琮聖 P76974157 蔡偉民 P76974482 鄭世鴻.

Summary and conclusion

• Proposed a approach to solve image matting problem

• combines the problems of segmentation and matting into a unified formula

• Does not require a well specified trimap