MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.

Slides:



Advertisements
Similar presentations
Graph cut Chien-chi Chen.
Advertisements

Introduction to Markov Random Fields and Graph Cuts Simon Prince
Interactive Shortest Path An Image Segmentation Technique Jonathan-Lee Jones.
Clustering II CMPUT 466/551 Nilanjan Ray. Mean-shift Clustering Will show slides from:
Graph-Based Image Segmentation
Foreground/Background Image Segmentation. What is our goal? To label each pixel in an image as belonging to either the foreground of the scene or the.
1 s-t Graph Cuts for Binary Energy Minimization  Now that we have an energy function, the big question is how do we minimize it? n Exhaustive search is.
Graph-based image segmentation Václav Hlaváč Czech Technical University in Prague Faculty of Electrical Engineering Department of Cybernetics Prague, Czech.
Object Detection by Matching Longin Jan Latecki. Contour-based object detection Database shapes: …..
Silhouettes in Multiview Stereo Ian Simon. Multiview Stereo Problem Input: – a collection of images of a rigid object (or scene) – camera parameters for.
Optimal solution of binary problems Much material taken from :  Olga Veksler, University of Western Ontario
1 Can this be generalized?  NP-hard for Potts model [K/BVZ 01]  Two main approaches 1. Exact solution [Ishikawa 03] Large graph, convex V (arbitrary.
CS448f: Image Processing For Photography and Vision Graph Cuts.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
CS 376b Introduction to Computer Vision 04 / 08 / 2008 Instructor: Michael Eckmann.
© 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.
2010/5/171 Overview of graph cuts. 2010/5/172 Outline Introduction S-t Graph cuts Extension to multi-label problems Compare simulated annealing and alpha-
Stereo & Iterative Graph-Cuts Alex Rav-Acha Vision Course Hebrew University.
Stereo Computation using Iterative Graph-Cuts
Comp 775: Graph Cuts and Continuous Maximal Flows Marc Niethammer, Stephen Pizer Department of Computer Science University of North Carolina, Chapel Hill.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
Measuring Uncertainty in Graph Cut Solutions Pushmeet Kohli Philip H.S. Torr Department of Computing Oxford Brookes University.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
Computer vision: models, learning and inference
Perceptual Organization: Segmentation and Optical Flow.
The Shortest Path Problem
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
Michael Bleyer LVA Stereo Vision
Presenter : Kuang-Jui Hsu Date : 2011/5/3(Tues.).
Graph Cut & Energy Minimization
Graph-based Segmentation. Main Ideas Convert image into a graph Vertices for the pixels Vertices for the pixels Edges between the pixels Edges between.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 26.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
10/11/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 22 Network.
Interactive Graph Cuts for Optimal Boundary & Region Segmentation of Objects in N-D Images (Fri) Young Ki Baik, Computer Vision Lab.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
CSCI 115 Chapter 7 Trees. CSCI 115 §7.1 Trees §7.1 – Trees TREE –Let T be a relation on a set A. T is a tree if there exists a vertex v 0 in A s.t. there.
Graph Cuts Marc Niethammer. Segmentation by Graph-Cuts A way to compute solutions to the optimization problems we looked at before. Example: Binary Segmentation.
Jonathan Dinger 1. Traffic footage example 2  Important step in video analysis  Background subtraction is often used 3.
CS 4487/6587 Algorithms for Image Analysis
1 Markov Random Fields with Efficient Approximations Yuri Boykov, Olga Veksler, Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
CS774. Markov Random Field : Theory and Application Lecture 02
Approximate Inference: Decomposition Methods with Applications to Computer Vision Kyomin Jung ( KAIST ) Joint work with Pushmeet Kohli (Microsoft Research)
Presenter : Kuang-Jui Hsu Date : 2011/3/24(Thur.).
1 Prim’s algorithm. 2 Minimum Spanning Tree Given a weighted undirected graph G, find a tree T that spans all the vertices of G and minimizes the sum.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
CS654: Digital Image Analysis Lecture 28: Advanced topics in Image Segmentation Image courtesy: IEEE, IJCV.
Graph Algorithms for Vision Amy Gale November 5, 2002.
Outline Standard 2-way minimum graph cut problem. Applications to problems in computer vision Classical algorithms from the theory literature A new algorithm.
Prof. Swarat Chaudhuri COMP 382: Reasoning about Algorithms Fall 2015.
Markov Random Fields in Vision
Cutting Images: Graphs and Boundary Finding Computational Photography Derek Hoiem, University of Illinois 09/20/12 “The Double Secret”, Magritte.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Energy functions f(p)  {0,1} : Ising model Can solve fast with graph cuts V( ,  ) = T[  ] : Potts model NP-hard Closely related to Multiway Cut Problem.
Image segmentation.
Graph-based Segmentation
Minimum Spanning Tree Chapter 13.6.
Markov Random Fields with Efficient Approximations
Exact Inference Continued
Graph Cut Weizhen Jing
Haim Kaplan and Uri Zwick
Richard Anderson Lecture 25 Open Pit Mining
CSE 373: Data Structures and Algorithms
Lecture 31: Graph-Based Image Segmentation
“Traditional” image segmentation
Exact Voxel Occupancy with Graph Cuts
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
Presentation transcript:

MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray

The MRF Labeling Problem A cost function of the following form provides an MRF model: The variables p i are binary, i.e., takes values 0 or 1 only f i are image specific terms called “likelihood” data term g (i,j) typically enforce “spatial coherence” or “smoothness” in the solution We want to minimize E to obtain a binary labeling (p 1,…, p N ) for an image

An Example Likelihood An Image Probability densities for foreground and background image intensity: The “likelihood” data term:

Spatial Smoothness One can efficiently obtain a global minimization of E provided: An example smoothness term (Ising model): Source-sink graph cut (a.k.a. S-T graph cut) provides is an efficient algorithm solving the binary labeling problem

S-T Graph Cut A source-sink graph: every pixel must be connected to at least s or t A cut of source-sink graph: dashed edges are removed Source set of pixels in the cut: Sink set of pixels in the cut: A cut is the set of removed edges between the source and the sink sets; in S-T cut graph a pixel must belong either to s or to t, but not both.

S-T Cut and MRF Labeling The idea is to construct a S-T graph so that a cut of the graph can represent the cost function E. Next get the minimum cut of the S-T graph to minimize E. Every edge in the S-T graph should carry a cost The likelihood data term and the spatial smoothness term must be represented by the sum of the cost of the removed edges

Representing The Likelihood Term Consider the following algebraic manipulation: The basis of the identity: Construct a S-T graph as: N+2 vertices; N vertices represent N pixels, one vertex for s and another vertex for t Add an edge from s to i with weight f i (1)- f i (0) if f i (1)- f i (0)>0; else add an edge from i to t with weight f i (0)- f i (1) if f i (0)- f i (1)>0. Can you see why such a construction represents likelihood data terms?

Representing Smoothness Algebraic manipulations to the smoothness summation term: Need to represent the first three summation terms in the graph edges

Representing Smoothness… For the first summation: add an edge between every neighboring pixel pair (i, j) with weight For the second summation, if add an edge from s to i with weight else if add an edge from i to t with weight The third summation: similar to the second summation case What if an edge already exits? Just update the its weight.

Example Segmentation A cell image Segmentation by graph cut

Summary S-T graph cut can solve a restricted Binary MRF labeling problem; The restriction is due to the allowed smoothness terms. This is the state-of-the-art computation for Binary MRF labeling More than binary labeling is an NP-hard problem: some heuristics exists for graph-cut Also there are heuristics to relax the restrictions on the smoothness function