Segmentation and Clustering. Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering:

Slides:



Advertisements
Similar presentations
MASTERS THESIS By: Rahul Suresh
Advertisements

Clustering.
Texture Segmentation Based on Voting of Blocks, Bayesian Flooding and Region Merging C. Panagiotakis (1), I. Grinias (2) and G. Tziritas (3)
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Clustering CMPUT 466/551 Nilanjan Ray. What is Clustering? Attach label to each observation or data points in a set You can say this “unsupervised classification”
Lecture 6 Image Segmentation
EE 7730 Image Segmentation.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
© University of Minnesota Data Mining for the Discovery of Ocean Climate Indices 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance.
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.
Problem Sets Problem Set 3 –Distributed Tuesday, 3/18. –Due Thursday, 4/3 Problem Set 4 –Distributed Tuesday, 4/1 –Due Tuesday, 4/15. Probably a total.
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.
Clustering Color/Intensity
Segmentation by Clustering Reading: Chapter 14 (skip 14.5) Data reduction - obtain a compact representation for interesting image data in terms of a set.
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,
Cluster Analysis (1).
What is Cluster Analysis?
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.
Clustering Ram Akella Lecture 6 February 23, & 280I University of California Berkeley Silicon Valley Center/SC.
Segmentation and Perceptual Grouping The problem Gestalt Edge extraction: grouping and completion Image segmentation.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
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”
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
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.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Chapter 5 Segmentation Presenter: 蘇唯誠
Computer Vision James Hays, Brown
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
Computer Vision Lecture 5. Clustering: Why and How.
Image Segmentation February 27, Implicit Scheme is considerably better with topological change. Transition from Active Contours: –contour v(t) 
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.
START OF DAY 8 Reading: Chap. 14. Midterm Go over questions General issues only Specific issues: visit with me Regrading may make your grade go up OR.
Medical Imaging Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
CS654: Digital Image Analysis
Non-Photorealistic Rendering and Content- Based Image Retrieval Yuan-Hao Lai Pacific Graphics (2003)
Computer Graphics and Image Processing (CIS-601).
1Ellen L. Walker Category Recognition Associating information extracted from images with categories (classes) of objects Requires prior knowledge about.
Image Segmentation in Color Space By Anisa Chaudhary.
Hierarchical Clustering Produces a set of nested clusters organized as a hierarchical tree Can be visualized as a dendrogram – A tree like diagram that.
CSSE463: Image Recognition Day 23 Midterm behind us… Midterm behind us… Foundations of Image Recognition completed! Foundations of Image Recognition completed!
Machine Learning Queens College Lecture 7: Clustering.
Compiled By: Raj Gaurang Tiwari Assistant Professor SRMGPC, Lucknow Unsupervised Learning.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
1 Microarray Clustering. 2 Outline Microarrays Hierarchical Clustering K-Means Clustering Corrupted Cliques Problem CAST Clustering Algorithm.
CZ5211 Topics in Computational Biology Lecture 4: Clustering Analysis for Microarray Data II Prof. Chen Yu Zong Tel:
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Motion Segmentation at Any Speed Shrinivas J. Pundlik Department of Electrical and Computer Engineering, Clemson University, Clemson, SC.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
May 2003 SUT Color image segmentation – an innovative approach Amin Fazel May 2003 Sharif University of Technology Course Presentation base on a paper.
Image Mosaicing with Motion Segmentation from Video Augusto Roman, Taly Gilat EE392J Final Project 03/20/01.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach, Kumar Introduction.
Clustering (1) Clustering Similarity measure Hierarchical clustering
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Fall 2012 Longin Jan Latecki
CSSE463: Image Recognition Day 23
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
Total Variation and Hypothesis Testing for Segmentation
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
EM Algorithm and its Applications
“Traditional” image segmentation
Presentation transcript:

Segmentation and Clustering

Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering: Aggregate pixels into regions of similar contents

But Wait! We speak of segmenting foreground from backgroundWe speak of segmenting foreground from background Segmenting out skin colorsSegmenting out skin colors Segmenting out the moving personSegmenting out the moving person How do these relate to “similar regions”?How do these relate to “similar regions”?

Segmentation and Clustering Defining regionsDefining regions – Should they be compact? Smooth boundary? Defining similarityDefining similarity – Color, texture, motion, … Defining similarity of regionsDefining similarity of regions – Minimum distance, mean, maximum

Segmentation and Clustering Applications Semantics “Intelligent scissors” Finding skin-colored regions Foreground / background segmentation Finding the moving objects Finding the cars in a video sequence

Segmentation and Clustering Applications “Intelligent scissors” Finding skin-colored regions Foreground / background segmentation Finding the moving objects Finding the cars in a video sequence StatisticsTemplates

Clustering Based on Color Let’s make a few concrete choices:Let’s make a few concrete choices: – Arbitrary regions – Similarity based on color only – Similarity of regions = distance between mean colors

Simple Agglomerative Clustering Start with each pixel in its own clusterStart with each pixel in its own cluster Iterate:Iterate: – Find pair of clusters with smallest inter-cluster distance – Merge Stopping thresholdStopping threshold

Simple Divisive Clustering Start with whole image in one clusterStart with whole image in one cluster Iterate:Iterate: – Find cluster with largest intra-cluster variation – Split into two pieces that yield largest inter-cluster distance Stopping thresholdStopping threshold

Difficulties with Simple Clustering Many possibilities at each iterationMany possibilities at each iteration Computing distance between clusters or optimal split expensiveComputing distance between clusters or optimal split expensive Heuristics to speed this up:Heuristics to speed this up: – For agglomerative clustering, approximate each cluster by average for distance computations – For divisive clustering, use summary (histogram) of a region to compute split

k-means Clustering 1.Pick number of clusters k 2.Randomly scatter k “cluster centers” in color space 3.Repeat: a.Assign each data point to its closest cluster center b.Move each cluster center to the mean of the points assigned to it Instead of merging or splitting, start out with the clusters and move them aroundInstead of merging or splitting, start out with the clusters and move them around

k-means Clustering

Results of Clustering Original Image k -means, k =5 k -means, k =11

Results of Clustering Sample clusters with k -means clustering based on color

Other Distance Measures Suppose we want to have compact regionsSuppose we want to have compact regions New feature space: 5D (2 spatial coordinates, 3 color components)New feature space: 5D (2 spatial coordinates, 3 color components) Points close in this space are close both in color and in actual proximityPoints close in this space are close both in color and in actual proximity

Results of Clustering Sample clusters with k -means clustering based on color and distance

Other Distance Measures Problem with simple Euclidean distance: what if coordinates range from but colors only range from 0-255?Problem with simple Euclidean distance: what if coordinates range from but colors only range from 0-255? – Depending on how things are scaled, gives different weight to different kinds of data Weighted Euclidean distance: adjust weights to emphasize different dimensionsWeighted Euclidean distance: adjust weights to emphasize different dimensions

Mahalanobis Distance Automatically assign weights based on actual variation in the data where C is covariance matrix of all pointsAutomatically assign weights based on actual variation in the data where C is covariance matrix of all points Gives each dimension “equal” weightGives each dimension “equal” weight Also accounts for correlations between different dimensionsAlso accounts for correlations between different dimensions

Segmentation Based on Graph Cuts Create graph:Create graph: – Nodes = pixels in image – Edge between each pair of nodes – Edge weight = similarity (intensity, color, texture) Segmentation = graph cutSegmentation = graph cut – Want high intra-segment weights, low inter-segment – Reasonably fast approximate algorithms