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,

Slides:



Advertisements
Similar presentations
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Advertisements

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.
Metrics, Algorithms & Follow-ups Profile Similarity Measures Cluster combination procedures Hierarchical vs. Non-hierarchical Clustering Statistical follow-up.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Lecture 6 Image Segmentation
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
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 and Clustering. Segmentation: Divide image into regions of similar contentsSegmentation: Divide image into regions of similar contents Clustering:
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.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
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.
Cluster Analysis: Basic Concepts and Algorithms
Cluster Analysis (1).
What is Cluster Analysis?
Perceptual Organization: Segmentation and Optical Flow.
Clustering Ram Akella Lecture 6 February 23, & 280I University of California Berkeley Silicon Valley Center/SC.
Announcements vote for Project 3 artifacts Project 4 (due next Wed night) Questions? Late day policy: everything must be turned in by next Friday.
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.
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: 蘇唯誠
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
Computer Vision James Hays, Brown
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
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.
Computer Graphics and Image Processing (CIS-601).
CS 8751 ML & KDDData Clustering1 Clustering Unsupervised learning Generating “classes” Distance/similarity measures Agglomerative methods Divisive methods.
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.
Image Segmentation Shengnan Wang
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.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP10 Advanced Segmentation Miguel Tavares.
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.
Given a set of data points as input Randomly assign each point to one of the k clusters Repeat until convergence – Calculate model of each of the k clusters.
1 Review and Summary We have covered a LOT of material, spending more time and more detail on 2D image segmentation and analysis, but hopefully giving.
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.
Analysis of Massive Data Sets Prof. dr. sc. Siniša Srbljić Doc. dr. sc. Dejan Škvorc Doc. dr. sc. Ante Đerek Faculty of Electrical Engineering and Computing.
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.
Miguel Tavares Coimbra
CSSE463: Image Recognition Day 21
Clustering and Segmentation
Computer Vision Lecture 12: Image Segmentation II
Segmentation and Grouping
CSSE463: Image Recognition Day 23
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
“Traditional” image segmentation
Presentation transcript:

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, this is about interiorsA: no, that was about boundaries, this is about interiors – Want regions of similar contents

Segmentation via 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

Themes Energy minimizationEnergy minimization – Snakes: discretize, greedy minimization – Snakes, shape from shading: differential eqn – Stereo with smoothness: min-cost graph cuts – Today: k-means clustering StatisticsStatistics TemplatesTemplates Hot topic in vision research: combining these Hot topic in vision research: combining these

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

This process always converges (to something)This process always converges (to something) – Not necessarily globally-best assignment Informal proof: look at energy minimizationInformal proof: look at energy minimization – Reclassifying points reduces (or maintains) energy – Recomputing centers reduces (or maintains) energy – Can’t reduce energy forever

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