Clustering
St Stanfor
- rd University
22-Oct-2019 1
Lecture: k-means & mean-shift clustering Juan Carlos Niebles and - - PowerPoint PPT Presentation
Clustering Lecture: k-means & mean-shift clustering Juan Carlos Niebles and Ranjay Krishna Stanford Vision and Learning Lab 22-Oct-2019 1 St Stanfor ord University CS 131 Roadmap Clustering Pixels Segments Images Videos Web
Clustering
St Stanfor
22-Oct-2019 1
Clustering
St Stanfor
22-Oct-2019 2
Clustering
St Stanfor
22-Oct-2019 3
Clustering
St Stanfor
22-Oct-2019 4
Untersuchungen zur Lehre von der Gestalt, Psychologische Forschung, Vol. 4, pp. 301-350, 1923 http://psy.ed.asu.edu/~classics/Wertheimer/Forms/forms.htm
“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.”
Max Wertheimer
(1880-1943)
Clustering
St Stanfor
22-Oct-2019 5
Clustering
St Stanfor
22-Oct-2019 6
Space Analysis, PAMI 2002.
Clustering
St Stanfor
22-Oct-2019 7
Clustering
St Stanfor
22-Oct-2019 8
black pixels gray pixels white pixels
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 9
Pixel count Input image Input image Intensity Pixel count Intensity
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 10
Input image Intensity Pixel count
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 11
Slide credit: Kristen Grauman
190 255
Intensity
2 x∈clusteri
clusteri
Clustering
St Stanfor
22-Oct-2019 12
Whether is assigned to Cluster center Data Slide: Derek Hoiem
c, δ
i K
2 j N
Clustering
St Stanfor
22-Oct-2019 13
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 14
– denotes the set of assignment for each to cluster at iteration t
Slide: Derek Hoiem
δ
ij i K
i − x j
2 j N
c
ij i K
i − x j
2 j N
δt
Clustering
St Stanfor
22-Oct-2019 15
Slide: Derek Hoiem
sim(x, ! x ) = xT ! x sim(x, ! x ) = xT ! x x ⋅ ! x
c
ij i K
i − x j
2 j N
Clustering
St Stanfor
22-Oct-2019 16
http://home.dei.polimi.it/matteucc/Clustering/tutorial_html/AppletKM.html
Illustration Source: wikipedia
Cluster Centers
Clusters
Means Repeat (2) and (3)
Clustering
St Stanfor
22-Oct-2019 17
Clustering
St Stanfor
22-Oct-2019 18
2 clusters Original image 3 clusters
Clustering
St Stanfor
22-Oct-2019 19
Slide credit: Steve Seitz
2
Clustering
St Stanfor
22-Oct-2019 20
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 21
R=255 G=200 B=250 R=245 G=220 B=248 R=15 G=189 B=2 R=3 G=12 B=2
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 22
Filter bank of 24 filters
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 23
Original Labeled by cluster center’s intensity
Slide credit: Kristen Grauman
Clustering
St Stanfor
22-Oct-2019 24
Slide credit: Kristen Grauman
X Intensity Y
Clustering
St Stanfor
22-Oct-2019 25
Image Intensity-based clusters Color-based clusters
Image source: Forsyth & Ponce
Clustering
St Stanfor
22-Oct-2019 26
Image source: Forsyth & Ponce
Clustering
St Stanfor
22-Oct-2019 27
Slide: Derek Hoiem
Clustering
St Stanfor
22-Oct-2019 28
Slide: Derek Hoiem
Clustering
St Stanfor
22-Oct-2019 29
variance (good representation of data)
measure is non-adaptive)
dimensional points
Clustering
St Stanfor
22-Oct-2019 30
Clustering
St Stanfor
22-Oct-2019 31
http://www.caip.rutgers.edu/~comanici/MSPAMI/msPamiResults.html
Slide credit: Svetlana Lazebnik
Clustering
St Stanfor
22-Oct-2019 32
1.
Initialize random seed, and window W
2.
Calculate center of gravity (the “mean”) of W:
3.
Shift the search window to the mean
4.
Repeat Step 2 until convergence
26-Oct-17 32
Slide credit: Steve Seitz
Clustering
St Stanfor
22-Oct-2019 33
Region of interest Center of mass Mean Shift vector
26-Oct-17 33
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 34
Region of interest Center of mass Mean Shift vector
26-Oct-17 34
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 35
Region of interest Center of mass Mean Shift vector
26-Oct-17 35
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 36
Region of interest Center of mass Mean Shift vector
26-Oct-17 36
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 37
Region of interest Center of mass Mean Shift vector
26-Oct-17 37
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 38
Region of interest Center of mass Mean Shift vector
26-Oct-17 38
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 39
Region of interest Center of mass
26-Oct-17 39
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 40
Tessellate the space with windows Run the procedure in parallel
Slide by Y. Ukrainitz & B. Sarel
26-Oct-17 40
Clustering
St Stanfor
22-Oct-2019 41
The blue data points were traversed by the windows towards the mode.
Slide by Y. Ukrainitz & B. Sarel
26-Oct-17 41
Clustering
St Stanfor
22-Oct-2019 42
Slide by Y. Ukrainitz & B. Sarel
Clustering
St Stanfor
22-Oct-2019 43
Slide credit: Svetlana Lazebnik
Clustering
St Stanfor
22-Oct-2019 44
26-Oct-17 44 http://www.caip.rutgers.edu/~comanici/MSPAMI/msPamiResults.html
Slide credit: Svetlana Lazebnik
Clustering
St Stanfor
22-Oct-2019 45
26-Oct-17 45
Slide credit: Svetlana Lazebnik
Clustering
St Stanfor
22-Oct-2019 46
26-Oct-17 46
Clustering
St Stanfor
22-Oct-2019 47
26-Oct-17 47
Slide credit: Bastian Leibe
Clustering
St Stanfor
22-Oct-2019 48
26-Oct-17 48 r
Slide credit: Bastian Leibe
Clustering
St Stanfor
22-Oct-2019 49
number of data points to search. 26-Oct-17 49
Slide credit: Bastian Leibe
Clustering
St Stanfor
22-Oct-2019 50
Comaniciu & Meer, 2002
Clustering
St Stanfor
22-Oct-2019 51
source
Clustering
St Stanfor
22-Oct-2019 52
Comaniciu & Meer, 2002
from two slides ago).
maximum density. Taking the derivative of:
Clustering
St Stanfor
22-Oct-2019 53
Comaniciu & Meer, 2002
Finally, the mean shift procedure from a given point xt is: 1. Computer the mean shift vector m:
Clustering
St Stanfor
22-Oct-2019 54
Slide credit: Svetlana Lazebnik
Clustering
St Stanfor
22-Oct-2019 55