Graph-based Segmentation
Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem
02/25/10
Graph-based Segmentation Computer Vision CS 543 / ECE 549 - - PowerPoint PPT Presentation
02/25/10 Graph-based Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem Images as graphs i w ij c j Fully-connected graph node for every pixel link between every pair of pixels, p , q similarity
02/25/10
c Source: Seitz
w A B C Source: Seitz
Î
edges j i j i i i
, 2 1
Node yi: pixel label Edge: constrained pairs Cost to assign a label to each pixel Cost to assign a pair of labels to connected pixels
Unary potential 0 1 0 0 K 1 K 0 Pairwise Potential 0: -logP(yi = 0 ; data) 1: -logP(yi = 1 ; data)
Î
edges j i j i i i
, 2 1
Î
edges j i j i i i
, 2 1
Source (Label 0) Sink (Label 1) Cost to assign to 0 Cost to assign to 1 Cost to split nodes
Î
edges j i j i i i
, 2 1
Source (Label 0) Sink (Label 1) Cost to assign to 0 Cost to assign to 1 Cost to split nodes
2 2 2 1
background foreground
GrabCut – Interactive Foreground Extraction 10
Initial Rectangle Initial Result
GrabCut – Interactive Foreground Extraction 11