CSSE463: Image Recognition Day 34 This week This week Today: Today: Graph-theoretic approach to segmentation Graph-theoretic approach to segmentation Tuesday:

Slides:



Advertisements
Similar presentations
Segmentácia farebného obrazu
Advertisements

Normalized Cuts and Image Segmentation
Clustering II CMPUT 466/551 Nilanjan Ray. Mean-shift Clustering Will show slides from:
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.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Lecture 21: Spectral Clustering
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
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.
Image Segmentation Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”.
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
CS 376b Introduction to Computer Vision 04 / 04 / 2008 Instructor: Michael Eckmann.
Segmentation Graph-Theoretic Clustering.
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
Cutting complete weighted graphs Jameson Cahill Ido Heskia Math/CSC 870 Spring 2007.
Image Segmentation Some slides: courtesy of O. Capms, Penn State, J.Ponce and D. Fortsyth, Computer Vision Book.
Image Matching via Saliency Region Correspondences Alexander Toshev Jianbo Shi Kostas Daniilidis IEEE Conference on Computer Vision and Pattern Recognition.
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.
Announcements vote for Project 3 artifacts Project 4 (due next Wed night) Questions? Late day policy: everything must be turned in by next Friday.
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
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.
Segmentation via Graph Cuts
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Graph-based consensus clustering for class discovery from gene expression data Zhiwen Yum, Hau-San Wong and Hongqiang Wang Bioinformatics, 2007.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Chapter 5 Segmentation Presenter: 蘇唯誠
Segmentation Techniques Luis E. Tirado PhD qualifying exam presentation Northeastern University.
Presenter : Kuang-Jui Hsu Date : 2011/5/3(Tues.).
Clustering appearance and shape by learning jigsaws Anitha Kannan, John Winn, Carsten Rother.
Unsupervised Object Segmentation with a Hybrid Graph Model (HGM) Reporter: 鄭綱 (6/14)
Segmentation using eigenvectors
Segmentation by Clustering
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)
Recognition using Regions (Demo) Sudheendra V. Outline Generating multiple segmentations –Normalized cuts [Ren & Malik (2003)] Uniform regions –Watershed.
Image Segmentation February 27, Implicit Scheme is considerably better with topological change. Transition from Active Contours: –contour v(t) 
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.
Jad silbak -University of Haifa. What we have, and what we want: Most segmentations until now focusing on local features (K-Means). We would like to extract.
Learning Spectral Clustering, With Application to Speech Separation F. R. Bach and M. I. Jordan, JMLR 2006.
CSSE463: Image Recognition Day 31 Today: Bayesian classifiers Today: Bayesian classifiers Tomorrow: Out-of-class project workday Tomorrow: Out-of-class.
Image Segmentation Superpixel methods Speaker: Hsuan-Yi Ko.
 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.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP10 Advanced Segmentation Miguel Tavares.
CS 2750: Machine Learning Clustering Prof. Adriana Kovashka University of Pittsburgh January 25, 2016.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Image segmentation.
Document Clustering with Prior Knowledge Xiang Ji et al. Document Clustering with Prior Knowledge. SIGIR 2006 Presenter: Suhan Yu.
K-Means Segmentation.
Miguel Tavares Coimbra
Segmentation by clustering: normalized cut
Region Segmentation Readings: Chapter 10: 10
CSSE463: Image Recognition Day 34
Segmentation and Grouping
Segmentation Graph-Theoretic Clustering.
Grouping.
Digital Image Processing
Image Segmentation CS 678 Spring 2018.
Spectral Clustering Eric Xing Lecture 8, August 13, 2010
Announcements Project 4 out today (due Wed March 10)
Announcements Project 1 is out today help session at the end of class.
CSSE463: Image Recognition Day 34
“Traditional” image segmentation
Presentation transcript:

CSSE463: Image Recognition Day 34 This week This week Today: Today: Graph-theoretic approach to segmentation Graph-theoretic approach to segmentation Tuesday: Project workday Tuesday: Project workday Thursday: Test 2 Thursday: Test 2 Friday: status reports due Friday: status reports due Next week: Next week: Monday – Friday: presentations Monday – Friday: presentations Questions? Questions?

Segmentation Goal: we want the pixels in each region to be similar to each other, but different than ones in other regions. Goal: we want the pixels in each region to be similar to each other, but different than ones in other regions. Measures of affinity: Measures of affinity: Color, distance, edges, texture, etc. Color, distance, edges, texture, etc.

Graph-theoretic segmentation J Shi and J Malik, Normalized Cuts and Image Segmentation, IEEE TPAMI, 22(8), Aug J Shi and J Malik, Normalized Cuts and Image Segmentation, IEEE TPAMI, 22(8), Aug Posted in Angel > Papers in Angel Posted in Angel > Papers in Angel Much of the next set of slides is from Forsyth & Ponce, section Much of the next set of slides is from Forsyth & Ponce, section But first, what’s a graph? (on board) But first, what’s a graph? (on board) Undirected vs. directed Undirected vs. directed Weight matrices Weight matrices Q2a-b

What’s graph-based segmentation? From images to graphs: From images to graphs: Each pixel is a vertex Each pixel is a vertex Each edge represents an affinity between pixels Each edge represents an affinity between pixels Color, texture, distance, edges, etc. Color, texture, distance, edges, etc. Cut the graph into two subgraphs (regions) with high affinity within each subgraph and low affinity across subgraphs Cut the graph into two subgraphs (regions) with high affinity within each subgraph and low affinity across subgraphs Recurse Recurse How? How? An exact solution is NP-complete. An exact solution is NP-complete. Q1

Split such that large weights (affinity) within cluster, low weights between clusters

Weight matrix Brighter = Larger weights Ordered such that each cluster (blocks) is on the diagonal. Cutting the graph gives two separate blocks

Measuring Affinity Recall: goal is for similar pixels to have higher affinity Recall: goal is for similar pixels to have higher affinity Intensity Color Distance What if c(x) == c(y)? What if they are very different?

Scale affects affinity Affinity by distance with  d = 0.1,  d =0.2,  d =1

How to segment There are some techniques that ignore across-cluster distance (and only use within-cluster affinity). There are some techniques that ignore across-cluster distance (and only use within-cluster affinity). We’ll ignore these We’ll ignore these Want to minimize the cut between clusters A and B: Want to minimize the cut between clusters A and B: In this graph, cut(left, right) = ___ In this graph, cut(left, right) = ___ This creates two segments like discussed above. However, it favors small regions This creates two segments like discussed above. However, it favors small regions Q2c

Normalized cuts (ncuts) approach Want to weight the cut by the total association with the whole graph Want to weight the cut by the total association with the whole graph Example. Example. This is equivalent to maximizing: This is equivalent to maximizing: Intuition: maximize the association (total affinity) within each cluster relative to its association with the whole graph Intuition: maximize the association (total affinity) within each cluster relative to its association with the whole graph Q2d-e

How do we find min Ncut()? Let W be the matrix of weights Let W be the matrix of weights Let d be the total affinity of pixel d with the rest of the image (row sums of W), and D be a matrix with the d(i) on the diagonal Let d be the total affinity of pixel d with the rest of the image (row sums of W), and D be a matrix with the d(i) on the diagonal Let x be a vector whose elements are 1 if item is in A, -1 if it’s in B, Let x be a vector whose elements are 1 if item is in A, -1 if it’s in B, Let y = f(x,d) defined in the paper. Let y = f(x,d) defined in the paper. 1 is the vector with all ones. 1 is the vector with all ones. Criterion becomes Criterion becomes subject to the constraint See p. 890, Shi and Malik for details

Normalized cuts To do this, we can solve the generalized eigenvalue problem To do this, we can solve the generalized eigenvalue problem which gives which gives The authors showed that the solution, y, corresponding to the second smallest eigenvalue solves this problem (the smallest is a trivial solution). The authors showed that the solution, y, corresponding to the second smallest eigenvalue solves this problem (the smallest is a trivial solution). When y is discrete, this is np-hard. When y is discrete, this is np-hard. Solution: assume y is continuous, solve, then threshold to give the clusters (approximation) Solution: assume y is continuous, solve, then threshold to give the clusters (approximation) Recursively split clusters until we pass a threshold on the cut value. Recursively split clusters until we pass a threshold on the cut value.

Figure from “Image and video segmentation: the normalised cut framework”, by Shi and Malik, copyright IEEE, 1998 Results with color + texture

Figure from “Normalized cuts and image segmentation,” Shi and Malik, copyright IEEE, 2000 Results with motion This uses distances too Q3