Image Segmentation Shengnan Wang

Slides:



Advertisements
Similar presentations
Applications of one-class classification
Advertisements

CSCE643: Computer Vision Mean-Shift Object Tracking Jinxiang Chai Many slides from Yaron Ukrainitz & Bernard Sarel & Robert Collins.
Image Repairing: Robust Image Synthesis by Adaptive ND Tensor Voting IEEE Computer Society Conference on Computer Vision and Pattern Recognition Jiaya.
Introduction To Tracking
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/01/10.
Lecture 6 Image Segmentation
Modeling Pixel Process with Scale Invariant Local Patterns for Background Subtraction in Complex Scenes (CVPR’10) Shengcai Liao, Guoying Zhao, Vili Kellokumpu,
EE 7730 Image Segmentation.
Mean Shift A Robust Approach to Feature Space Analysis Kalyan Sunkavalli 04/29/2008 ES251R.
EE663 Image Processing Edge Detection 5 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Clustering… in General In vector space, clusters are vectors found within  of a cluster vector, with different techniques for determining the cluster.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Mean Shift Theory and Applications
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.
Segmentation by Clustering Reading: Chapter 14 (skip 14.5) Data reduction - obtain a compact representation for interesting image data in terms of a set.
Dorin Comaniciu Visvanathan Ramesh (Imaging & Visualization Dept., Siemens Corp. Res. Inc.) Peter Meer (Rutgers University) Real-Time Tracking of Non-Rigid.
Computer Vision Segmentation Marc Pollefeys COMP 256 Some slides and illustrations from D. Forsyth, T. Darrel,...
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
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:
Edge Linking & Boundary Detection
Digital Image Processing In The Name Of God Digital Image Processing Lecture8: Image Segmentation M. Ghelich Oghli By: M. Ghelich Oghli
ALIGNMENT OF 3D ARTICULATE SHAPES. Articulated registration Input: Two or more 3d point clouds (possibly with connectivity information) of an articulated.
Chapter 14: SEGMENTATION BY CLUSTERING 1. 2 Outline Introduction Human Vision & Gestalt Properties Applications – Background Subtraction – Shot Boundary.
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
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.
Non-Euclidean Example: The Unit Sphere. Differential Geometry Formal mathematical theory Work with small ‘patches’ –the ‘patches’ look Euclidean Do calculus.
CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:
CS654: Digital Image Analysis
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!
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.
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Lecture 30: Segmentation CS4670 / 5670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Edge Detection using Mean Shift Smoothing
CSSE463: Image Recognition Day 21
Clustering and Segmentation
Image Segmentation – Edge Detection
Computer Vision Lecture 12: Image Segmentation II
Lecture: k-means & mean-shift clustering
A segmentation and tracking algorithm
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
CSSE463: Image Recognition Day 23
Mean Shift Theory and Applications
CSSE463: Image Recognition Day 23
Initial Progress Report
Presentation transcript:

Image Segmentation Shengnan Wang

Contents I.Introduction to Segmentation II.Mean Shift Theory 1.What is Mean Shift? 2.Density Estimation Methods 3.Deriving the Mean Shift 4.Mean Shift Properties III.Application 1.Segmentation Intelligent Computing & Control Lab School of Electrical Engineering at SNU

Motivation What do we see in an image? How is the image represented? Goal: Find relevant image regions for the objects we want to analyze

Image Segmentation Definition 1: Partition the image into connected subsets that maximize some “uniformity” criteria. Definition 2: Identify possibly overlapping but maximal connected subsets that satisfy some uniformity

Background Subtraction

Other Applications Medical Imaging –Locate tumors and other pathologies –Measure tissue volumes –Computer-guided surgery –Diagnosis –Treatment planning –Study of anatomical structure Locate objects in satellite images (roads, forests, etc.) Face Detection Machine Vision Automatic traffic controlling systems

Methods Clustering Methods -K means, Mean Shift Graph Partitioning Methods -Normalized Cut Histogram-Based Methods Edge Detection Methods Model based Segmentation Multi-scale, Region Growing, Neural Networks, Watershed Transformation

Segmentation as clustering Cluster together (pixels, tokens, etc.) that belong together Agglomerative clustering –attach pixel to cluster it is closest to –repeat Divisive clustering –split cluster along best boundary –repeat Point-Cluster distance –single-link clustering –complete-link clustering –group-average clustering Dendrograms(Tree)‏ –yield a picture of output as clustering process continues * From Marc Pollefeys COMP

Mean Shift Segmentation Perhaps the best technique to date…

Intelligent Computing & Control Lab School of Electrical Engineering at SNU Mean Shift Theory

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

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

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

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

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

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

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

1. What is Mean Shift? Intelligent Computing & Control Lab School of Electrical Engineering at SNU 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

1. What is Mean Shift? A tool for: Finding Modes in a set of data samples, manifesting an underlying probability density function (PDF) in R N Intelligent Computing & Control Lab School of Electrical Engineering at SNU Non-parametric Density Estimation Non-parametric Density GRADIENT Estimation (Mean Shift)‏ Data Discrete PDF Representation PDF Analysis

2. Density Estimation Method Kernel Density Estimation Intelligent Computing & Control Lab School of Electrical Engineering at SNU

2. Density Estimation Method Kernel Density Estimation - Various kernels Intelligent Computing & Control Lab School of Electrical Engineering at SNU

3. Deriving the Mean Shift Gradient Give up estimating the PDF ! Estimate ONLY the gradient Using the Kernel form: Define : Size of window Kernel Density Estimation Function of vector length only

Kernel Density Estimation Gradient Computing The Mean Shift

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

Mean Shift Mode Detection Updated Mean Shift Procedure: Find all modes using the Simple Mean Shift Procedure Prune modes by perturbing them (find saddle points and plateaus) Prune nearby – take highest mode in the window What happens if we reach a saddle point ? Perturb the mode position and check if we return back

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

Real Modality Analysis The blue data points were traversed by the windows towards the mode

Mean Shift Algorithm 1.Choose a search window size. 2.Choose the initial location of the search window. 3.Compute the mean location (centroid of the data) in the search window. 4.Center the search window at the mean location computed in Step 3. 5.Repeat Steps 3 and 4 until convergence. The mean shift algorithm seeks the “mode” or point of highest density of a data distribution:

4. Mean Shift Properties Intelligent Computing & Control Lab School of Electrical Engineering at SNU Adaptive Gradient Ascent 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)‏

4. Mean Shift Properties Intelligent Computing & Control Lab School of Electrical Engineering at SNU Advantages : Application independent tool Suitable for real data analysis Does not assume any prior shape (e.g. elliptical) on data clusters Can handle arbitrary feature spaces Only ONE parameter to choose h (window size) has a physical meaning, unlike K-Means Disadvantages : The window size (bandwidth selection) is not trivial Inappropriate window size can cause modes to be merged, or generate additional “shallow” modes  Use adaptive window size

Mean Shift Segmentation Algorithm 1.Convert the image into tokens (via color, gradients, texture measures etc). 2.Choose initial search window locations uniformly in the data. 3.Compute the mean shift window location for each initial position. 4.Merge windows that end up on the same “peak” or mode. 5.The data these merged windows traversed are clustered together. *Image From: Dorin Comaniciu and Peter Meer, Distribution Free Decomposition of Multivariate Data, Pattern Analysis & Applications (1999)2:22–30 Mean Shift Segmentation

Discontinuity Preserving Smoothing Feature space : Joint domain = spatial coordinates + color space Meaning : treat the image as data points in the spatial and range (value) domain Image Data (slice) Mean Shift vectors Smoothing result Mean Shift : A robust Approach Toward Feature Space Analysis, by Comaniciu, Meer

Discontinuity Preserving Smoothing x y z The image gray levels…… can be viewed as data points in the x, y, z space (joined spatial And color space)

Discontinuity Preserving Smoothing y z Flat regions induce the modes !

Discontinuity Preserving Smoothing The effect of window size in spatial and range spaces

Segmentation Segment = Cluster, or Cluster of Clusters Algorithm: Run Filtering (discontinuity preserving smoothing) Cluster the clusters which are closer than window size Image Data (slice) Mean Shift vectors Segmentation result Smoothing result Mean Shift : A robust Approach Toward Feature Space Analysis, by Comaniciu, Meer

Mean Shift Segmentation Results:

Intelligent Computing & Control Lab School of Electrical Engineering at SNU

Intelligent Computing & Control Lab School of Electrical Engineering at SNU

K-meansMean Shift Normalized Cut Max Entropy Threshold

Mean Shift – questions What happens if we change the size of the search window? What do we need to know to calculate every step? How can we improve the performance? How many segments will we have? Will the segments be connected?

Questions?