CSSE463: Image Recognition Day 23

Slides:



Advertisements
Similar presentations
Unsupervised Learning Clustering K-Means. Recall: Key Components of Intelligent Agents Representation Language: Graph, Bayes Nets, Linear functions Inference.
Advertisements

PARTITIONAL CLUSTERING
Vision REU Week 3. Image registration  Used mutual information-based registration from ITK Ben SchoepkeREU Week 36/8/07 Fixed imageMoving image Pre-registrationPost-registration.
Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Content Based Image Clustering and Image Retrieval Using Multiple Instance Learning Using Multiple Instance Learning Xin Chen Advisor: Chengcui Zhang Department.
Lecture 6 Image Segmentation
EE 7730 Image Segmentation.
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Mean Shift A Robust Approach to Feature Space Analysis Kalyan Sunkavalli 04/29/2008 ES251R.
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:
Clustering Color/Intensity
Adapted by Doug Downey from Machine Learning EECS 349, Bryan Pardo Machine Learning Clustering.
CS292 Computational Vision and Language Segmentation and Region Detection.
CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
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.
Computer Vision James Hays, Brown
Mean-shift and its application for object tracking
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Image segmentation Prof. Noah Snavely CS1114
EECS 274 Computer Vision Segmentation by Clustering II.
A Region Based Stereo Matching Algorithm Using Cooperative Optimization Zeng-Fu Wang, Zhi-Gang Zheng University of Science and Technology of China Computer.
CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:
CS654: Digital Image Analysis
CSSE463: Image Recognition Day 11 Lab 4 (shape) tomorrow: feel free to start in advance Lab 4 (shape) tomorrow: feel free to start in advance Test Monday.
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
Digital Image Processing
CSSE463: Image Recognition Day 11 Due: Due: Written assignment 1 tomorrow, 4:00 pm Written assignment 1 tomorrow, 4:00 pm Start thinking about term project.
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.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Clustering Anna Reithmeir Data Mining Proseminar 2017
Image Representation and Description – Representation Schemes
A Personal Tour of Machine Learning and Its Applications
IMAGE PROCESSING RECOGNITION AND CLASSIFICATION
CSSE463: Image Recognition Day 21
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
DIGITAL SIGNAL PROCESSING
CSSE463: Image Recognition Day 11
Classification of unlabeled data:
CSSE463: Image Recognition Day 5
Mean Shift Segmentation
Computer Vision Lecture 12: Image Segmentation II
Lecture: k-means & mean-shift clustering
A segmentation and tracking algorithm
CSSE463: Image Recognition Day 11
Fall 2012 Longin Jan Latecki
Segmentation of Images By Color
Seam Carving Project 1a due at midnight tonight.
Segmentation (continued)
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 5
CSSE463: Image Recognition Day 5
CSSE463: Image Recognition Day 23
Image Segmentation.
Announcements Project 4 out today (due Wed March 10)
CSSE463: Image Recognition Day 5
A Block Based MAP Segmentation for Image Compression
CSSE463: Image Recognition Day 11
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 11
Computer and Robot Vision I
EM Algorithm and its Applications
Presentation transcript:

CSSE463: Image Recognition Day 23 This week: K-means: a method of image segmentation Lab 6 on k-means tomorrow

An image to segment…

Segmentation The process of breaking an image into regions. Two types: General-purpose “One size fits all” Very difficult… Specialized Intended for a specific domain (say fruit-, circle- or skin-finding) Can be successful One to right is created using the mean-shift algorithm D. Comaniciu, P. Meer: Mean shift: A robust approach toward feature space analysis. IEEE Trans. Pattern Anal. Machine Intell, 24, 603-619, 2002. EDISON code downloadable at http://www.caip.rutgers.edu/riul/research/robust.html

What properties can we use to segment? Regions homogeneous wrt. color, texture, etc. Adjacent regions different (else merge) Smooth boundaries

Approaches Models Clustering Uses an expected shape, color, etc. (fruit- and circle-finders) Can use probabilities Clustering An unsupervised machine learning technique No class labels used in learning! Groups pixels “close” to each other by some metric. Color distance, texture, intensity, spatial location, etc. Regions are then found using connected components Q1

K-means clustering Goal: given K clusters, assign each pixel to one of the clusters such that the total distance from each pixel to the center of its cluster is minimized. We control C, the assignment of pixels to each cluster. (We will actually do this by specifying the location of their means) D= total distance K = # of clusters x are pixels Ck is the set of pixels in cluster k mk is the center of cluster k ||.|| is a distance Q2

K-means clustering Problems: What’s K? How do we know which pixel belongs to each cluster? K-means is an answer to the second question. K = # of clusters x are pixels Ck is the set of pixels in cluster k mk is the center of cluster k ||.|| is a distance

K-means clustering Iterative process to group into k clusters. Algorithm (Sonka, p 403; Forsyth&Ponce, p. 315; Shapiro, p. 282) Initialize K cluster means Repeat until convergence: For each pixel, find the closest mean and assign it to that cluster Re-compute the mean of all pixels assigned to the cluster Label each pixel with its current cluster Example on board using 2D spatial distance Q3-5

K-means clustering We are trying to find out where the clusters are and which points are assigned to each cluster. We iteratively solve half the problem. Notice the overall structure: Repeat until convergence: Assume you know where the cluster centers are. For each pixel, find the closest mean and assign it to that cluster Assume you know which points belong to each cluster. Recompute the mean of all pixels assigned to the cluster Label each pixel with its current cluster

K-means clustering Pros: Cons: Ideas: Easy to implement Finds local optimum (best we can hope for) Cons: The number of clusters, K, must be known in advance Some clusters might have 0 points Local optimum is not guaranteed to be global optimum Ideas: Can re-run with several initializations Can choose K based on observation Adaptive k-means: split a cluster if the total distance to that cluster is too large. Do if you lose a mean along the way Can try to merge adjacent clusters Global optimization (over all partitions) is infeasible Q6

K-means clustering K = # of clusters x are pixels Ck is the set of pixels in cluster k mk is the center of cluster k ||.|| is a distance: could be 2D distance in image or 3D Euclidean distance between colors (or combination of both) (On Lab: will produce disconnected regions) Q7-8

K-means results Original (120x160) K=3 K=5 K=7 K=3: orange, dark, light K=5: orange, dark, light blue, green, tan K=7: orange, dark, light blue, green, gray x 2, peach K=5 K=7