CSE 185 Introduction to Computer Vision Pattern Recognition 2.

Slides:



Advertisements
Similar presentations
CSCE643: Computer Vision Mean-Shift Object Tracking Jinxiang Chai Many slides from Yaron Ukrainitz & Bernard Sarel & Robert Collins.
Advertisements

Machine Learning and Data Mining Clustering
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Clustering and Dimensionality Reduction Brendan and Yifang April
Grouping and Segmentation Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/01/10.
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Clustering II.
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.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Mean Shift Theory and Applications
Mean-Shift Algorithm and Its Application Bohyung Han
Image Segmentation Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”.
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.
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Dorin Comaniciu Visvanathan Ramesh (Imaging & Visualization Dept., Siemens Corp. Res. Inc.) Peter Meer (Rutgers University) Real-Time Tracking of Non-Rigid.
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.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
~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.
Clustering with Application to Fast Object Search
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Segmentation and Grouping Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/23/10.
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)
7.1. Mean Shift Segmentation Idea of mean shift:
CS 558 C OMPUTER V ISION Lecture VI: Segmentation and Grouping Slides adapted from S. Lazebnik.
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
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!
Image Segmentation Shengnan Wang
Image Segmentation Superpixel methods Speaker: Hsuan-Yi Ko.
Mean Shift ; Theory and Applications Presented by: Reza Hemati دی 89 December گروه بینایی ماشین و پردازش تصویر Machine Vision and Image Processing.
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.
1 Kernel Machines A relatively new learning methodology (1992) derived from statistical learning theory. Became famous when it gave accuracy comparable.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Edge Detection using Mean Shift Smoothing
Photo: CMU Machine Learning Department Protests G20
CSSE463: Image Recognition Day 21
Segmentation by clustering: mean shift
Computer Vision Lecture 12: Image Segmentation II
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
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
Image Segmentation CS 678 Spring 2018.
15 February 2019 Welcome to a class with some curious content!
Segmentation (continued)
Grouping/Segmentation
CSSE463: Image Recognition Day 23
Mean Shift Theory and Applications
CSSE463: Image Recognition Day 23
Image Segmentation Samuel Cheng
Presentation transcript:

CSE 185 Introduction to Computer Vision Pattern Recognition 2

Agglomerative clustering

How to define cluster similarity? -Average distance between points, maximum distance, minimum distance -Distance between means or medoids How many clusters? -Clustering creates a dendrogram (a tree) -Threshold based on max number of clusters or based on distance between merges distance

Agglomerative Clustering Good Simple to implement, widespread application Clusters have adaptive shapes Provides a hierarchy of clusters Bad May have imbalanced clusters Still have to choose number of clusters or threshold Need to use a good metric to get a meaningful hierarchy

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

Mean shift algorithm Try to find modes of this non-parametric density  2D (first 2 components) dataset of 110,400 points in the LUV space Mean shift  procedure (7 clusters) Trajectories  of mean shift procedure

Kernel density estimation Kernel density estimation function Gaussian kernel

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean Shift vector Mean shift

Region of interest Center of mass Mean shift

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

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

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

Segmentation by mean shift Compute features for each pixel (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

Mean shift segmentation

Mean-shift: other issues Speedups –Binned estimation –Fast search of neighbors –Update each window in each iteration (faster convergence) Other tricks –Use kNN to determine window sizes adaptively 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 –Flexible in number and shape of regions –Robust to outliers Cons –Have to choose kernel size in advance –Not suitable for high-dimensional features When to use it –Oversegmentatoin –Multiple segmentations –Tracking, clustering, filtering applications

Spectral clustering Group points based on links in a graph A B

Cuts in a graph Normalized Cut a cut penalizes large segments fix by normalizing for size of segments volume(A) = sum of costs of all edges that touch A A B

Normalized cuts

Which algorithm to use? Quantization/Summarization: K-means –Aims to preserve variance of original data –Can easily assign new point to a cluster Quantization for computing histograms Summary of 20,000 photos of Rome using “greedy k-means”

Which algorithm to use? Image segmentation: agglomerative clustering –More flexible with distance measures (e.g., can be based on boundary prediction) –Adapts better to specific data –Hierarchy can be useful

Things to remember K-means useful for summarization, building dictionaries of patches, general clustering Agglomerative clustering useful for segmentation, general clustering Spectral clustering useful for determining relevance, summarization, segmentation

Clustering Key algorithm K-means