Segmentation and Grouping Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/23/10.

Slides:



Advertisements
Similar presentations
Department of Computer Engineering
Advertisements

Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/01/10.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Algorithms & Applications in Computer Vision Lihi Zelnik-Manor Lecture 11: Structure from Motion.
EE 7730 Image Segmentation.
Mean Shift A Robust Approach to Feature Space Analysis Kalyan Sunkavalli 04/29/2008 ES251R.
Segmentation. Terminology Segmentation, grouping, perceptual organization: gathering features that belong together Fitting: associating a model with observed.
Mean Shift Theory and Applications
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
1 Segmentation with Scene and Sub-Scene Categories Joseph Djugash Input Image Scene/Sub-Scene Classification Segmentation.
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Perceptual Organization: Segmentation and Optical Flow.
Segmentation and Clustering Today’s Readings Forsyth & Ponce, Chapter 7 (plus lots of optional references in the slides) From Sandlot ScienceSandlot Science.
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/17/15.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Graph-based Segmentation
~5,617,000 population in each state
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Computer Vision James Hays, Brown
CSE 185 Introduction to Computer Vision Pattern Recognition.
Mean Shift : A Robust Approach Toward Feature Space Analysis - Bayesian Background Modeling
Mean-shift and its application for object tracking
Mean Shift Theory and Applications Reporter: Zhongping Ji.
Region Segmentation Readings: Chapter 10: 10.1 Additional Materials Provided K-means Clustering (text) EM Clustering (paper) Graph Partitioning (text)
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/24/10.
Segmentation: MRFs and Graph Cuts Computer Vision CS 143, Brown James Hays 10/07/11 Many slides from Kristin Grauman and Derek Hoiem.
CS 558 C OMPUTER V ISION Lecture VI: Segmentation and Grouping Slides adapted from S. Lazebnik.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Perceptual and Sensory Augmented Computing Computer Vision WS 09/10 Computer Vision – Lecture 7 Segmentation and Grouping Bastian Leibe RWTH.
Machine Learning Crash Course Computer Vision James Hays Slides: Isabelle Guyon, Erik Sudderth, Mark Johnson, Derek Hoiem Photo: CMU Machine Learning Department.
EECS 274 Computer Vision Segmentation by Clustering II.
Grouping and Segmentation
CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:
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!
Segmentation & Grouping Tuesday, Sept 23 Kristen Grauman UT-Austin.
Perceptual and Sensory Augmented Computing Computer Vision WS 11/12 Computer Vision – Lecture 6 Segmentation and Grouping Bastian Leibe RWTH.
Image Segmentation Shengnan Wang
Mean Shift ; Theory and Applications Presented by: Reza Hemati دی 89 December گروه بینایی ماشین و پردازش تصویر Machine Vision and Image Processing.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Object Recognition by Integrating Multiple Image Segmentations Caroline Pantofaru, Cordelia Schmid, Martial Hebert ECCV 2008 E.
Perceptual and Sensory Augmented Computing Computer Vision WS 08/09 Computer Vision – Lecture 7 Segmentation and Grouping Bastian Leibe RWTH.
Lecture 30: Segmentation CS4670 / 5670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
CS 2750: Machine Learning Clustering Prof. Adriana Kovashka University of Pittsburgh January 25, 2016.
Segmentation slides adopted from Svetlana Lazebnik.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Photo: CMU Machine Learning Department Protests G20
CSSE463: Image Recognition Day 21
Segmentation by clustering: mean shift
Lecture: Clustering and Segmentation
Lecture: k-means & mean-shift clustering
A segmentation and tracking algorithm
Segmentation Computer Vision Spring 2018, Lecture 27
CS 2750: Machine Learning Clustering
CSSE463: Image Recognition Day 23
Image Segmentation CS 678 Spring 2018.
15 February 2019 Welcome to a class with some curious content!
Segmentation (continued)
Prof. Adriana Kovashka University of Pittsburgh September 6, 2018
CSSE463: Image Recognition Day 23
Mean Shift Theory and Applications
CSSE463: Image Recognition Day 23
Image Segmentation Samuel Cheng
Presentation transcript:

Segmentation and Grouping Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/23/10

Outline Goals of segmentation – Over-segmentation (for efficiency or features) – Get support regions for computing features (multiple segmentations) – Get object regions Soft boundaries + watershed Mean-shift Gestalt cues Normalized cuts Other methods – Felzenszwalb and Huttenlocher

Last week Clustering EM

Today’s class More on EM Segmentation and grouping – Gestalt cues – By boundaries (watershed) – By clustering (mean-shift)

EM

Gestalt grouping

German: Gestalt - "form" or "whole” Berlin School, early 20th century Kurt Koffka, Max Wertheimer, and Wolfgang Köhler View of brain: whole is more than the sum of its parts holistic parallel analog self-organizing tendencies Slide from S. Saverese Gestalt psychology or gestaltism

The Muller-Lyer illusion Gestaltism

Explanation

Principles of perceptual organization From Steve Lehar: The Constructive Aspect of Visual Perception

Principles of perceptual organization

From Steve Lehar: The Constructive Aspect of Visual Perception Grouping by invisible completion

From Steve Lehar: The Constructive Aspect of Visual Perception Grouping involves global interpretation

From Steve Lehar: The Constructive Aspect of Visual Perception

Gestaltists do not believe in coincidence

Emergence

Gestalt cues Good intuition and basic principles for grouping Difficult to implement in practice Sometimes used for occlusion reasoning

Moving on to image segmentation … Goal: Break up the image into meaningful or perceptually similar regions

Segmentation for feature support 50x50 Patch

Segmentation for efficiency [Felzenszwalb and Huttenlocher 2004] [Hoiem et al. 2005, Mori 2005] [Shi and Malik 2001]

Segmentation as a result Rother et al. 2004

Types of segmentations OversegmentationUndersegmentation Multiple Segmentations

Major processes for segmentation Bottom-up: group tokens with similar features Top-down: group tokens that likely belong to the same object [Levin and Weiss 2006]

Segmentation using clustering Kmeans Mean-shift

Source: K. Grauman Feature Space

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

K-Means pros and cons Pros – Simple and fast – Easy to implement Cons – Need to choose K – Sensitive to outliers Usage – Rarely used for pixel segmentation

Versatile technique for clustering-based segmentation D. Comaniciu and P. Meer, Mean Shift: A Robust Approach toward Feature Space Analysis, PAMI Mean shift segmentation

Kernel density estimation Kernel density estimation function Gaussian kernel

Mean shift algorithm Try to find modes of this non-parametric density

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 Mean shift

Region of interest Center of mass Mean Shift vector Mean shift 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 Slide by Y. Ukrainitz & B. Sarel Mean shift

Simple Mean Shift procedure: Compute mean shift vector Translate the Kernel window by m(x) Computing the Mean Shift

Real Modality Analysis

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 Attraction basin

Mean shift clustering The mean shift algorithm seeks modes of the given set of points 1.Choose kernel and bandwidth 2.For each point: a)Center a window on that point b)Compute the mean of the data in the search window c)Center the search window at the new mean location d)Repeat (b,c) until convergence 3.Assign points that lead to nearby modes to the same cluster

Find features (color, gradients, texture, etc) Set kernel size for features K f and position K s Initialize windows at individual pixel locations Perform mean shift for each window until convergence Merge windows that are within width of K f and K s Segmentation by Mean Shift

Mean shift segmentation results

Mean-shift: other issues Speedups – Uniform kernel (much faster but not as good) – Binning or hierarchical methods – Approximate nearest neighbor search Methods to adapt kernel size depending on data density Lots of theoretical support D. Comaniciu and P. Meer, Mean Shift: A Robust Approach toward Feature Space Analysis, PAMI 2002.

Mean shift pros and cons Pros – Good general-practice segmentation – Finds variable number of regions – Robust to outliers Cons – Have to choose kernel size in advance – Original algorithm doesn’t deal well with high dimensions When to use it – Oversegmentatoin – Multiple segmentations – Other tracking and clustering applications

Watershed algorithm

Watershed segmentation ImageGradient Watershed boundaries

Meyer’s watershed segmentation 1.Choose local minima as region seeds 2.Add neighbors to priority queue, sorted by value 3.Take top priority pixel from queue 1.If all labeled neighbors have same label, assign to pixel 2.Add all non-marked neighbors 4.Repeat step 3 until finished Meyer 1991 Matlab: seg = watershed(bnd_im)

Simple trick Use median filter to reduce number of regions

Watershed usage Use as a starting point for hierarchical segmentation – Ultrametric contour map (Arbelaez 2006) Works with any soft boundaries – Pb – Canny – Etc.

Watershed pros and cons Pros – Fast (< 1 sec for 512x512 image) – Among best methods for hierarchical segmentation Cons – Only as good as the soft boundaries – Not easy to get variety of regions for multiple segmentations – No top-down information Usage – Preferred algorithm for hierarchical segmentation

Things to remember Gestalt cues and principles of organization Uses of segmentation – Efficiency – Better features – Want the segmented object Mean-shift segmentation – Good general-purpose segmentation method – Generally useful clustering, tracking technique Watershed segmentation – Good for hierarchical segmentation – Use in combination with boundary prediction

Further reading Mean-shift paper by Comaniciu and Meer Adaptive mean shift in higher dimensions Contours to regions (watershed): Arbelaez et al

Next class Graph-based segmentation – Normalized cuts – Graph cuts