Image Segmentation. Shengnan Wang

Similar documents
Clustering. Discover groups such that samples within a group are more similar to each other than samples across groups.

Idea. Found boundaries between regions (edges) Didn t return the actual region

Clustering. Shishir K. Shah

Unit 3 : Image Segmentation

Dr. Ulas Bagci

Applications. Foreground / background segmentation Finding skin-colored regions. Finding the moving objects. Intelligent scissors

K Means Clustering Using Localized Histogram Analysis and Multiple Assignment. Michael Bryson 4/18/2007

Lecture: k-means & mean-shift clustering

Nonparametric Clustering of High Dimensional Data

Segmentation (continued)

Image Analysis Lecture Segmentation. Idar Dyrdal

Lecture: k-means & mean-shift clustering

Segmentation Computer Vision Spring 2018, Lecture 27

Region-based Segmentation

Lecture 7: Segmentation. Thursday, Sept 20

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

Grouping and Segmentation

Segmentation and low-level grouping.

Segmentation and Grouping

Using the Kolmogorov-Smirnov Test for Image Segmentation

IMAGE SEGMENTATION. Václav Hlaváč

Content-based Image and Video Retrieval. Image Segmentation

CSSE463: Image Recognition Day 21

Fast 3D Mean Shift Filter for CT Images

Operators-Based on Second Derivative double derivative Laplacian operator Laplacian Operator Laplacian Of Gaussian (LOG) Operator LOG

The goals of segmentation

Lecture 8: Fitting. Tuesday, Sept 25

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

CS 2750: Machine Learning. Clustering. Prof. Adriana Kovashka University of Pittsburgh January 17, 2017

Digital Image Processing. Lecture # 15 Image Segmentation & Texture

Segmentation & Clustering

Accelerating Mean Shift Segmentation Algorithm on Hybrid CPU/GPU Platforms

CS 534: Computer Vision Segmentation and Perceptual Grouping

identified and grouped together.

Lecture 13: k-means and mean-shift clustering

An Introduction to PDF Estimation and Clustering

Segmentation of Images

Norbert Schuff VA Medical Center and UCSF

Dynamic Thresholding for Image Analysis

Topic 4 Image Segmentation

Human Body Recognition and Tracking: How the Kinect Works. Kinect RGB-D Camera. What the Kinect Does. How Kinect Works: Overview

Clustering. CS294 Practical Machine Learning Junming Yin 10/09/06

Color Image Segmentation

2%34 #5 +,,% ! # %& ()% #% +,,%. & /%0%)( 1 ! # %& % %()# +(& ,.+/ +&0%//#/ &

Lecture 16 Segmentation and Scene understanding

Segmentation

EE 701 ROBOT VISION. Segmentation

ADAPTIVE TRAFFIC LIGHT IN IMAGE PROCESSING BASED- INTELLIGENT TRANSPORTATION SYSTEM: A REVIEW

Topics to be Covered in the Rest of the Semester. CSci 4968 and 6270 Computational Vision Lecture 15 Overview of Remainder of the Semester

2D image segmentation based on spatial coherence

Segmentation and Grouping

Segmentation by Clustering. Segmentation by Clustering Reading: Chapter 14 (skip 14.5) General ideas

Image Analysis - Lecture 5

MR IMAGE SEGMENTATION

Fundamentals of Digital Image Processing

Segmentation by Clustering Reading: Chapter 14 (skip 14.5)

A Survey on Image Segmentation Using Clustering Techniques

Clustering Color/Intensity. Group together pixels of similar color/intensity.

Unsupervised learning on Color Images

In this lecture, we are going to talk about image segmentation, essentially defined as methods for grouping pixels together.

Lecture 10: Semantic Segmentation and Clustering

Tracking Computer Vision Spring 2018, Lecture 24

Combinatorial Methods in Density Estimation

Lecture 11: E-M and MeanShift. CAP 5415 Fall 2007

Cluster Analysis. Ying Shen, SSE, Tongji University

Chapter 7: Competitive learning, clustering, and self-organizing maps

Segmentation

Mean Shift Tracking. CS4243 Computer Vision and Pattern Recognition. Leow Wee Kheng

Using Mean Shift Algorithm in the Recognition of Industrial Data Matrix Codes

Non-Parametric Modeling

CSE 473/573 Computer Vision and Image Processing (CVIP) Ifeoma Nwogu. Lectures 21 & 22 Segmentation and clustering

Mixture Models and EM

Structural Analysis of Aerial Photographs (HB47 Computer Vision: Assignment)

Targil 12 : Image Segmentation. Image segmentation. Why do we need it? Image segmentation

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

Segmentation and Grouping

6.801/866. Segmentation and Line Fitting. T. Darrell

Clustering. CE-717: Machine Learning Sharif University of Technology Spring Soleymani

CMPSCI 670: Computer Vision! Grouping

Lecture 9: Hough Transform and Thresholding base Segmentation

A New iterative triclass thresholding technique for Image Segmentation

K-Means Clustering Using Localized Histogram Analysis

Machine Learning. Unsupervised Learning. Manfred Huber

Segmentation and Grouping April 19 th, 2018

Segmentation by Clustering

CS 534: Computer Vision Segmentation and Perceptual Grouping

Pattern Recognition. Kjell Elenius. Speech, Music and Hearing KTH. March 29, 2007 Speech recognition

Image Processing and Image Analysis VU

Processing and Others. Xiaojun Qi -- REU Site Program in CVMA

Robert Collins CSE598G. Robert Collins CSE598G

Image Segmentation. Segmentation is the process of partitioning an image into regions

Computer Vision & Digital Image Processing. Image segmentation: thresholding

Other Linear Filters CS 211A

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

CS 229 Midterm Review

Prof. Fanny Ficuciello Robotics for Bioengineering Visual Servoing

Unsupervised Learning and Clustering

Graph based Image Segmentation using improved SLIC Superpixel algorithm

Classification. Vladimir Curic. Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University

Transcription:

Image Segmentation Shengnan Wang shengnan@cs.wisc.edu

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

What do we see in an image? How is the image represented? Motivation 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 256 2003

Mean Shift Segmentation Perhaps the best technique to date http://www.caip.rutgers.edu/~comanici/mspami/mspamiresults.html

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

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

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

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

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

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

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

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

1. What is Mean Shift? Non-parametric density estimation Assumption : The data points are sampled from an underlying PDF Data point density implies PDF value! Assumed Underlying PDF Real Data Samples Intelligent Computing & Control Lab School of Electrical Engineering at SNU

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

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 Kernel Density Estimation Gradient n 1 P( x) K( x - x ) n i 1 i Give up estimating the PDF! Estimate ONLY the gradient Using the Kernel form: Define : 2 x - x i K( x - xi) ck h g( x) k( x) Function of vector length only Size of window n ig n n i c c x i1 P( x) ki gi n n i1 n x i1 g i i1

Computing Kernel Density The Estimation Mean Shift Gradient n ig n n i c c x i1 P( x) ki gi n n i1 n x i1 g i i1 g( x) k( x)

1 1 1 1 ( ) n i i n n i i i n i i i i g c c P k g n n g x x x 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 2 1 2 1 ( ) n i i i n i i g h g h x - x x m x x x - x g( ) ( ) k x x

Mean Shift Mode Detection What happens if we reach a saddle point? Perturb the mode position and check if we return back 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

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 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 Automatic convergence speed the mean shift vector size depends on the gradient itself. Near maxima, the steps are small and refined Adaptive Gradient Ascent Convergence is guaranteed for infinitesimal steps only infinitely convergent, (therefore set a lower bound) Intelligent Computing & Control Lab School of Electrical Engineering at SNU

4. Mean Shift Properties 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 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 Only ONE parameter to choose h (window size) has a physical meaning, unlike K-Means Intelligent Computing & Control Lab School of Electrical Engineering at SNU

Mean Shift Segmentation 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

Discontinuity Preserving Smoothing Feature space : Joint domain = spatial coordinates + color space s r x x K( x) C ks kr h s h r 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 z x y The image gray levels can be viewed as data points in the x, y, z space (joined spatial And color space)

Discontinuity Preserving Smoothing z Flat regions induce the modes! y

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 Smoothing result Segmentation result Mean Shift : A robust Approach Toward Feature Space Analysis, by Comaniciu, Meer http://www.caip.rutgers.edu/~comanici

Mean Shift Segmentation Results: http://www.caip.rutgers.edu/~comanici/mspami/mspamiresults.html

Intelligent Computing & Control Lab School of Electrical Engineering at SNU

Intelligent Computing & Control Lab School of Electrical Engineering at SNU

K-means Mean Shift Normalized Cut Max Entropy Threshold

Questions?