Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.

Slides:



Advertisements
Similar presentations
E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Advertisements

Segmentácia farebného obrazu
Normalized Cuts and Image Segmentation
I Images as graphs Fully-connected graph – node for every pixel – link between every pair of pixels, p,q – similarity w ij for each link j w ij c Source:
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
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.
Image Segmentation Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”.
Segmentation and Clustering. Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering:
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
Segmentation Graph-Theoretic Clustering.
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
Segmentation by Clustering Reading: Chapter 14 (skip 14.5) Data reduction - obtain a compact representation for interesting image data in terms of a set.
Cutting complete weighted graphs Jameson Cahill Ido Heskia Math/CSC 870 Spring 2007.
Segmentation and Clustering. Déjà Vu? Q: Haven’t we already seen this with snakes?Q: Haven’t we already seen this with snakes? A: no, that was about boundaries,
Image Segmentation A Graph Theoretic Approach. Factors for Visual Grouping Similarity (gray level difference) Similarity (gray level difference) Proximity.
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,...
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Clustering Unsupervised learning Generating “classes”
Graph-based Segmentation
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Computer Vision James Hays, Brown
Segmentation Techniques Luis E. Tirado PhD qualifying exam presentation Northeastern University.
Segmentation using eigenvectors
CSSE463: Image Recognition Day 34 This week This week Today: Today: Graph-theoretic approach to segmentation Graph-theoretic approach to segmentation Tuesday:
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)
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
Segmentation Course web page: vision.cis.udel.edu/~cv May 7, 2003  Lecture 31.
CAP 5415 Computer Vision Fall 2004
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
CS654: Digital Image Analysis
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
Image Segmentation Shengnan Wang
Image Segmentation Superpixel methods Speaker: Hsuan-Yi Ko.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
 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.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Normalized Cuts and Image Segmentation Patrick Denis COSC 6121 York University Jianbo Shi and Jitendra Malik.
Document Clustering with Prior Knowledge Xiang Ji et al. Document Clustering with Prior Knowledge. SIGIR 2006 Presenter: Suhan Yu.
K-Means Segmentation.
Course : T Computer Vision
Miguel Tavares Coimbra
Segmentation by clustering: normalized cut
CSSE463: Image Recognition Day 34
Segmentation and Grouping
Segmentation Graph-Theoretic Clustering.
Grouping.
CSSE463: Image Recognition Day 23
Digital Image Processing
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
Image Segmentation CS 678 Spring 2018.
Spectral Clustering Eric Xing Lecture 8, August 13, 2010
CSSE463: Image Recognition Day 23
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 23
CSSE463: Image Recognition Day 34
“Traditional” image segmentation
Presentation transcript:

Region Segmentation

Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.

K-Means Choose a fixed number of clusters Choose cluster centers and point-cluster allocations to minimize error can’t do this by search, because there are too many possible allocations. Algorithm fix cluster centers; allocate points to closest cluster fix allocation; compute best cluster centers x could be any set of features for which we can compute a distance (careful about scaling)

K-Means

Image Segmentation by K-Means Select a value of K Select a feature vector for every pixel (color, texture, position, or combination of these etc.) Define a similarity measure between feature vectors (Usually Euclidean Distance). Apply K-Means Algorithm. Apply Connected Components Algorithm. Merge any components of size less than some threshold to an adjacent component that is most similar to it.

K-means clustering using intensity alone and color alone Image Clusters on intensity Clusters on color

K-means using color alone, 11 segments Image Clusters on color

K-means using color alone, 11 segments.

K-means using colour and position, 20 segments

How to find K Use prior knowledge about image. Apply the algorithm for different values of K and test for goodness of clusters. Analyze Image Histograms.

How to find K

How to Find K Realistic Histograms

How to Find K Smooth Histogram. (Convolve by averaging or Gaussian Filter)

How to Find K Find Peaks and Valleys and perform peakiness test.

Agglomerative clustering Assume that each cluster is single pixel (i.e. every pixel is a cluster itself). Merge Clusters i.e. attach closest to cluster it is closest to (if possible) Repeat step 2 until no more clusters can be merged.

Divisive clustering Assume that whole image is a single cluster. Split Clusters along best boundary (if exists) Repeat step 2 until no more clusters can be split.

Inter-Cluster distance single-link clustering: Minimum distance between an element of the first cluster and one of the second.. complete-link clustering: Maximum distance between an element of the first cluster and one of the second. group-average clustering: Average of distances between elements in the clusters.

Segmentation by Split and Merge Start with an initial segmentation (for example by K- Means). Define a criteria P for goodness of region such that P( R )=True, if R satisfies the criteria P( R )=False, otherwise For each region R, split R in four regions (quadrants), if P( R ) = False Merge any two adjacent regions R and Q if Repeat until no more clusters can be split or merged.

Segmentation by Split and Merge

Graph Theoretical Techniques for Image Segmentation

Graph A graph G(V,E) is a triple consisting of a vertex set V(G) an edge set E(G) and a relation that associates with each edge two vertices called its end points.

Path A path is a sequence of edges e1, e2, e3, … en. Such that each (for each i>2 & i<n) edge ei is adjacent to e(i+1) and e(i-1). e1 is only adjacent to e2 and en is only adjacent to e(n-1)

Connected & Disconnected Graph A graph G is connected if there is a path from every vertex to every other vertex in G. A graph G that is not connected is called disconnected graph.

Graphs Representations a e d c b Adjacency Matrix: W

Weighted Graphs and Their Representations a e d c b Weight Matrix: W 6

Minimum Cut A cut of a graph G is the set of edges S such that removal of S from G disconnects G. Minimum cut is the cut of minimum weight, where weight of cut is given as

Minimum Cut and Clustering

Image Segmentation & Minimum Cut Image Pixels Pixel Neighborhood w Similarity Measure Minimum Cut

Minimum Cut There can be more than one minimum cut in a given graph All minimum cuts of a graph can be found in polynomial time 1. 1 H. Nagamochi, K. Nishimura and T. Ibaraki, “Computing all small cuts in an undirected network. SIAM J. Discrete Math. 10 (1997)

Drawbacks of Minimum Cut Weight of cut is directly proportional to the number of edges in the cut. Ideal Cut Cuts with lesser weight than the ideal cut

Normalized Cuts 1 Normalized cut is defined as N cut (A,B) is the measure of dissimilarity of sets A and B. Minimizing N cut (A,B) maximizes a measure of similarity within the sets A and B 1 J. Shi and J. Malik, “Normalized Cuts & Image Segmentation,” IEEE Trans. of PAMI, Aug 2000.

Finding Minimum Normalized-Cut Finding the Minimum Normalized-Cut is NP-Hard. Polynomial Approximations are generally used for segmentation

Finding Minimum Normalized-Cut Image Pixels Pixel Neighborhood w Similarity Measure 1 n 3 2 n-1

Finding Minimum Normalized-Cut

It can be shown that such that If y is allowed to take real values then the minimization can be done by solving the generalized eigenvalue system Finding Minimum Normalized-Cut

Algorithm Compute matrices W & D Solve for eigen vectors with the smallest eigen values Use the eigen vector with second smallest eigen value to bipartition the graph Recursively partition the segmented parts if necessary.

Figure from “Image and video segmentation: the normalised cut framework”, by Shi and Malik, 1998

F igure from “Normalized cuts and image segmentation,” Shi and Malik, 2000

Drawbacks of Minimum Normalized Cut Huge Storage Requirement and time complexity Bias towards partitioning into equal segments Have problems with textured backgrounds

Suggested Reading Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”. Jianbo Shi, Jitendra Malik, “Normalized Cuts and Image Segmentation,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 1997 Chapter 3, Mubarak Shah, “Fundamentals of Computer Vision”