Segmentation & Clustering

Similar documents
MVA ENS Cachan. Lecture 2: Logistic regression & intro to MIL Iasonas Kokkinos Iasonas.kokkinos@ecp.fr

Colour Image Segmentation Technique for Screen Printing

Local features and matching. Image classification & object localization

Practical Tour of Visual tracking. David Fleet and Allan Jepson January, 2006

Mean-Shift Tracking with Random Sampling

SLIC Superpixels. Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk

Feature Tracking and Optical Flow

Image Segmentation and Registration

CS 534: Computer Vision 3D Model-based recognition

Information Retrieval and Web Search Engines

Edge tracking for motion segmentation and depth ordering

Robert Collins CSE598G. More on Mean-shift. R.Collins, CSE, PSU CSE598G Spring 2006

Probabilistic Latent Semantic Analysis (plsa)

Cluster Analysis: Advanced Concepts

Improving Spatial Support for Objects via Multiple Segmentations

Clustering. Data Mining. Abraham Otero. Data Mining. Agenda

Vision based Vehicle Tracking using a high angle camera

Cluster Analysis. Isabel M. Rodrigues. Lisboa, Instituto Superior Técnico

LIBSVX and Video Segmentation Evaluation

LABEL PROPAGATION ON GRAPHS. SEMI-SUPERVISED LEARNING. ----Changsheng Liu

Automatic 3D Reconstruction via Object Detection and 3D Transformable Model Matching CS 269 Class Project Report

Clustering UE 141 Spring 2013

Hadoop SNS. renren.com. Saturday, December 3, 11

Edge Boxes: Locating Object Proposals from Edges

DATA MINING CLUSTER ANALYSIS: BASIC CONCEPTS

PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 4: LINEAR MODELS FOR CLASSIFICATION

ARTIFICIAL INTELLIGENCE (CSCU9YE) LECTURE 6: MACHINE LEARNING 2: UNSUPERVISED LEARNING (CLUSTERING)

Clustering Artificial Intelligence Henry Lin. Organizing data into clusters such that there is

Segmentation of building models from dense 3D point-clouds

Distances, Clustering, and Classification. Heatmaps

Neural Networks Lesson 5 - Cluster Analysis

The Scientific Data Mining Process

Environmental Remote Sensing GEOG 2021

Data Mining. Cluster Analysis: Advanced Concepts and Algorithms

Fast and Robust Variational Optical Flow for High-Resolution Images using SLIC Superpixels

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Social Media Mining. Data Mining Essentials

How does the Kinect work? John MacCormick

Linear Threshold Units

Clustering. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

A Learning Based Method for Super-Resolution of Low Resolution Images

Cees Snoek. Machine. Humans. Multimedia Archives. Euvision Technologies The Netherlands. University of Amsterdam The Netherlands. Tree.

Recognition. Sanja Fidler CSC420: Intro to Image Understanding 1 / 28

. Learn the number of classes and the structure of each class using similarity between unlabeled training patterns

Class-Specific, Top-Down Segmentation

Classifying Large Data Sets Using SVMs with Hierarchical Clusters. Presented by :Limou Wang

SoSe 2014: M-TANI: Big Data Analytics

COLOR-BASED PRINTED CIRCUIT BOARD SOLDER SEGMENTATION

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

A Comparative Study between SIFT- Particle and SURF-Particle Video Tracking Algorithms

Lecture 6: CNNs for Detection, Tracking, and Segmentation Object Detection

CLUSTER ANALYSIS FOR SEGMENTATION

A Study on SURF Algorithm and Real-Time Tracking Objects Using Optical Flow

Character Image Patterns as Big Data

Jiří Matas. Hough Transform

Document Image Retrieval using Signatures as Queries

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Mean Shift Based Clustering in High Dimensions: A Texture Classification Example

Clustering. Danilo Croce Web Mining & Retrieval a.a. 2015/201 16/03/2016

An Introduction to Data Mining. Big Data World. Related Fields and Disciplines. What is Data Mining? 2/12/2015

Medical Information Management & Mining. You Chen Jan,15, 2013 You.chen@vanderbilt.edu

Tracking in flussi video 3D. Ing. Samuele Salti

Data Mining Clustering (2) Sheets are based on the those provided by Tan, Steinbach, and Kumar. Introduction to Data Mining

Robust Outlier Detection Technique in Data Mining: A Univariate Approach

Fast Matching of Binary Features

Introduction. Selim Aksoy. Bilkent University

Canny Edge Detection

NEW VERSION OF DECISION SUPPORT SYSTEM FOR EVALUATING TAKEOVER BIDS IN PRIVATIZATION OF THE PUBLIC ENTERPRISES AND SERVICES

How To Cluster

Feature Point Selection using Structural Graph Matching for MLS based Image Registration

Unsupervised learning: Clustering

Live Feature Clustering in Video Using Appearance and 3D Geometry

Cluster Analysis: Basic Concepts and Algorithms

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

Compact Representations and Approximations for Compuation in Games

Forschungskolleg Data Analytics Methods and Techniques

Francesco Sorrentino Department of Mechanical Engineering

B490 Mining the Big Data. 2 Clustering

Cluster analysis Cosmin Lazar. COMO Lab VUB

Tracking Groups of Pedestrians in Video Sequences

High-dimensional labeled data analysis with Gabriel graphs

Behavior Analysis in Crowded Environments. XiaogangWang Department of Electronic Engineering The Chinese University of Hong Kong June 25, 2011

There are a number of different methods that can be used to carry out a cluster analysis; these methods can be classified as follows:

Object tracking & Motion detection in video sequences

Large-Scale Data Sets Clustering Based on MapReduce and Hadoop

Introduction to Clustering

Recognizing Cats and Dogs with Shape and Appearance based Models. Group Member: Chu Wang, Landu Jiang

Cluster Analysis: Basic Concepts and Methods

Data Mining: Exploring Data. Lecture Notes for Chapter 3. Slides by Tan, Steinbach, Kumar adapted by Michael Hahsler

Part-Based Recognition

5. Binary objects labeling

Lecture 9: Geometric map transformations. Cartographic Transformations

Clustering Techniques: A Brief Survey of Different Clustering Algorithms

Data Mining Project Report. Document Clustering. Meryem Uzun-Per

Chapter 18. Electric Forces and Electric Fields

An Introduction to Cluster Analysis for Data Mining

Transcription:

EECS 442 Computer vision Segmentation & Clustering Segmentation in human vision K-mean clustering Mean-shift Graph-cut Reading: Chapters 14 [FP] Some slides of this lectures are courtesy of prof F. Li, prof S. Lazebnik, and various other lecturers

Segmentation Compact representation for image data in terms of a set of components Components share common visual properties Properties can be defined at different level of abstractions

General ideas Tokens whatever we need to group (pixels, points, surface elements, etc., etc.) Bottom up segmentation tokens belong together because they are locally coherent Top down segmentation tokens belong together because they lie on the same object > These two are not mutually exclusive

What is Segmentation? Clustering image elements that belong together Partitioning Divide into regions/sequences with coherent internal properties Grouping Identify sets of coherent tokens in image Slide credit: Christopher Rasmussen

What is Segmentation? Why do these tokens belong together?

Basic ideas of grouping in human vision Figure-ground discrimination Gestalt properties

Figure-ground discrimination Grouping can be seen in terms of allocating some elements to a figure, some to ground Can be based on local bottom-up cues or high level recognition

Figure-ground discrimination

A series of factors affect whether elements should be grouped together Gestalt properties

Gestalt properties

Gestalt properties

Grouping by occlusions Gestalt properties

Grouping by invisible completions Gestalt properties

Emergence

Segmentation in computer vision J. Malik, S. Belongie, T. Leung and J. Shi. "Contour and Texture Analysis for Image Segmentation". IJCV 43(1),7-27,2001.

Segmentation in computer vision Object Recognition as Machine Translation, Duygulu, Barnard, de Freitas, Forsyth, ECCV02

Segmentation as clustering Cluster together tokens that share similar visual characteristics K-mean Mean-shift Graph-cut

Feature Space Every token is identified by a set of salient visual characteristics. For example: Position Color Texture Motion vector Size, orientation (if token is larger than a pixel) Slide credit: Christopher Rasmussen

Feature Space Source: K. Grauman

Feature space: each token is represented by a point b g r

Token similarity is thus measured by distance between points ( feature vectors ) in feature space b g p q r

Cluster together tokens with high similarity b g r

Agglomerative clustering Add token to cluster if token is similar enough to element of clusters Repeat Divisive clustering Split cluster into subclusters if along best boundary Boundary separates subclusters based on similarity Repeat

Hierachical structure of clusters (Dendrograms) rand('seed',12); X = rand(100,2); Y = pdist(x, euclidean'); Z = linkage(y, single'); [H, T] = dendrogram(z);

K-Means Clustering Initialization: Given K categories, N points in feature space. Pick K points randomly; these are initial cluster centers (means) m 1,, m K. Repeat the following: 1. Assign each of the N points, x j, to clusters by nearest m i 2. Re-compute mean m i of each cluster from its member points 3. If no mean has changed more than some ε, stop Slide credit: Christopher Rasmussen

Example: 3-means Clustering Source: wikipedia

Effectively carries out gradient descent to minimize:

K-means clustering using intensity alone and color alone Image Clusters on intensity Clusters on color

K-Means pros and cons Pros Simple and fast Converges to a local minimum of the error function Cons Need to pick K Sensitive to initialization Only finds spherical clusters Sensitive to outliers

Mean shift segmentation D. Comaniciu and P. Meer, Mean Shift: A Robust Approach toward Feature Space Analysis, PAMI 2002. An advanced and versatile technique for clusteringbased segmentation

Mean shift segmentation The mean shift algorithm seeks a mode or local maximum of density of a given distribution Choose a search window (width and location) Compute the mean of the data in the search window Center the search window at the new mean location Repeat until convergence

Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Mean shift Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Mean shift Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Region of interest Center of mass Mean Shift vector Slide by Y. Ukrainitz & B. Sarel

Region of interest Center of mass Slide by Y. Ukrainitz & B. Sarel

Computing The Mean Shift Simple Mean Shift procedure: Compute mean shift vector Translate the Kernel window by m(x) 2 1 2 1 ( ) n i i i n i i g h g h = = = x-x x mx x x-x g( ) ( ) = k x x

Real Modality Analysis Tessellate the space with windows Merge windows that end up near the same peak or model

Attraction basin Attraction basin: the region for which all trajectories lead to the same mode Cluster: all data points in the attraction basin of a mode Slide by Y. Ukrainitz & B. Sarel

Slide by Y. Ukrainitz & B. Sarel Attraction basin

Segmentation by Mean Shift Find features (color, gradients, texture, etc) Initialize windows at individual pixel locations Perform mean shift for each window until convergence Merge windows that end up near the same peak or mode

Mean shift segmentation results http://www.caip.rutgers.edu/~comanici/mspami/mspamiresults.html

Mean shift pros and cons Pros Does not assume spherical clusters Just a single parameter (window size) Finds variable number of modes Robust to outliers Cons Output depends on window size Computationally expensive Does not scale well with dimension of feature space

Graph-based segmentation Represent features and their relationships using a graph Cut the graph to get subgraphs with strong interior links and weaker exterior links

Images as graphs j i w ij Node for every pixel Edge between every pair of pixels Each edge is weighted by the affinity or similarity of the two nodes Source: S. Seitz

Measuring Affinity Distance Intensity Color aff ( x, y)= exp 1 2 2σ d x y 2 ( ) aff ( x, y)= exp 1 2 2σ i I x aff ( x, y)= exp 1 2 2σ t cx ( () Iy ) ()2 ( () cy ) ()2

Segmentation by graph partitioning j i w ij A B C Break Graph into sub-graphs Break links (cutting) that have low affinity similar pixels should be in the same sub-graphs dissimilar pixels should be in different sub-graphs Sub-graphs represents different image segments Source: S. Seitz

Graph cut CUT: Set of edges whose removal makes a graph disconnected Cost of a cut: sum of weights of cut edges A graph cut gives us a segmentation What is a good graph cut and how do we find one? Source: S. Seitz

Graph cut A B C CUT: Set of edges whose removal makes a graph disconnected Cost of a cut: sum of weights of cut edges A graph cut gives us a segmentation What is a good graph cut and how do we find one?

Minimum cut We can do segmentation by finding the minimum cut in a graph Efficient algorithms exist for doing this Drawback: minimum cut tends to cut off very small, isolated components Ideal Cut Cuts with lesser weight than the ideal cut * Slide from Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Normalized cut J. Shi and J. Malik. Normalized cuts and image segmentation. PAMI 2000 IDEA: normalizing the cut by component size The normalized cut cost is: cut ( assoc A, B ) ( A, V ) + cut ( assoc A, B ) ( B, V ) assoc(a, V) = sum of weights of all edges in V that touch A The exact solution is NP-hard but an approximation can be computed by solving a generalized eigenvalue problem

Normalized cuts: Pro and con Pros Generic framework, can be used with many different features and affinity formulations Cons High storage requirement and time complexity Bias towards partitioning into equal segments * Slide from Khurram Hassan-Shafique CAP5415 Computer Vision 2003

Normalized cuts: Results Figure from Image and video segmentation: the normalised cut framework, by Shi and Malik, copyright IEEE, 1998

Normalized cuts: Results F igure from Normalized cuts and image segmentation, Shi and Malik, copyright IEEE, 2000

Contour and Texture Analysis for Image Segmentation J. Malik, S. Belongie, T. Leung and J. Shi. "Contour and Texture Analysis for Image Segmentation". IJCV 43(1),7-27,2001.

Efficient Graph-Based Image Segmentation Efficient Graph-Based Image Segmentation Pedro F. Felzenszwalb and Daniel P. Huttenlocher International Journal of Computer Vision, Volume 59, Number 2, September 2004 superpixel

Integrating top-down and bottom-up segmentation Z.W. Tu, X.R. Chen, A.L. Yuille, and S.C. Zhu. Image parsing: unifying segmentation, detection and recognition. IJCV 63(2), 113-140, 2005.

EECS 442 Computer vision Object Recognition