Segmentation by Clustering

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

Segmentation by Clustering Reading: Chapter 14 (skip 14.5)

CS 534: Computer Vision Segmentation and Perceptual Grouping

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

CS 534: Computer Vision Segmentation and Perceptual Grouping

Computer Vision 5 Segmentation by Clustering

human vision: grouping k-means clustering graph-theoretic clustering Hough transform line fitting RANSAC

Segmentation (continued)

Image Segmentation continued Graph Based Methods

Lecture 7: Segmentation. Thursday, Sept 20

Segmentation & Clustering

Segmentation and low-level grouping.

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

CPSC 425: Computer Vision

CS 534: Computer Vision Segmentation II Graph Cuts and Image Segmentation

Image Segmentation continued Graph Based Methods. Some slides: courtesy of O. Capms, Penn State, J.Ponce and D. Fortsyth, Computer Vision Book

Segmentation and Grouping April 19 th, 2018

CMPSCI 670: Computer Vision! Grouping

The goals of segmentation

SEGMENTATION USING CLUSTERING METHODS

Content-based Image and Video Retrieval. Image Segmentation

Image Analysis - Lecture 5

EE 701 ROBOT VISION. Segmentation

Outline. Segmentation & Grouping. Examples of grouping in vision. Grouping in vision. Grouping in vision 2/9/2011. CS 376 Lecture 7 Segmentation 1

Segmentation and Grouping April 21 st, 2015

Image Analysis Lecture Segmentation. Idar Dyrdal

Segmentation. Bottom Up Segmentation

CS443: Digital Imaging and Multimedia Perceptual Grouping Detecting Lines and Simple Curves

CS 664 Segmentation. Daniel Huttenlocher

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

CPSC 425: Computer Vision

Lecture 16 Segmentation and Scene understanding

Data Mining. Dr. Raed Ibraheem Hamed. University of Human Development, College of Science and Technology Department of Computer Science

Lecture 10: Semantic Segmentation and Clustering

Segmentation Computer Vision Spring 2018, Lecture 27

Grouping and Segmentation

Segmentation and Grouping

Segmentation and Grouping

Segmentation & Grouping Kristen Grauman UT Austin. Announcements

Using the Kolmogorov-Smirnov Test for Image Segmentation

Image Processing and Image Analysis VU

Normalized Graph cuts. by Gopalkrishna Veni School of Computing University of Utah

Grouping and Segmentation

Robotics Programming Laboratory

Image Analysis. Segmentation by Clustering

Classification and Detection in Images. D.A. Forsyth

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

Cluster Analysis. Ying Shen, SSE, Tongji University

CS 2770: Computer Vision. Edges and Segments. Prof. Adriana Kovashka University of Pittsburgh February 21, 2017

Image Segmentation. Shengnan Wang

Clustering CS 550: Machine Learning

Final Exam Schedule. Final exam has been scheduled. 12:30 pm 3:00 pm, May 7. Location: INNOVA It will cover all the topics discussed in class

Clustering Part 3. Hierarchical Clustering

Hierarchical clustering

Computer Vision Lecture 6

Hierarchical Clustering

INF4820. Clustering. Erik Velldal. Nov. 17, University of Oslo. Erik Velldal INF / 22

Computer Vision Lecture 6

Clustering Lecture 3: Hierarchical Methods

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

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

Clustering Lecture 8. David Sontag New York University. Slides adapted from Luke Zettlemoyer, Vibhav Gogate, Carlos Guestrin, Andrew Moore, Dan Klein

4. Ad-hoc I: Hierarchical clustering

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

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

Normalized cuts and image segmentation

BBS654 Data Mining. Pinar Duygulu. Slides are adapted from Nazli Ikizler

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

Lecture 8: Fitting. Tuesday, Sept 25

Lecture: k-means & mean-shift clustering

Lecture: k-means & mean-shift clustering

Unsupervised Learning

Snakes, level sets and graphcuts. (Deformable models)

Cluster Analysis. Mu-Chun Su. Department of Computer Science and Information Engineering National Central University 2003/3/11 1

INF4820, Algorithms for AI and NLP: Hierarchical Clustering

Data Mining and Data Warehousing Henryk Maciejewski Data Mining Clustering

2D image segmentation based on spatial coherence

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

Automatic Segmentation of Semantic Classes in Raster Map Images

Unsupervised Learning. Presenter: Anil Sharma, PhD Scholar, IIIT-Delhi

Case-Based Reasoning. CS 188: Artificial Intelligence Fall Nearest-Neighbor Classification. Parametric / Non-parametric.

CS 188: Artificial Intelligence Fall 2008

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

Discriminative Clustering for Image Co-Segmentation

Hierarchical Clustering

Image Segmentation. April 24, Stanford University. Philipp Krähenbühl (Stanford University) Segmentation April 24, / 63

Gender Classification with Support Vector Machines

MultiDimensional Signal Processing Master Degree in Ingegneria delle Telecomunicazioni A.A

Cluster Analysis: Agglomerate Hierarchical Clustering

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

Today s lecture. Clustering and unsupervised learning. Hierarchical clustering. K-means, K-medoids, VQ

Clustering: K-means and Kernel K-means

Introduction to Data Mining

Part I. Hierarchical clustering. Hierarchical Clustering. Hierarchical clustering. Produces a set of nested clusters organized as a

Intelligent Robotics

Modern Medical Image Analysis 8DC00 Exam

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

Lecture Notes for Chapter 7. Introduction to Data Mining, 2 nd Edition. by Tan, Steinbach, Karpatne, Kumar

Pattern Recognition Lecture Sequential Clustering

Transcription:

KECE471 Computer Vision Segmentation by Clustering Chang-Su Kim Chapter 14, Computer Vision by Forsyth and Ponce Note: Dr. Forsyth s notes are partly used. Jae-Kyun Ahn in Korea University made the first draft of these slides

Segmentation and Grouping Segmentation Obtain a compact representation from an image/motion sequence/set of tokens Grouping (or clustering) collect together tokens that belong together Fitting associate a model with tokens

General ideas Tokens whatever we need to group (pixels, points, surface elements, 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

Why do these tokens seem to belong together?

Basic ideas of grouping by humans Gestalt (group or whole) Gestalt school ( 學派 ) of psychologist The tendency of the visual system to assemble components of a picture together and perceive them together Gestaltqualität (gestalt properties) A set of factors that affect which elements should be grouped together

Perceiving objects as groups

Gestaltqualität

Grouping in case of occlusion

Illusory Contours

Common Region Cues

Example 1: Shot Boundary Detection Find the shots in a sequence of video shot boundaries usually result in big differences between successive frames Strategy: compute interframe distances declare boundaries where these are big Possible distances frame differences histogram differences edge differences Applications: representation for movies, or video sequences find shot boundaries obtain most representative frame supports search

cf. Video Tapestry

Example 2: Background Subtraction If we know what the background looks like, it is easy to identify interesting pixels Applications Person in an office Tracking cars on a road surveillance Approach: use a moving average to estimate background image subtract from current frame large absolute values are interesting pixels trick: use morphological operations to clean up pixels

Segmentation as Clustering Clustering Cluster together pixels, tokens, and etc that belong together Agglomerative clustering combine two close clusters to make one Divisive clustering split a cluster along best boundary

Agglomerative Clustering Each item is regarded as a cluster, and clusters are recursively merged to yield a good clustering Clustering by merging A bottom-up approach Agglomerative Clustering Make each point a separate cluster Until the clustering is satisfactory Merge the two clusters with the smallest inter-cluster distance End

Divisive Clustering The entire set is regarded as a cluster, and then clusters are recursively split to yield a good clustering Clustering by splitting A top-down approach Divisive Clustering Construct a single cluster containing all points Until the clustering is satisfactory End Split the cluster that yiels the two components with the largest inter-cluster distance

Inter-Cluster Distance Single-link clustering d( A, B) min d( a, b) a A, b B It may yield elongated clusters

Inter-Cluster Distance Complete-link clustering d( A, B) max d( a, b) a A, b B It usually yields round clusters

Inter-Cluster Distance Group-average clustering 1 d( A, B) d( a, b) A B a A, b B It usually yields round clusters

Dendrogram for Agglomerative Clustering

K - Means Application of vector quantization Choose a fixed number of clusters Choose cluster centers and point-cluster allocations to minimize error Repeat until centers converge Error or cost function i clusters j elements of i'th cluster x j i 2

K - Means K-Means Algorithm Choose k data points to act as cluster centers Until the cluster centers are unchanged End Allocate each data point to cluster whose center is nearest (NN rule) Replace the cluster centers with the mean of the elements in their clusters (centroid rule)

K - Means Image Clusters on intensity Clusters on color K-means clustering using intensity alone and color alone (5 clusters in each case)

K - Means Image Clusters using color alone (11 clusters)

K-means using colour and position, 20 segments

Graph Theoretic Clustering Graph cut Represent an image using a weighted graph Pixels become nodes Affinity (similarity) become edge weights Cut up this graph to get sub-graphs with strong interior links

Graph Theoretic Clustering Measuring affinity Intensity aff x, y exp 1 2 2 i Distance aff x, y exp 1 2 2 d Texture aff x, y exp 1 2 2 t I x I y 2 x y 2 c x c y 2

Graph Theoretic Clustering Scale(weight) affects affinity

Graph Theoretic Clustering How to shuffle the affinity matrix to obtain block diagonal structure? Beyond the scope of the class Refer to the text book