Clustering and Segmentation

Slides:



Advertisements
Similar presentations
Segmentation by Morphological Watersheds
Advertisements

Department of Computer Engineering
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
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.
Segmentation Divide the image into segments. Each segment:
Segmentation. Methods Region Growing Split and Merge Clustering.
Clustering Color/Intensity
Unsupervised Learning and Data Mining
Clustering. 2 Outline  Introduction  K-means clustering  Hierarchical clustering: COBWEB.
What is Cluster Analysis?
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
Image segmentation by clustering in the color space CIS581 Final Project Student: Qifang Xu Advisor: Dr. Longin Jan Latecki.
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Computer Vision James Hays, Brown
Image Segmentation Seminar III Xiaofeng Fan. Today ’ s Presentation Problem Definition Problem Definition Approach Approach Segmentation Methods Segmentation.
Digital Image Processing In The Name Of God Digital Image Processing Lecture8: Image Segmentation M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing CSC331
CSIE Dept., National Taiwan Univ., Taiwan
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Medical Imaging Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Chapter 10 Image Segmentation.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
EECS 274 Computer Vision Segmentation by Clustering II.
Chapter 9 DTW and VQ Algorithm  9.1 Basic idea of DTW  9.2 DTW algorithm  9.3 Basic idea of VQ  9.4 LBG algorithm  9.5 Improvement of VQ.
CS654: Digital Image Analysis
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.
Image Segmentation Shengnan Wang
Machine Vision ENT 273 Regions and Segmentation in Images Hema C.R. Lecture 4.
Lloyd Algorithm K-Means Clustering. Gene Expression Susumu Ohno: whole genome duplications The expression of genes can be measured over time. Identifying.
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
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.
Intro. ANN & Fuzzy Systems Lecture 20 Clustering (1)
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
DATA MINING: CLUSTER ANALYSIS Instructor: Dr. Chun Yu School of Statistics Jiangxi University of Finance and Economics Fall 2015.
ITK. Ch 9 Segmentation Confidence Connected Isolated Connected Confidence Connected in Vector Images Jin-ju Yang.
Lecture z Chapter 10: Image Segmentation. Segmentation approaches 1) Gradient based: How different are pixels? 2) Thresholding: Converts grey-level images.
Course : T Computer Vision
Machine Vision ENT 273 Lecture 4 Hema C.R.
Image Segmentation.
Computer Vision Lecture 13: Image Segmentation III
Classification of unlabeled data:
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Lecture 22 Clustering (3).
Fall 2012 Longin Jan Latecki
CSSE463: Image Recognition Day 23
Lecture 21 Clustering (2).
Miguel Tavares Coimbra
Problem Definition Input: Output: Requirement:
Total Variation and Hypothesis Testing for Segmentation
Digital Image Processing
CSSE463: Image Recognition Day 23
Unsupervised Learning: Clustering
CSSE463: Image Recognition Day 23
EM Algorithm and its Applications
Image Segmentation Using Region Growing and Shrinking
Presentation transcript:

Clustering and Segmentation Supplement materials Yu Hen Hu

What is “Clustering”? What can we learn from these “unlabeled” data samples? Structures: Some samples are closer to each other than other samples The closeness between samples are determined using a “similarity measure” The number of samples per unit volume is related to the concept of “density” or “distribution” © 2003 by Yu Hen Hu

Clustering Problem Statement Given a set of vectors {xk; 1  k  K}, find a set of M clustering centers {w(i); 1  i  c} such that each xk is assigned to a cluster, say, w(i*), according to a distance (distortion, similarity) measure d(xk, w(i)) such that the average distortion is minimized. I(xk,i) = 1 if x is assigned to cluster i with cluster center w(I); and = 0 otherwise -- indicator function. © 2003 by Yu Hen Hu

k-means Clustering Algorithm Initialization: Initial cluster center w(i); 1  i  c, D(–1)= 0, I(xk,i) = 0, 1  i  c, 1  k  K; Repeat (A) Assign cluster membership (Expectation step) Evaluate d(xk, w(i)); 1  i  c, 1  k  K I(xk,i) = 1 if d(xk, w(i)) < d(xk, w(j)), j  i; = 0; otherwise. 1  k  K (B) Evaluate distortion D: (C) Update code words according to new assignment (Maximization) (D) Check for convergence if 1–D(Iter–1)/D(Iter) < e , then convergent = TRUE, © 2003 by Yu Hen Hu

A Numerical Example x = {-1, -2,0,2,3,4}, W={2.1, 2.3} Assign membership 2.1: {-1, -2, 0, 2} 2.3: {3, 4} Distortion D = (-1-2.1)2 + (-2-2.1)2 + (0-2.1)2 + (2-2.1)2 + (3-2.3)2 + (4-2.3)2 3. Update W to minimize distortion W1 = (-1-2+0+2)/4 = -.25 W2 = (3+4)/2 = 3.5 4. Reassign membership -.25: {-1, -2, 0} 3.5: {2, 3, 4} Update W: w1 = (-1-2+0)/3 = -1 w2 = (2+3+4)/3 = 3. Converged. © 2003 by Yu Hen Hu

Kmeans Algorithm Demonstration Clusterdemo.m © 2003 by Yu Hen Hu

Image Segmentation Using Threshold © 2003 by Yu Hen Hu

Image Segmentation Using Local Threshold © 2003 by Yu Hen Hu

Color Image Segmentation Perceptual distance in color space needs to be defined. That is, two close colors should be the ones that are perceptually similar. © 2003 by Yu Hen Hu

Segmentation by Region Growing Select seed points Determine similarity criteria between two regions. For each seed point or seed region, compute the similarity between it and points adjacent to its boundary. If the similarity exceeds a preset threshold, the neighboring points are added to the current region. Iterate until stop criteria are satisfied. A bottom-up approach Clustering with connectivity constraint. Clustering criteria pre-determined. With local similarity measures, the results can be sensitive to the selection of seed points and stop criteria. Region merge and region split may be required during post-processing phase. © 2003 by Yu Hen Hu

Segmentation by Region Growing © 2003 by Yu Hen Hu

Segmentation by Region Split and Merge Split into a quad-tree representation A region is split if a condition (predicate) is not satisfied. May lead to over-fragmentation. Must also consider region merging. Two adjacent regions should be merge if a condition (predicate) is satisfied. This can be accomplished by growing each region toward its neighbors. © 2003 by Yu Hen Hu

Region Split-Merge Example © 2003 by Yu Hen Hu

Segmentation by Morphological Watersheds Image as a 3D plots: gray value (z-dim) vs. spatial coordinates (x-y plane). Two types of points: 1. Watersheds: if a drop of water is landed on that point, it will fall into the same basin of water. 2. Divide lines (watershed lines): points equally likely to fall into more than one watersheds. Region growing by flooding. © 2003 by Yu Hen Hu

Segmentation by Morphological Watersheds © 2003 by Yu Hen Hu

Segmentation by Morphological Watersheds © 2003 by Yu Hen Hu