Mean Shift Theory and Applications Reporter: Zhongping Ji.

Slides:



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

Image Repairing: Robust Image Synthesis by Adaptive ND Tensor Voting IEEE Computer Society Conference on Computer Vision and Pattern Recognition Jiaya.
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Real-Time Human Pose Recognition in Parts from Single Depth Images
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Introduction To Tracking
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Pedestrian Detection in Crowded Scenes Dhruv Batra ECE CMU.
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/01/10.
Fitting: The Hough transform
Modeling Pixel Process with Scale Invariant Local Patterns for Background Subtraction in Complex Scenes (CVPR’10) Shengcai Liao, Guoying Zhao, Vili Kellokumpu,
Mean Shift A Robust Approach to Feature Space Analysis Kalyan Sunkavalli 04/29/2008 ES251R.
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:
Dorin Comaniciu Visvanathan Ramesh (Imaging & Visualization Dept., Siemens Corp. Res. Inc.) Peter Meer (Rutgers University) Real-Time Tracking of Non-Rigid.
Data-Driven Markov Chain Monte Carlo Presented by Tomasz MalisiewiczTomasz Malisiewicz for Advanced PerceptionAdvanced Perception 3/1/2006.
~5,617,000 population in each state
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
1 Patch Complexity, Finite Pixel Correlations and Optimal Denoising Anat Levin, Boaz Nadler, Fredo Durand and Bill Freeman Weizmann Institute, MIT CSAIL.
Mean Shift : A Robust Approach Toward Feature Space Analysis - Bayesian Background Modeling
Mean-shift and its application for object tracking
Niloy J. Mitra Leonidas J. Guibas Mark Pauly TU Vienna Stanford University ETH Zurich SIGGRAPH 2007.
1 Mean shift and feature selection ECE 738 course project Zhaozheng Yin Spring 2005 Note: Figures and ideas are copyrighted by original authors.
1. Introduction Motion Segmentation The Affine Motion Model Contour Extraction & Shape Estimation Recursive Shape Estimation & Motion Estimation Occlusion.
7.1. Mean Shift Segmentation Idea of mean shift:
City University of Hong Kong 18 th Intl. Conf. Pattern Recognition Self-Validated and Spatially Coherent Clustering with NS-MRF and Graph Cuts Wei Feng.
ALIGNMENT OF 3D ARTICULATE SHAPES. Articulated registration Input: Two or more 3d point clouds (possibly with connectivity information) of an articulated.
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Lecture 2: Edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Advanced Computer Vision Chapter 5 Segmentation Presented by: 傅楸善 & 許承偉
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.
Fitting: The Hough transform
Grouping and Segmentation
CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:
Extracting features from spatio-temporal volumes (STVs) for activity recognition Dheeraj Singaraju Reading group: 06/29/06.
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.
Image Features (I) Dr. Chang Shu COMP 4900C Winter 2008.
Lecture 30: Segmentation CS4670 / 5670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
Instructor: Mircea Nicolescu Lecture 10 CS 485 / 685 Computer Vision.
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.
Machine Learning for Computer Security
Edge Detection using Mean Shift Smoothing
CSSE463: Image Recognition Day 21
Segmentation by clustering: mean shift
Dynamical Statistical Shape Priors for Level Set Based Tracking
A segmentation and tracking algorithm
Outline Image Segmentation by Data-Driven Markov Chain Monte Carlo
CSSE463: Image Recognition Day 23
PRAKASH CHOCKALINGAM, NALIN PRADEEP, AND STAN BIRCHFIELD
CSSE463: Image Recognition Day 23
Region and Shape Extraction
CSSE463: Image Recognition Day 23
Mean Shift Theory and Applications
CSSE463: Image Recognition Day 23
Presentation transcript:

Mean Shift Theory and Applications Reporter: Zhongping Ji

Agenda Mean Shift Theory What is Mean Shift ? Density Estimation Methods Deriving the Mean Shift Mean shift properties Applications Clustering Discontinuity Preserving Smoothing Object Contour Detection Segmentation Object Tracking

Papers Mean Shift: A Robust Approach Toward Feature Space Analysis Authors: Dorin Comaniciu, Peter Meer (Rutgers University EECS, Member IEEE). IEEE Trans. Pattern analysis and machine intelligence 24(5), 2002 Field: application of modern statistical methods to image understanding problems A Topological Approach to Hierarchical Segmentation using Mean Shift Authors: Sylvain Paris, Fredo Durand. (MIT EECS, computer science and artificial intelligence laboratory) Proceedings of the IEEE conference on Computer Vision and Pattern Recognition (CVPR'07) Field: most aspects of image processing

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

What is Mean Shift ? Non-parametric Density Estimation Non-parametric Density GRADIENT Estimation (Mean Shift) Data Discrete PDF Representation PDF Analysis PDF in feature space Color space Scale space Actually any feature space you can conceive … 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 !

Assumed Underlying PDFReal Data Samples Non-Parametric Density Estimation

Assumed Underlying PDFReal Data Samples ? Non-Parametric Density Estimation

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

Kernel Density Estimation Parzen Windows - General Framework Kernel Properties: Normalized Symmetric Exponential weight decay ??? A function of some finite number of data points x 1 …x n Data

Kernel Density Estimation Parzen Windows - Function Forms 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

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

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

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)

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

Convergence

Adaptive Gradient Ascent Mean Shift Properties 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, For Uniform Kernel ( ), convergence is achieved in a finite number of steps Normal Kernel ( ) exhibits a smooth trajectory, but is slower than Uniform Kernel ( ).

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

Real Modality Analysis An example Window tracks signify the steepest ascent directions

Mean Shift Strengths & Weaknesses Strengths : 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 Weaknesses : 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 Applications

Clustering Attraction basin : the region for which all trajectories lead to the same mode Cluster : All data points in the attraction basin of a mode Mean Shift : A robust Approach Toward Feature Space Analysis, by Comaniciu, Meer

Clustering Synthetic Examples Simple Modal Structures Complex Modal Structures

Clustering Real Example Initial window centers Modes foundModes after pruning Final clusters Feature space: L*u*v representation

Clustering Real Example L*u*v space representation

Clustering Real Example 2D (L*u) space representation Final clusters

Discontinuity Preserving Smoothing Feature space : Joint domain = spatial coordinates + color space Meaning : treat the image as data points in the spatial and gray level 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

The effect of window size in spatial and range spaces

Discontinuity Preserving Smoothing Example

Object Contour Detection Ray Propagation Vessel Detection by Mean Shift Based Ray Propagation, by Tek, Comaniciu, Williams Accurately segment various objects (rounded in nature) in medical images

Object Contour Detection Ray Propagation Use displacement data to guide ray propagation Discontinuity preserving smoothing Displacement vectors Vessel Detection by Mean Shift Based Ray Propagation, by Tek, Comaniciu, Williams

Object Contour Detection Ray Propagation Speed function Normal to the contour Curvature

Object Contour Detection Original image Gray levels along red line Gray levels after smoothing Displacement vectors Displacement vectors’ derivative

Object Contour Detection Example

Importance of smoothing by curvature

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

Segmentation Example …when feature space is only gray levels…

Segmentation Example

Image editing

A Topological Approach to Hierarchical Segmentation using Mean Shift

Fast and Hierarchical Efficient numerical schemes to evaluate the density function and extract its modes. A hierarchical segmentation based on a topological analysis of mean shift. Do not aim for better segmentation accuracy and focus on computational efficiency and creating a hierarchy.

FAST COMPUTATION OF THE FEATURE POINT DENSITY Coarse grid

EXTRACTION OF THE DENSITY MODES 0 label: The processed node is a local maximum. We create a new label. 1 label: All the ascending paths go to the same summit. We copy the label. 2+ labels: Boundary between two modes. We put a special marker.

Boundaries refinement

Hierarchical Segmentation

Boundary Persistence

Simplification

Examples

Monkey saddle

Ask & Answer