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

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

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

Segmentation by Clustering

Segmentation & Clustering

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

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

Computer Vision 5 Segmentation by Clustering

Image Segmentation continued Graph Based Methods

Lecture 16 Segmentation and Scene understanding

Segmentation and low-level grouping.

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

Lecture 10: Semantic Segmentation and Clustering

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

Segmentation (continued)

Segmentation and Grouping April 19 th, 2018

Lecture 7: Segmentation. Thursday, Sept 20

Content-based Image and Video Retrieval. Image Segmentation

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

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

Image Processing and Image Analysis VU

Segmentation and Grouping April 21 st, 2015

Segmentation and Grouping

Grouping and Segmentation

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

Image Analysis - Lecture 5

Region-based Segmentation

Image Analysis Lecture Segmentation. Idar Dyrdal

Bayes Risk. Classifiers for Recognition Reading: Chapter 22 (skip 22.3) Discriminative vs Generative Models. Loss functions in classifiers

Classifiers for Recognition Reading: Chapter 22 (skip 22.3)

CMPSCI 670: Computer Vision! Grouping

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

Classification and Detection in Images. D.A. Forsyth

Segmentation. Bottom Up Segmentation

CPSC 425: Computer Vision

9.913 Pattern Recognition for Vision. Class I - Overview. Instructors: B. Heisele, Y. Ivanov, T. Poggio

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

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

Segmentation Computer Vision Spring 2018, Lecture 27

Segmentation & Grouping Kristen Grauman UT Austin. Announcements

The goals of segmentation

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

Detecting and Identifying Moving Objects in Real-Time

CS 664 Segmentation. Daniel Huttenlocher

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

Image Segmentation. Selim Aksoy. Bilkent University

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Cluster Analysis. Ying Shen, SSE, Tongji University

Image Analysis. Segmentation by Clustering

Snakes, level sets and graphcuts. (Deformable models)

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

Image Segmentation. Shengnan Wang

Robotics Programming Laboratory

IMAGE MATCHING - ALOK TALEKAR - SAIRAM SUNDARESAN 11/23/2010 1

2D image segmentation based on spatial coherence

Computer Vision Lecture 6

Edge Detection CSC 767

Lecture: k-means & mean-shift clustering

Lecture: k-means & mean-shift clustering

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

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class

Computer Vision Lecture 6

CPSC 425: Computer Vision

SEGMENTATION USING CLUSTERING METHODS

Topic 4 Image Segmentation

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

Working with Unlabeled Data Clustering Analysis. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

9.913 Pattern Recognition for Vision. Class 8-2 An Application of Clustering. Bernd Heisele

A Texture-Based Method for Modeling the Background and Detecting Moving Objects

EE 701 ROBOT VISION. Segmentation

EE795: Computer Vision and Intelligent Systems

Intelligent Robotics

Clustering CS 550: Machine Learning

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

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

Clustering. So far in the course. Clustering. Clustering. Subhransu Maji. CMPSCI 689: Machine Learning. dist(x, y) = x y 2 2

Analysis: TextonBoost and Semantic Texton Forests. Daniel Munoz Februrary 9, 2009

IMAGE SEGMENTATION. Václav Hlaváč

Grouping and Segmentation

BACKGROUND MODELS FOR TRACKING OBJECTS UNDER WATER

Pattern recognition. Classification/Clustering GW Chapter 12 (some concepts) Textures

A Feature Point Matching Based Approach for Video Objects Segmentation

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

CS 188: Artificial Intelligence Fall 2008

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

Clustering. Subhransu Maji. CMPSCI 689: Machine Learning. 2 April April 2015

A Texture-based Method for Detecting Moving Objects

ECS 289H: Visual Recognition Fall Yong Jae Lee Department of Computer Science

Change Detection by Frequency Decomposition: Wave-Back

Evaluation of Moving Object Tracking Techniques for Video Surveillance Applications

Image Segmentation. Lecture14: Image Segmentation. Sample Segmentation Results. Use of Image Segmentation

Supervised Sementation: Pixel Classification

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

Machine learning Pattern recognition. Classification/Clustering GW Chapter 12 (some concepts) Textures

Background Subtraction Techniques

A Fast Moving Object Detection Technique In Video Surveillance System

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

Transcription:

Reading: Chapter 14 (skip 14.5) Data reduction - obtain a compact representation for interesting image data in terms of a set of components Find components that belong together (form clusters) Frame differencing - Background Subtraction and Shot Detection Slide credits for this chapter: David Forsyth, Christopher Rasmussen From: Object Recognition as Machine Translation, Duygulu, Barnard, de Freitas, Forsyth, ECCV02 General ideas Tokens whatever we need to group (pixels, points, surface elements, etc., etc.) Top down segmentation tokens belong together because they lie on the same object Bottom up segmentation tokens belong together because they are locally coherent These two are not mutually exclusive Why do these tokens belong together? 1

Top-down segmentation Basic ideas of grouping in human vision 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 Gestalt properties Psychologists have studies a series of factors that affect whether elements should be grouped together Gestalt properties 2

Elevator buttons in Berkeley Computer Science Building Segmentation as clustering Illusory Contours Cluster together (pixels, tokens, etc.) that belong together Agglomerative clustering merge closest clusters repeat Divisive clustering split cluster along best boundary repeat Point-Cluster distance single-link clustering complete-link clustering group-average clustering Dendrograms yield a picture of output as clustering process continues Dendrogram from Agglomerative Clustering Feature Space Every token is identified by a set of salient visual characteristics called features. For example: Position Color Texture Motion vector Size, orientation (if token is larger than a pixel) The choice of features and how they are quantified implies a feature space in which each token is represented by a point Instead of a fixed number of clusters, the dendrogram represents a hierarchy of clusters Token similarity is thus measured by distance between points ( feature vectors ) in feature space 3

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 (make sure no cluster is empty) 2. Recompute mean m i of each cluster from its member points 3. If no mean has changed, stop K-Means Minimizing squared distances to the center implies that the center is at the mean: Derivative of error is zero at the minimum Effectively carries out gradient descent to minimize: i clusters j elements of i'th cluster 2 x j µ i Example: 3-means Clustering Image Clusters on intensity Clusters on color K-means clustering using intensity alone and color alone Convergence in 3 steps from Duda et al. 4

Technique: Background Subtraction If we know what the background looks like, it is easy to segment out new regions Applications Person in an office Tracking cars on a road Surveillance Video game interfaces Approach: use a moving average to estimate background image subtract from current frame large absolute values are interesting pixels Background Subtraction The problem: Segment moving foreground objects from static background video sequence frame difference Algorithm background thresholded frame diff from C. Stauffer and W. Grimson Current image Background image Foreground pixels for t = 1:N Update background model Compute frame difference Threshold frame difference Noise removal end courtesy of C. Wren Pfinder Objects are detected where is non-zero Background Modeling Offline average Pixel-wise mean values are computed during training phase (also called Mean and Threshold) Adjacent Frame Difference Each image is subtracted from previous image in sequence Moving average Background model is linear weighted sum of previous frames 5

Results & Problems for Simple Approaches Background Subtraction: Issues Application: Sony Eyetoy Noise models Unimodal: Pixel values vary over time even for static scenes Multimodal: Features in background can oscillate, requiring models which can represent disjoint sets of pixel values (e.g., waving trees against sky) Gross illumination changes Continuous: Gradual illumination changes alter the appearance of the background (e.g., time of day) Discontinuous: Sudden changes in illumination and other scene parameters alter the appearance of the background (e.g., flipping a light switch Bootstrapping Is a training phase with no foreground necessary, or can the system learn what s static vs. dynamic online? For most games, this apparently uses simple frame differencing to detect regions of motion However, some applications use background subtraction to cut out an image of the user to insert in video Over 4 million units sold Technique: Shot Boundary Detection Find the shots in a sequence of video shot boundaries usually result in big differences between succeeding frames Strategy compute interframe distances declare a boundary where these are big Distance measures frame differences histogram differences block comparisons edge differences Applications representation for movies, or video sequences obtain most representative frame supports search 6