Lecture 2 - Fei-Fei Li, Jonathan Krause 1
Lecture 2: Introduction to Segmentation
Jonathan Krause
Lecture 2 - Fei-Fei Li, Jonathan Krause
- Goal: Identify groups of pixels that go together
Goal
2
image credit: Steve Seitz, Kristen Grauman
Goal Goal: Identify groups of pixels that go together image credit: - - PowerPoint PPT Presentation
Lecture 2: Introduction to Segmentation Jonathan Krause Fei-Fei Li, Jonathan Krause Lecture 2 - 1 Goal Goal: Identify groups of pixels that go together image credit: Steve Seitz, Kristen Grauman Fei-Fei Li, Jonathan Krause Lecture 2 - 2
Lecture 2 - Fei-Fei Li, Jonathan Krause 1
Lecture 2 - Fei-Fei Li, Jonathan Krause
2
image credit: Steve Seitz, Kristen Grauman
Lecture 2 - Fei-Fei Li, Jonathan Krause
3
image credit: Steve Seitz, Kristen Grauman
Lecture 2 - Fei-Fei Li, Jonathan Krause
4
image credit: Carsten Rother
Lecture 2 - Fei-Fei Li, Jonathan Krause
5
image credit: Armand Joulin
Lecture 2 - Fei-Fei Li, Jonathan Krause
6
Rother et al. 2004
Lecture 2 - Fei-Fei Li, Jonathan Krause
7
Lecture 2 - Fei-Fei Li, Jonathan Krause
8
Angelova and Zhu, 2013
Lecture 2 - Fei-Fei Li, Jonathan Krause
9 Lecture 2 - Fei-Fei Li, Jonathan Krause 10
“I stand at the window and see a house, trees, sky. Theoretically I might say there were 327 brightnesses and nuances of colour. Do I have "327"? No. I have sky, house, and trees.”
(1880-1943)
Lecture 2 - Fei-Fei Li, Jonathan Krause 11
Image source: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause
12
Lecture 2 - Fei-Fei Li, Jonathan Krause
13 Lecture 2 - Fei-Fei Li, Jonathan Krause
14
Lecture 2 - Fei-Fei Li, Jonathan Krause 15
– Will always converge to some solution – Can be a “local minimum”
slide credit: Steve Seitz
Lecture 2 - Fei-Fei Li, Jonathan Krause
16
slide credit: Kristen Grauman
Lecture 2 - Fei-Fei Li, Jonathan Krause
17
Note: Visualize segment with average color
Lecture 2 - Fei-Fei Li, Jonathan Krause
18
Lecture 2 - Fei-Fei Li, Jonathan Krause
19
Lecture 2 - Fei-Fei Li, Jonathan Krause 20
– Find parameters θ (for GMMs: ) that maximize the likelihood function:
likelihood function
See CS229 material if this is unfamiliar!
Lecture 2 - Fei-Fei Li, Jonathan Krause
21 Lecture 2 - Fei-Fei Li, Jonathan Krause
22
Lecture 2 - Fei-Fei Li, Jonathan Krause 23
slide credit: Steve Seitz
Fei-Fei Li, Jonathan Krause Lecture 2 -
24 Region of interest Center of mass Mean Shift vector
Slide by Y . Ukrainitz & B. Sarel
Fei-Fei Li, Jonathan Krause Lecture 2 - Region of interest Center of mass Mean Shift vector
25
Slide by Y . Ukrainitz & B. Sarel
Fei-Fei Li, Jonathan Krause Lecture 2 - Region of interest Center of mass Mean Shift vector
26
Slide by Y . Ukrainitz & B. Sarel
Fei-Fei Li, Jonathan Krause Lecture 2 - Region of interest Center of mass
27
Slide by Y . Ukrainitz & B. Sarel Lecture 2 - Fei-Fei Li, Jonathan Krause 28
slide credit: Y. Ukrainitz & B. Sarel
Lecture 2 - Fei-Fei Li, Jonathan Krause 29
Lecture 2 - Fei-Fei Li, Jonathan Krause
30
Lecture 2 - Fei-Fei Li, Jonathan Krause
31 Lecture 2 - Fei-Fei Li, Jonathan Krause
32
Lecture 2 - Fei-Fei Li, Jonathan Krause
33 Lecture 2 - Fei-Fei Li, Jonathan Krause 34
(in color and position…)
q p wpq
w
slide credit: Steve Seitz
Lecture 2 - Fei-Fei Li, Jonathan Krause 35
w
Lecture 2 - Fei-Fei Li, Jonathan Krause 36
slide credit: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause 37
slide credit: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause 38
slide credit: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause 39
slide credit: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause 40
slide credit: Forsyth & Ponce
Lecture 2 - Fei-Fei Li, Jonathan Krause 41
w A B C
slide credit: Steve Seitz
Lecture 2 - Fei-Fei Li, Jonathan Krause
42
Lecture 2 - Fei-Fei Li, Jonathan Krause
43
Lecture 2 - Fei-Fei Li, Jonathan Krause
1. Take eigenvector of largest unprocessed eigenvalue 2. Zero all components of elements that have already been clustered 3. Threshold remaining components to determine cluster membership Note: This is an example of a spectral clustering algorithm
44
Lecture 2 - Fei-Fei Li, Jonathan Krause 45
– Sum of weights of cut edges:
– What is a “good” graph cut and how do we find one?
A B
slide credit: Steve Seitz
Lecture 2 - Fei-Fei Li, Jonathan Krause
smallest sum of weights (weighted)
46 Ideal Cut Cuts with lesser weight than the ideal cut
image credit: Khurran Hassan-Shafique
Lecture 2 - Fei-Fei Li, Jonathan Krause
47
) , ( ) , ( ) , ( ) , ( V B assoc B A cut V A assoc B A cut + = sum of weights of edges in V that touch A
Lecture 2 - Fei-Fei Li, Jonathan Krause 48
Slide credit: Jitendra Malik
Lecture 2 - Fei-Fei Li, Jonathan Krause 49
– Solution given by the “generalized” eigenvalue problem
– Optimal solution is second smallest eigenvector – Gives continuous result—must convert into discrete values of y
Slide credit: Alyosha Efros
This is hard, y is discrete! Relaxation: continuous y
Lecture 2 - Fei-Fei Li, Jonathan Krause
50 Smallest eigenvectors
Image source: Shi & Malik NCuts segments
Lecture 2 - Fei-Fei Li, Jonathan Krause
51
Lecture 2 - Fei-Fei Li, Jonathan Krause
52
Lecture 2 - Fei-Fei Li, Jonathan Krause
53 Lecture 2 - Fei-Fei Li, Jonathan Krause
54
Slide source: Kristen Grauman
Lecture 2 - Fei-Fei Li, Jonathan Krause
55 Lecture 2 - Fei-Fei Li, Jonathan Krause
56
Observed evidence Hidden “true states” Neighborhood relations
Lecture 2 - Fei-Fei Li, Jonathan Krause
57 Reconstruction from MRF modeling pixel neighborhood statistics Degraded image Original image
Image source: Bastian Liebe
Lecture 2 - Fei-Fei Li, Jonathan Krause
58
Scene Image Image-scene compatibility function Local
Scene-scene compatibility function Neighboring scene nodes Partition Function
Lecture 2 - Fei-Fei Li, Jonathan Krause 59
careful and check each formulation individually.
Lecture 2 - Fei-Fei Li, Jonathan Krause
60
slide credit: Bastian Liebe
Lecture 2 - Fei-Fei Li, Jonathan Krause
61 Lecture 2 - Fei-Fei Li, Jonathan Krause
Experimental Comparison of Min- Cut/Max-Flow Algorithms for Energy Minimization in Vision”, PAMI 2004
mean-field
Inference in Fully-Connected CRFs with Gaussian Edge Potentials”, NIPS 2011
62
Lecture 2 - Fei-Fei Li, Jonathan Krause
63
Lecture 2 - Fei-Fei Li, Jonathan Krause
64
Lecture 2 - Fei-Fei Li, Jonathan Krause
65
Lecture 2 - Fei-Fei Li, Jonathan Krause
66
Lecture 2 - Fei-Fei Li, Jonathan Krause
67
Lecture 2 - Fei-Fei Li, Jonathan Krause
interactions
problems (GrabCut was 2004!)
68
Lecture 2 - Fei-Fei Li, Jonathan Krause
69
Lecture 2 - Fei-Fei Li, Jonathan Krause
70