CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:

Slides:



Advertisements
Similar presentations
CSCE643: Computer Vision Mean-Shift Object Tracking Jinxiang Chai Many slides from Yaron Ukrainitz & Bernard Sarel & Robert Collins.
Advertisements

Unsupervised Learning Clustering K-Means. Recall: Key Components of Intelligent Agents Representation Language: Graph, Bayes Nets, Linear functions Inference.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Lecture 3 Nonparametric density estimation and classification
Clustering and Dimensionality Reduction Brendan and Yifang April
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/01/10.
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
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.
Segmentation. Terminology Segmentation, grouping, perceptual organization: gathering features that belong together Fitting: associating a model with observed.
Mean Shift Theory and Applications
Mean-Shift Algorithm and Its Application Bohyung Han
Vision Topics Seminar Mean Shift
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Dorin Comaniciu Visvanathan Ramesh (Imaging & Visualization Dept., Siemens Corp. Res. Inc.) Peter Meer (Rutgers University) Real-Time Tracking of Non-Rigid.
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/17/15.
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.
~5,617,000 population in each state
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.
Chapter 5 Segmentation Presenter: 蘇唯誠
Segmentation and Grouping Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/23/10.
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
Computer Vision James Hays, Brown
Mean Shift : A Robust Approach Toward Feature Space Analysis - Bayesian Background Modeling
Mean-shift and its application for object tracking
Mean Shift Theory and Applications Reporter: Zhongping Ji.
Region Segmentation Readings: Chapter 10: 10.1 Additional Materials Provided K-means Clustering (text) EM Clustering (paper) Graph Partitioning (text)
7.1. Mean Shift Segmentation Idea of mean shift:
ALIGNMENT OF 3D ARTICULATE SHAPES. Articulated registration Input: Two or more 3d point clouds (possibly with connectivity information) of an articulated.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Line detection Assume there is a binary image, we use F(ά,X)=0 as the parametric equation of a curve with a vector of parameters ά=[α 1, …, α m ] and X=[x.
Advanced Computer Vision Chapter 5 Segmentation Presented by: 傅楸善 & 許承偉
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
EECS 274 Computer Vision Segmentation by Clustering II.
Grouping and Segmentation
CS654: Digital Image Analysis
Associative Hierarchical CRFs for Object Class Image Segmentation
Digital Image Processing
Real-Time Tracking with Mean Shift Presented by: Qiuhua Liu May 6, 2005.
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
Mean Shift ; Theory and Applications Presented by: Reza Hemati دی 89 December گروه بینایی ماشین و پردازش تصویر Machine Vision and Image Processing.
研 究 生:周暘庭 Q36994477 電腦與通信工程研究所 通訊與網路組 指導教授 :楊家輝 Mean-Shift-Based Color Tracking in Illuminance Change.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Lecture 30: Segmentation CS4670 / 5670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
CS 2750: Machine Learning Clustering Prof. Adriana Kovashka University of Pittsburgh January 25, 2016.
Non-parametric Methods for Clustering Continuous and Categorical Data Steven X. Wang Dept. of Math. and Stat. York University May 13, 2010.
Chapter 5 Segmentation 周立晴 d Movie Special effects.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Course : T Computer Vision
Edge Detection using Mean Shift Smoothing
CSSE463: Image Recognition Day 21
Segmentation by clustering: mean shift
Computer Vision Lecture 12: Image Segmentation II
Lecture: k-means & mean-shift clustering
A segmentation and tracking algorithm
Segmentation Computer Vision Spring 2018, Lecture 27
CS 2750: Machine Learning Clustering
Advanced Artificial Intelligence
CSSE463: Image Recognition Day 23
Image Segmentation CS 678 Spring 2018.
CSSE463: Image Recognition Day 23
Mean Shift Theory and Applications
CSSE463: Image Recognition Day 23
Presentation transcript:

CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:

Recap of Lecture 26 Thresholding Otsu’s method Region based segmentation Region growing, split-merge, quad-tree Clustering, K-means

Outline of Lecture 27 Overview about Mean Shift Segmentation Mean Shift algorithm Kernel density estimation Kernel Mean shift segmentation Applications of Mean Shift Clustering Filtering

Segmentation methods – overview Edge based Thresholding K-means clustering The k-means algorithm is an algorithm to cluster n objects based on attributes into k partitions, k < n Mean-shift algorithm Normalized cuts

K-Means pros and cons Pros Simple and fast Easy to implement Cons Need to choose K Sensitive to outliers

Mean-shift – motivation and intuitive description Given a distribution of points, mean shift is a procedure for finding the densest region. Example for simple 2D case 1.Start from arbitrary point in the distribution 2.Region of interest is a circle centered in this point 3.On each iteration find the center of the mass for the region of interest 4.Move the circle to the center of the mass 5.Continue the iterations until convergence

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Region of interest Center of mass Mean Shift vector Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Region of interest Center of mass Mean Shift vector Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Region of interest Center of mass Mean Shift vector Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Region of interest Center of mass Mean Shift vector Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Region of interest Center of mass Mean Shift vector Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Region of interest Center of mass Intuitive Description Distribution of identical billiard balls Objective : Find the densest region

Mean-shift – algorithm formal definition The Basic Mean Shift Algorithm is formulated according to the following paper: D. Comaniciu, P. Meer: Mean Shift Analysis and Applications, IEEE Int. Conf. Computer Vision (ICCV'99), Kerkyra, Greece, , 1999

Mean-shift – algorithm formal definition

PDF in feature space Color space Scale space Actually any feature space you can conceive … What is Mean Shift ? Non-parametric Density Estimation Non-parametric Density GRADIENT Estimation (Mean Shift) Data Discrete PDF Representation PDF Analysis A tool for: Finding modes in a set of data samples, manifesting an underlying probability density function (PDF) in R N

Non-Parametric Density Estimation Assumption : The data points are sampled from an underlying PDF Assumed Underlying PDFReal Data Samples Data point density implies PDF value !

Non-Parametric Density Estimation Assumed Underlying PDFReal Data Samples

Assumed Underlying PDFReal Data Samples Non-Parametric Density Estimation

Parametric Density Estimation Assumption : The data points are sampled from an underlying PDF Estimate Assumed Underlying PDFReal Data Samples

Kernel Density Estimation A function of some finite number of data points x 1 …x n Data In practice one uses the forms: or Same function on each dimensionFunction of vector length only Parzen Windows - Function Forms Profile

Various Kernels Examples: Epanechnikov Kernel Uniform Kernel Normal Kernel Data A function of some finite number of data points x 1 …x n

Kernel Density Estimation Gradient Give up estimating the PDF ! Estimate ONLY the gradient Using the Kernel form: Size of window

Kernel Density Gradient Estimation

Yet another Kernel density estimation ! Simple Mean Shift procedure: Compute mean shift vector Translate the Kernel window by m(x) Computing the Mean Shift

Mean Shift Procedure mean shift vector — must be 0 at optimum

Automatic convergence speed – the mean shift vector size depends on the gradient itself. Near maxima, the steps are small and refined Convergence is guaranteed for infinitesimal steps only  infinitely convergent, (therefore set a lower bound) For Uniform Kernel ( ), convergence is achieved in a finite number of steps Normal Kernel ( ) exhibits a smooth trajectory, but is slower than Uniform Kernel ( ). Adaptive Gradient Ascent Mean Shift Properties

Tessellate the space with windows Run the procedure in parallel Real Modality analysis

Attraction basin Capture theorem Attraction basin: The region for which all trajectories lead to the same mode Cluster: all data points in the attraction basin of a mode

Clustering: Real Example L*u*v space representation

Clustering: Real Example Not all trajectories in the attraction basin reach the same mode 2D (L*u) space representation Final clusters

Mean shift clustering The mean shift algorithm seeks modes of the given set of points 1.Choose kernel and bandwidth 2.For each point: a)Center a window on that point b)Compute the mean of the data in the search window c)Center the search window at the new mean location d)Repeat (b,c) until convergence 3.Assign points that lead to nearby modes to the same cluster

Segmentation by Mean Shift 1.Find features (color, gradients, texture, etc) 2.Set kernel size for features K r and position K s 3.Initialize windows at individual pixel locations 4.Perform mean shift for each window until convergence 5.Merge windows that are within width of K r and K s Feature space : Joint domain = spatial coordinates + color space

Mean shift segmentation results

Mean shift segmentation results

Application of Mean Shift: Filtering Image filtering is a process by which we can enhance, modify or multilate images. Filtering reduces the influence from noise to mode detection. Mean shift filtering can work with binary, gray scale, RGB and arbitrary multichanel images. Filtering is the first step of mean shift segmentation process. A second step is the clustering of filtered data point

Mean Shift Filtering

Examples

Comparison with Gaussian

Mean-shift: other issues Speedups Uniform kernel (much faster but not as good) Binning or hierarchical methods Approximate nearest neighbor search Methods to adapt kernel size depending on data density

Mean shift pros and cons Pros Good general-practice segmentation Finds variable number of regions Robust to outliers Cons Have to choose kernel size in advance Original algorithm doesn’t deal well with high dimensions When to use it Over-segmentatoin Multiple segmentations Other tracking and clustering applications

Watershed algorithm

Watershed segmentation ImageGradient Watershed boundaries

Meyer’s watershed segmentation 1.Choose local minima as region seeds 2.Add neighbors to priority queue, sorted by value 3.Take top priority pixel from queue 1.If all labeled neighbors have same label, assign to pixel 2.Add all non-marked neighbors 4.Repeat step 3 until finished Matlab: seg = watershed(bnd_im)

Simple trick Use median filter to reduce number of regions

Watershed pros and cons Pros Fast (< 1 sec for 512x512 image) Among best methods for hierarchical segmentation Cons Only as good as the soft boundaries Not easy to get variety of regions for multiple segmentations No top-down information Usage Preferred algorithm for hierarchical segmentation

Thank you Next Lecture: Graph based approach