CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.

Slides:



Advertisements
Similar presentations
Interactively Co-segmentating Topically Related Images with Intelligent Scribble Guidance Dhruv Batra, Carnegie Mellon University Adarsh Kowdle, Cornell.
Advertisements

SOFT SCISSORS: AN INTERACTIVE TOOL FOR REALTIME HIGH QUALITY MATTING International Conference on Computer Graphics and Interactive Techniques ACM SIGGRAPH.
Cutting Images: Graphs and Boundary Finding Computational Photography Derek Hoiem, University of Illinois 09/15/11 “The Double Secret”, Magritte.
Graph cut Chien-chi Chen.
Presenter : Kuang-Jui Hsu Date : 2011/5/12(Tues.).
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:
GrabCut Interactive Image (and Stereo) Segmentation Carsten Rother Vladimir Kolmogorov Andrew Blake Antonio Criminisi Geoffrey Cross [based on Siggraph.
GrabCut Interactive Foreground Extraction using Iterated Graph Cuts Carsten Rother Vladimir Kolmogorov Andrew Blake Microsoft Research Cambridge-UK.
GrabCut Interactive Foreground Extraction using Iterated Graph Cuts Carsten Rother Vladimir Kolmogorov Andrew Blake Microsoft Research Cambridge-UK.
A Gimp Plugin that uses “GrabCut” to perform image segmentation
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.
GrabCut Interactive Image (and Stereo) Segmentation Joon Jae Lee Keimyung University Welcome. I will present Grabcut – an Interactive tool for foreground.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Robust Higher Order Potentials For Enforcing Label Consistency
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
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.
Announcements Project 2 more signup slots questions Picture taking at end of class.
Stereo & Iterative Graph-Cuts Alex Rav-Acha Vision Course Hebrew University.
Advanced Topics in Computer Vision Spring 2006 Video Segmentation Tal Kramer, Shai Bagon Video Segmentation April 30 th, 2006.
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
Stereo Computation using Iterative Graph-Cuts
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Perceptual Organization: Segmentation and Optical Flow.
Announcements vote for Project 3 artifacts Project 4 (due next Wed night) Questions? Late day policy: everything must be turned in by next Friday.
Announcements Project 3 questions Photos after class.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Automatic User Interaction Correction via Multi-label Graph-cuts Antonio Hernández-Vela, Carlos Primo and Sergio Escalera Workshop on Human Interaction.
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.
Image Renaissance Using Discrete Optimization Cédric AllèneNikos Paragios ENPC – CERTIS ESIEE – A²SI ECP - MAS France.
Computer Vision James Hays, Brown
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/31/15.
Graph Cut & Energy Minimization
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.
7.1. Mean Shift Segmentation Idea of mean shift:
Interactive Graph Cuts for Optimal Boundary & Region Segmentation of Objects in N-D Images (Fri) Young Ki Baik, Computer Vision Lab.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Gaussian Mixture Models and Expectation-Maximization Algorithm.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
 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.
Implementing the By: Matthew Marsh Supervisors: Prof Shaun Bangay Mrs Adele Lobb segmentation technique as a plugin for the GIMP.
Cutting Images: Graphs and Boundary Finding Computational Photography Derek Hoiem, University of Illinois 09/20/12 “The Double Secret”, Magritte.
Image segmentation.
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.
Image Segmentation Today’s Readings Szesliski Chapter 5
Cutting Images: Graphs and Boundary Finding
Segmentation by clustering: normalized cut
Digital Visual Effects, Spring 2009 Yung-Yu Chuang 2009/5/21
GrabCut Interactive Foreground Extraction using Iterated Graph Cuts Carsten Rother Vladimir Kolmogorov Andrew Blake Microsoft Research Cambridge-UK.
Efficient Graph Cut Optimization for Full CRFs with Quantized Edges
Lecture 31: Graph-Based Image Segmentation
Announcements Photos right now Project 3 questions
Digital Image Processing
“grabcut”- Interactive Foreground Extraction using Iterated Graph Cuts
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 4 questions Evaluations.
Announcements Project 4 out today (due Wed March 10)
“Traditional” image segmentation
Presentation transcript:

CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV

Recap of Lecture 27 Clustering based Image segmentation Mean Shift Kernel density estimation Application of Mean shift: Filtering, Clustering, Segmentation Watershed segmentation

Outline of Lecture 28 Interactive image segmentation Graph based segmentation Graph-Cut Grab-Cut

Automatic image segmentation is tough!!

Interactive image segmentation Original + cuesBinary segmentation Image cut-pasteForeground Background

Interactive segmentation framework

Use of distance criteria

Illustration Original + Scribbles

Interactive Segmentation: Refinement Original image and scribbles Automatically generated trimap Obtained segmentation

Interactive Segmentation: Local processing Sliding window refinement (fixed width band)

More examples Original + Scribbles Binary segmentation Image cut-paste

Application to other domain

Images as graphs Fully-connected graph node for every pixel link between every pair of pixels, p,q similarity w ij for each link i j w ij c Source: Seitz

Cuts in a graph Link Cut set of links whose removal makes a graph disconnected cost of a cut: A B One idea: Find minimum cut gives you a segmentation fast algorithms exist for doing this Source: Seitz

But min cut is not always the best cut... Any cut that partitions out individual nodes on the right half will have smaller cut value The cut that partitions the nodes into the left and right halves will have large cut value

Cuts in a graph Normalized Cut (Shi and Malik) a cut penalizes large segments fix by normalizing for size of segments volume(A) = sum of costs of all edges that touch A Source: Seitz A B Computes the cut cost as a fraction of the total edge connections to all the nodes in the graph

Recursive normalized cuts 1.Given an image or image sequence, set up a weighted graph: G=(V, E) Vertex for each pixel Edge weight for nearby pairs of pixels 2.Solve for eigenvectors with the smallest Eigen values: (D − W)y = λDy Use the eigenvector with the second smallest Eigen value to bipartition the graph Note: this is an approximation 4. Recursively repartition the segmented parts if necessary Details:

Normalized cuts results

Normalized cuts: Pro and con Pros Generic framework, can be used with many different features and affinity formulations Provides regular segments Cons Need to chose number of segments High storage requirement and time complexity Bias towards partitioning into equal segments Usage Use for over segmentation when you want regular segments

Graph-Cut A user imposes certain hard constraints for segmentation These hard constraints provide clues on what the user intends to segment Rest of the image is segmented automatically by computing a global optimum among all segmentations The cost function is defined in terms of boundary and region properties of the segments These properties can be viewed as soft constraints for segmentation.

Graph Cut (Boycov and Jolley) Image Foreground (source) Background(sink) Cut: separating source and sink; Energy: collection of edges Min Cut: Global minimal enegry in polynomial time

Optimization function formulation Cost function: Membership function: Region property term: Boundary property term:

Labeling as a graph problem Each pixel = node Add two nodes F & B Labeling: link each pixel to either F or B F B F FF FB B B Desired result

Data term Put one edge between each pixel and both F & G Weight of edge = minus data term Huge weight for hard constraints Careful with sign (Non-negative)

Smoothness term Add an edge between each neighbor pair Weight = smoothness term

Min cut Energy optimization equivalent to graph min cut Cut: remove edges to disconnect F from B Minimum: minimize sum of cut edge weight cut

How to set weights EdgeWeight (cost)For

Cut characteristics

Graph cuts segmentation 1.Define graph usually 4-connected or 8-connected 2.Define unary potentials Color histogram or mixture of Gaussians for background and foreground 3.Define pairwise potentials 4.Apply graph cuts 5.Return to 2, using current labels to compute foreground, background models

GrabCut: Rother et al. Extension of GraphCut in three aspects 1. More powerful, iterative version of the optimisation 2. Simplify substantially the user interaction needed for a given quality of result 3. A robust algorithm for “border matting” has been developed to estimate simultaneously the alpha-matte around an object boundary and the colours of foreground pixels

Iterative image segmentation in GrabCut 1.Initialization 1.User initializes trimap 2.Background and foreground GMMs initialised 2.Iterative minimization 1.Assign GMM components to Pixel 2.Learn GMM parameters from data 3.Estimate segmentation 4.Repeat till convergence 5.Matting 3.User editing 1.Edit 2.Refinement

Illustration

Moderately straightforward examples … GrabCut completes automatically

Difficult Examples Camouflage & Low Contrast No telepathy Fine structure Initial Rectangle Initial Result

Further reading and resources Normalized cuts and image segmentation (Shi and Malik) N-cut implementation Graph cuts Classic paper: What Energy Functions can be Minimized via Graph Cuts? (Kolmogorov and Zabih, ECCV '02/PAMI '04)What Energy Functions can be Minimized via Graph Cuts?

Quantitative Evaluation The segmentation is evaluated by assessing its consistency with the ground truth Image Ground truth Image Ground truth

Example Ground truthSegmentation resultPerformance evaluation Input image

Quantitative measurement True positive (TP) True negative (TN) False positive (FP) False negative (FN)

Thank you Next Lecture: Color Image Processing