1 Perceptual Organization and Linear Algebra Charless Fowlkes Computer Science Dept. University of California at Berkeley.

Slides:



Advertisements
Similar presentations
Partitional Algorithms to Detect Complex Clusters
Advertisements

3D Geometry for Computer Graphics
Department of Computer Engineering
Segmentácia farebného obrazu
Normalized Cuts and Image Segmentation
Online Social Networks and Media. Graph partitioning The general problem – Input: a graph G=(V,E) edge (u,v) denotes similarity between u and v weighted.
Clustering II CMPUT 466/551 Nilanjan Ray. Mean-shift Clustering Will show slides from:
Foreground/Background Image Segmentation. What is our goal? To label each pixel in an image as belonging to either the foreground of the scene or the.
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
10/11/2001Random walks and spectral segmentation1 CSE 291 Fall 2001 Marina Meila and Jianbo Shi: Learning Segmentation by Random Walks/A Random Walks View.
1 Representing Graphs. 2 Adjacency Matrix Suppose we have a graph G with n nodes. The adjacency matrix is the n x n matrix A=[a ij ] with: a ij = 1 if.
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Lecture 21: Spectral Clustering
Spectral Clustering 指導教授 : 王聖智 S. J. Wang 學生 : 羅介暐 Jie-Wei Luo.
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
Computer Graphics Recitation 5.
Normalized Cuts and Image Segmentation Jianbo Shi and Jitendra Malik, Presented by: Alireza Tavakkoli.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Image Segmentation Based on the work of Shi and Malik, Carnegie Mellon and Berkley and based on.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
1 Stella X. Yu 1,2 Jianbo Shi 1 Robotics Institute 1 Carnegie Mellon University Center for the Neural Basis of Cognition 2 Understanding Popout through.
A Unified View of Kernel k-means, Spectral Clustering and Graph Cuts
Segmentation Graph-Theoretic Clustering.
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
Efficient Spatiotemporal Grouping Using the Nyström Method Charless Fowlkes, U.C. Berkeley Serge Belongie, U.C. San Diego Jitendra Malik, U.C. Berkeley.
Image Segmentation A Graph Theoretic Approach. Factors for Visual Grouping Similarity (gray level difference) Similarity (gray level difference) Proximity.
אשכול בעזרת אלגורתמים בתורת הגרפים
Presentation By Michael Tao and Patrick Virtue. Agenda History of the problem Graph cut background Compute graph cut Extensions State of the art Continued.
Perceptual Organization: Segmentation and Optical Flow.
Lecture 16 Cramer’s Rule, Eigenvalue and Eigenvector Shang-Hua Teng.
Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Normal Estimation in Point Clouds 2D/3D Shape Manipulation, 3D Printing March 13, 2013 Slides from Olga Sorkine.
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
GROUPING AND VISUAL RELATIONSHIPS Principle of Proximity.
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Domain decomposition in parallel computing Ashok Srinivasan Florida State University COT 5410 – Spring 2004.
Presenter : Kuang-Jui Hsu Date : 2011/5/3(Tues.).
Segmentation using eigenvectors
Graph Partitioning and Clustering E={w ij } Set of weighted edges indicating pair-wise similarity between points Similarity Graph.
CSSE463: Image Recognition Day 34 This week This week Today: Today: Graph-theoretic approach to segmentation Graph-theoretic approach to segmentation Tuesday:
Segmentation using eigenvectors Papers: “Normalized Cuts and Image Segmentation”. Jianbo Shi and Jitendra Malik, IEEE, 2000 “Segmentation using eigenvectors:
Region Segmentation Readings: Chapter 10: 10.1 Additional Materials Provided K-means Clustering (text) EM Clustering (paper) Graph Partitioning (text)
Random Walks and Semi-Supervised Learning Longin Jan Latecki Based on : Xiaojin Zhu. Semi-Supervised Learning with Graphs. PhD thesis. CMU-LTI ,
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
Visual Grouping and Recognition Jitendra Malik University of California at Berkeley Jitendra Malik University of California at Berkeley.
Spectral Analysis based on the Adjacency Matrix of Network Data Leting Wu Fall 2009.
Spectral Clustering Jianping Fan Dept of Computer Science UNC, Charlotte.
Domain decomposition in parallel computing Ashok Srinivasan Florida State University.
Spectral Partitioning: One way to slice a problem in half C B A.
 In the previews parts we have seen some kind of segmentation method.  In this lecture we will see graph cut, which is a another segmentation method.
HOLT, RINEHART AND WINSTON P SYCHOLOGY PRINCIPLES IN PRACTICE 1 Chapter 4 Rules of Perceptual Organization Perception—the way in which we organize or make.
Spectral Clustering Shannon Quinn (with thanks to William Cohen of Carnegie Mellon University, and J. Leskovec, A. Rajaraman, and J. Ullman of Stanford.
Mesh Segmentation via Spectral Embedding and Contour Analysis Speaker: Min Meng
A Tutorial on Spectral Clustering Ulrike von Luxburg Max Planck Institute for Biological Cybernetics Statistics and Computing, Dec. 2007, Vol. 17, No.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Image segmentation.
Spectral Methods for Dimensionality
Image Segmentation Today’s Readings Szesliski Chapter 5
Minimum Spanning Tree Chapter 13.6.
Jianping Fan Dept of CS UNC-Charlotte
Degree and Eigenvector Centrality
Segmentation Graph-Theoretic Clustering.
Grouping.
Seam Carving Project 1a due at midnight tonight.
Unitialized, Globally Optimal, Graph-Based Rectilinear Shape Segmentation - The Opposing Metrics Method Computer Science Department – Carnegie Mellon University,
Spectral Clustering Eric Xing Lecture 8, August 13, 2010
3.3 Network-Centric Community Detection
“Traditional” image segmentation
Presentation transcript:

1 Perceptual Organization and Linear Algebra Charless Fowlkes Computer Science Dept. University of California at Berkeley

2

3

4

5

6

7

8 Perceptual Organization Gestalt school of psychology (1920’s) –Whole is greater than the sum of its parts Grouping Principles –Proximity, Similarity Figure/Ground Organization –Convexity, Symmetry, Familiarity

9 Do these visual phenomenon matter for real images? Why do they exist? Can we build a computational model of this process?

10 Q: Do these visual phenomenon matter for real images?

11

12 Q: Why does the brain do this? A: Perceptual organization is a useful trick for making sense of our world. Study the statistics of natural images. If similar pixels are statistically more likely to belong to the same object/surface then this all makes sense.

13 Q: Can we build a mathematical model of this process? A: Let’s roll up our sleeves and give it a try!

14

15 Encode Pairwise Relationships as a Weighted Graph

16 Cut the graph into two pieces

17 Algebraic representation of a weighted undirected graph W(i,j) = similarity of vertex i and vertex j W(i,j) = W(j,i) 2 [0,1]

18 Degree of a node: d i =  j W i,j Degree matrix: D ii =  j W i,j

19 Volume of a set vol(A) =  i 2 A d i

20 Weight of a cut: cut(A,B) =  i 2 A, j 2 B W i,j

21 x x Indicator vector: x i = 1 if vertex i 2 A 0 otherwise

22 vol(A) =  i 2 A d i cut(A,A c ) =  i 2 A, j 2 A c W i,j vol(A) = x T D x cut(A,A c ) = x T (D-W) x D-W is called the Graph Laplacian x x

23 Finding a cut with small weight Minimize x T (D-W) x subject to x 2 {0,1} N Minimize x T (D-W) x subject to ||x|| 2 =1 This is an eigenvalue problem!

24 Lets solve it. download makeW.m and showGroups.m >> [W,coords] = makeSimilarity(30,70,1); >> D = diag(sum(W,2)); >> L = D-W; >> [U,S] = eig(L); >> indicator = U(:,2) > 0; >> showGroups(coords,indicator)

25 A problem with minimum cuts… >> [W,coords] = makeSimilarity(30,70,0.5,true);

26 Solution: Normalized Cut Simultaneously minimize similarity between groups And maximize similarity within groups Corresponding generalized eigenvalue problem: (D-W)x = Dx

27 Comparing Generalized Eigenvectors. >> [W,coords] = makeSimilarity(30,70,0.5,true); >> D = diag(sum(W,2)); >> L = D-W; >> [U1,S] = eig(L); >> [U2,S] = eig(L,D); >> showGroups(coords, U1(:,2) > 0 ) >> showGroups(coords, U2(:,2) > 0 )

28 Working with real images Each pixel is a vertex of the graph Similarities between pixels correspond to weights For example, difference in grayscale value: W(i,j) = exp(-(I(i) – I(j)) 2 /  2 ) - Partitioning the graph gives a segmentation of the image

29 Working with real images demo2.m: W = makeW2(0.01,0.3); D = diag(sum(W,1)); L = D - W; [U,S] = eig(L,D); im2 = reshape(U(:,2),size(im,1),size(im,2)); figure(2); subplot(2,1,1); imagesc(im2); axis image; subplot(2,1,2); imagesc(im2>0); axis image;

30 Generalized eigenvalue problem has interpretation as a mass-spring system(D-W)x = Dx K is the stiffness matrix, M is the mass matrix

31 Videos

32 More uses of the Laplacian For un-weighted graphs, the combinatorial Laplacian, D-A, captures connectivity of the graph –det(D-A) counts # of spanning trees –rank(D-A) = N - #components = (0 th Betti number) Spectrum of Laplacian operator on a manifold gives information about the shape of the manifold

33 Can you hear the shape of a drum?

34 Can you hear the shape of a drum?