Image segmentation.

Slides:



Advertisements
Similar presentations
O BJ C UT M. Pawan Kumar Philip Torr Andrew Zisserman UNIVERSITY OF OXFORD.
Advertisements

Agenda Introduction Bag-of-words models Visual words with spatial location Part-based models Discriminative methods Segmentation and recognition Recognition-based.
Scene Labeling Using Beam Search Under Mutex Constraints ID: O-2B-6 Anirban Roy and Sinisa Todorovic Oregon State University 1.
Carolina Galleguillos, Brian McFee, Serge Belongie, Gert Lanckriet Computer Science and Engineering Department Electrical and Computer Engineering Department.
LARGE-SCALE IMAGE PARSING Joseph Tighe and Svetlana Lazebnik University of North Carolina at Chapel Hill road building car sky.
I Images as graphs Fully-connected graph – node for every pixel – link between every pair of pixels, p,q – similarity w ij for each link j w ij c Source:
Graph-Based Image Segmentation
Stephen J. Guy 1. Photomontage Photomontage GrabCut – Interactive Foreground Extraction 1.
Graph-based image segmentation Václav Hlaváč Czech Technical University in Prague Faculty of Electrical Engineering Department of Cybernetics Prague, Czech.
Pseudo-Bound Optimization for Binary Energies Presenter: Meng Tang Joint work with Ismail Ben AyedYuri Boykov 1 / 27.
Object Detection by Matching Longin Jan Latecki. Contour-based object detection Database shapes: …..
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Lecture 21: Spectral Clustering
Algorithms & Applications in Computer Vision Lihi Zelnik-Manor Lecture 11: Structure from Motion.
Segmentation. Terminology Segmentation, grouping, perceptual organization: gathering features that belong together Fitting: associating a model with observed.
Robust Higher Order Potentials For Enforcing Label Consistency
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Image Segmentation Based on the work of Shi and Malik, Carnegie Mellon and Berkley and based on.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
LARGE-SCALE NONPARAMETRIC IMAGE PARSING Joseph Tighe and Svetlana Lazebnik University of North Carolina at Chapel Hill CVPR 2011Workshop on Large-Scale.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
Segmentation Graph-Theoretic Clustering.
Oxford Brookes Seminar Thursday 3 rd September, 2009 University College London1 Representing Object-level Knowledge for Segmentation and Image Parsing:
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
What Energy Functions Can be Minimized Using Graph Cuts? Shai Bagon Advanced Topics in Computer Vision June 2010.
Presentation By Michael Tao and Patrick Virtue. Agenda History of the problem Graph cut background Compute graph cut Extensions State of the art Continued.
Perceptual Organization: Segmentation and Optical Flow.
What, Where & How Many? Combining Object Detectors and CRFs
Announcements Project 3 questions Photos after class.
Graph-based Segmentation
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.
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/31/15.
Michael Bleyer LVA Stereo Vision
Graph-based Segmentation. Main Ideas Convert image into a graph Vertices for the pixels Vertices for the pixels Edges between the pixels Edges between.
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.
City University of Hong Kong 18 th Intl. Conf. Pattern Recognition Self-Validated and Spatially Coherent Clustering with NS-MRF and Graph Cuts Wei Feng.
CS 558 C OMPUTER V ISION Lecture VI: Segmentation and Grouping Slides adapted from S. Lazebnik.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
Texture We would like to thank Amnon Drory for this deck הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Texture We would like to thank Amnon Drory for this deck הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Associative Hierarchical CRFs for Object Class Image Segmentation
Segmentation & Grouping Tuesday, Sept 23 Kristen Grauman UT-Austin.
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.
 In the previews parts we have seen some kind of segmentation method.  In this lecture we will see graph cut, which is a another segmentation method.
Example Apply hierarchical clustering with d min to below data where c=3. Nearest neighbor clustering d min d max will form elongated clusters!
CS 2750: Machine Learning Clustering Prof. Adriana Kovashka University of Pittsburgh January 25, 2016.
Segmentation slides adopted from Svetlana Lazebnik.
Parsing Natural Scenes and Natural Language with Recursive Neural Networks INTERNATIONAL CONFERENCE ON MACHINE LEARNING (ICML 2011) RICHARD SOCHER CLIFF.
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/27/12.
Course Introduction to Medical Imaging Segmentation 1 – Mean Shift and Graph-Cuts Guy Gilboa.
Graph-based Segmentation
Image Segmentation Today’s Readings Szesliski Chapter 5
Segmentation by clustering: normalized cut
Summary of “Efficient Deep Learning for Stereo Matching”
Finding Things: Image Parsing with Regions and Per-Exemplar Detectors
Nonparametric Semantic Segmentation
Segmentation Graph-Theoretic Clustering.
Efficient Graph Cut Optimization for Full CRFs with Quantized Edges
Grouping.
Lecture 31: Graph-Based Image Segmentation
Digital Image Processing
Seam Carving Project 1a due at midnight tonight.
Image Segmentation CS 678 Spring 2018.
Spectral Clustering Eric Xing Lecture 8, August 13, 2010
Segmentation (continued)
Announcements Project 1 is out today help session at the end of class.
“Traditional” image segmentation
Presentation transcript:

Image segmentation

Segmenting images into meaningful objects “Bottom-up” or “top-down” process? Supervised or unsupervised? image human segmentation Berkeley segmentation database: http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/

Object-level segmentation challenges

Superpixel segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised X. Ren and J. Malik. Learning a classification model for segmentation. ICCV 2003.

Graph-based segmentation wij i j Node = pixel Edge = pair of “neighboring” pixels Edge weight = similarity or dissimilarity of the respective nodes Source: S. Seitz

Efficient graph-based segmentation Runs in time nearly linear in the number of edges Easy to control coarseness of segmentations Results can be unstable P. Felzenszwalb and D. Huttenlocher, Efficient Graph-Based Image Segmentation, IJCV 2004

Felsenszwalb & Huttenlocher algorithm Graph definition: Vertices are pixels, edges connect neighboring pixels, weights correspond to dissimilarity in (x,y,r,g,b) space The algorithm: Start with each vertex in its own component For each edge in increasing order of weight: If the edge is between vertices in two different components A and B, merge if the edge weight is lower than the internal dissimilarity within either of the components Threshold is the minimum of the following values, computed on A and B: (Highest-weight edge in minimum spanning tree of the component) + (k / size of component)

Segmentation by graph cuts wij i j A B Break graph into segments Delete links that cross between segments Easiest to break links that have low affinity similar pixels should be in the same segments dissimilar pixels should be in different segments Source: S. Seitz

Segmentation by graph cuts A graph cut is a set of edges whose removal disconnects the graph Cost of a cut: sum of weights of cut edges Two-way minimum cuts can be found efficiently Affinity matrix

Segmentation by graph cuts A graph cut is a set of edges whose removal disconnects the graph Cost of a cut: sum of weights of cut edges Two-way minimum cuts can be found efficiently Affinity matrix

Normalized cut Minimum cut tends to cut off very small, isolated components Ideal Cut Cuts with lesser weight than the ideal cut

w(A, B) = sum of weights of all edges between A and B Normalized cut To encourage larger segments, normalize the cut by the total weight of edges incident to the segment The normalized cut cost is: Intuition: big segments will have a large w(A,V), thus decreasing ncut(A, B) Finding the globally optimal cut is NP-complete, but a relaxed version can be solved using a generalized eigenvalue problem w(A, B) = sum of weights of all edges between A and B J. Shi and J. Malik. Normalized cuts and image segmentation. PAMI 2000

Normalized cut: Algorithm Let W be the affinity matrix of the graph (n x n for n pixels) Let D be the diagonal matrix with entries D(i, i) = Σj W(i, j) Solve generalized eigenvalue problem (D − W)y = λDy for the eigenvector with the second smallest eigenvalue The ith entry of y can be viewed as a “soft” indicator of the component membership of the ith pixel Use 0 or median value of the entries of y to split the graph into two components To find more than two components: Recursively bipartition the graph Run k-means clustering on values of several eigenvectors

Example result Original image Eigenvectors for 2nd and 3rd smallest eigenvalues More eigenvectors

Normalized cuts: Pro and con Generic framework, can be used with many different features and affinity formulations Con High storage requirement and time complexity: involves solving a generalized eigenvalue problem of size n x n, where n is the number of pixels

Segmentation as labeling Suppose we want to segment an image into foreground and background Binary pixel labeling problem

Segmentation as labeling Suppose we want to segment an image into foreground and background Binary pixel labeling problem Naturally arises in interactive settings User scribbles

Labeling by energy minimization Define a labeling c as an assignment of each pixel to a class (foreground or background) Find the labeling that minimizes a global energy function: These are known as Markov Random Field (MRF) or Conditional Random Field (CRF) functions Unary potential (local data term): score for pixel i and label ci Pixels Pairwise potential (context or smoothing term) Neighboring pixels

Segmentation by energy minimization Unary potentials: Cost is infinity if label does not match the user scribble Otherwise, it is computed based on a color model of user-labeled pixels User scribbles P(foreground | xi)

Segmentation by energy minimization Unary potentials: Pairwise potentials: Neighboring pixels should have the same label unless they look very different Affinity between pixels i and j high affinity low affinity

Segmentation by energy minimization Can be optimized efficiently by finding the minimum cut in the following graph: Y. Boykov and M. Jolly, Interactive graph cuts for optimal boundary and region segmentation of objects in N-D images, ICCV 2001

Recall: Stereo as energy minimization D W1(i ) W2(i+D(i )) D(i ) data term smoothness term

GrabCut C. Rother, V. Kolmogorov, and A. Blake, “GrabCut” — Interactive Foreground Extraction using Iterated Graph Cuts, SIGGRAPH 2004

Semantic segmentation Problem: label each pixel by one of C classes Define an energy function where unaries correspond to local classifier responses and smoothing potentials correspond to contextual terms Solve a multi-class graph cut problem

Example: TextonBoost Label field Model parameters Image Local data term Smoothing term J. Shotton, J. Winn, C. Rother, and A. Criminisi, TextonBoost: Joint Appearance, Shape And Context Modeling For Multi-class Object Recognition And Segmentation, ECCV 2006.

Example: SuperParsing CRF energy function is defined on superpixels Unaries are based on nearest neighbor retrieval Pairwise potentials capture class co-occurrence statistics J. Tighe and S. Lazebnik, SuperParsing: Scalable Nonparametric Image Parsing with Superpixels, ECCV 2010

Example: SuperParsing CRF energy function is defined on superpixels Unaries are based on nearest neighbor retrieval Pairwise potentials capture class co-occurrence statistics Maximum likelihood labeling Original image Edge penalties Final labeling sky sky road tree sea sea road sand sand J. Tighe and S. Lazebnik, SuperParsing: Scalable Nonparametric Image Parsing with Superpixels, ECCV 2010

Semantic segmentation with deep networks M. Mostajabi, P. Yadollahpour and G. Shakhnarovich, Feedforward semantic segmentation with zoom-out features, CVPR 2015

Semantic segmentation with deep networks B. Hariharan, P. Arbelaez, R. Girshick, and J. Malik, Hypercolumns for Object Segmentation and Fine-grained Localization, CVPR 2015

Semantic segmentation with deep networks J. Long, E. Shelhamer, and T. Darrell, Fully Convolutional Networks for Semantic Segmentation, CVPR 2015