CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct 15 2009.

Slides:



Advertisements
Similar presentations
Maximum flow Main goals of the lecture:
Advertisements

Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
Introduction to Markov Random Fields and Graph Cuts Simon Prince
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
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.
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
The Maximum Network Flow Problem. CSE Network Flows.
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Lectures on Network Flows
CS138A Network Flows Peter Schröder. CS138A Flow Networks Definitions a flow network G=(V,E) is a directed graph in which each edge (u,v)
1 Maximum Flow Maximum Flow Problem The Ford-Fulkerson method Maximum bipartite matching.
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.
3 t s the black numbers next to an arc is its capacity.
Yangjun Chen 1 Network Flow What is a network? Flow network and flows Ford-Fulkerson method - Residual networks - Augmenting paths - Cuts of flow networks.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
Stereo Computation using Iterative Graph-Cuts
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
Computer vision: models, learning and inference
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2004 Lecture 5 Wednesday, 10/6/04 Graph Algorithms: Part 2.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Maximum Flow Maximum Flow Problem The Ford-Fulkerson method
MAX FLOW CS302, Spring 2013 David Kauchak. Admin.
Graph Cut 韋弘 2010/2/22. Outline Background Graph cut Ford–Fulkerson algorithm Application Extended reading.
Lecture 5: Network Flow Algorithms Single-Source Shortest-Path (SSSP) (Dijkstra's Algorithm) Max Flow - Min Cut (Ford-Fulkerson) Job Sequencing.
Yangjun Chen 1 Network Flow What is a network? Flow network and flows Ford-Fulkerson method - Residual networks - Augmenting paths - Cuts of flow networks.
Single Source Shortest-Path: The General Case (with negative edges) Bellman-Ford algorithm. Iteratively relax all edges |V|-1 times Running time? O(VE).
CS 473Lecture ?1 CS473-Algorithms I Lecture ? Network Flows Finding Max Flow.
1 Markov Random Fields with Efficient Approximations Yuri Boykov, Olga Veksler, Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Fast and accurate energy minimization for static or time-varying Markov Random Fields (MRFs) Nikos Komodakis (Ecole Centrale Paris) Nikos Paragios (Ecole.
CS774. Markov Random Field : Theory and Application Lecture 02
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
Maximum Flow Chapter 26. Flow Concepts Source vertex s – where material is produced Sink vertex t – where material is consumed For all other vertices.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Chapter 7 April 28 Network Flow.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Flow Networks Ching-Chen Huang Hsi-Yue Hsiao. CONTENTS Network flows on directed acyclic graphs Ford-fulkerson Algorithms -Residual networks.
Outline Standard 2-way minimum graph cut problem. Applications to problems in computer vision Classical algorithms from the theory literature A new algorithm.
1 Network Flow CSC401 – Analysis of Algorithms Chapter 8 Network Flow Objectives: Flow networks –Flow –Cut Maximum flow –Augmenting path –Maximum flow.
Fall 2003Maximum Flow1 w s v u t z 3/33/3 1/91/9 1/11/1 3/33/3 4/74/7 4/64/6 3/53/5 1/11/1 3/53/5 2/22/2 
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Theory of Computing Lecture 12 MAS 714 Hartmut Klauck.
Iterative Improvement for Domain-Specific Problems Lecturer: Jing Liu Homepage:
Markov Random Fields in Vision
Maximum Flow Problem Definitions and notations The Ford-Fulkerson method.
CS 312: Algorithm Design & Analysis Lecture #29: Network Flow and Cuts This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported.
The Maximum Network Flow Problem
The Maximum Network Flow Problem
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Richard Anderson Lecture 23 Network Flow
Lecture 22 Network Flow, Part 2
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Richard Anderson Lecture 23 Network Flow
Richard Anderson Lecture 23 Network Flow
Richard Anderson Lecture 21 Network Flow
Algorithms (2IL15) – Lecture 7
EE5900 Advanced Embedded System For Smart Infrastructure
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Lecture 21 Network Flow, Part 1
Richard Anderson Lecture 22 Network Flow
Lecture 21 Network Flow, Part 1
Maximum Flow Neil Tang 4/8/2008
Lecture 22 Network Flow, Part 2
Presentation transcript:

CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct

The Labeling Problem in Vision Common idea behind many Computer Vision problems In the presence of uncertainties, find the best Labeling !  Computing MAP of a corresponding MRF (it is called an Energy minimization problem in the vision community) (Stereo, 3D Reconstruction, Segmentation, Image Restoration)

Image Segmentation and Graph Cuts An image segmentation problem can be interpreted as partitioning the image elements (pixels) into different categories. A Cut of a graph is a partition of the vertices in the graph into two disjoint subsets. By constructing a graph with an image, we can solve the segmentation problem using techniques for graph cuts in graph theory.

Energy minimization via Graph cut Simple Example : 2-label case E ij (0,0) + E ij (1,1) ≤ E ij (0,1) + E ij (1,0) If an pairwise Energy ftn is submodular, i.e. for all edge potentials, can compute Minimum energy and a corresponding labeling via Min Cut.

Min Cut problem 2–label minimization can be computed by solving max-flow (s-t cut) exactly in polynomial time. Multi-way cut is NP-Hard for ≥ 3 labels.  approximation algorithm for multi-label minimization.

Graph Cuts Partition the graph into two parts separating red and blue nodes s-t graph cut A graph with two terminals S and T “source” S T “sink” Cut cost is a sum of edge weights connecting two colors

Flow Network A flow network is defined as a directed graph G where an edge has a nonnegative capacity. A flow in G is a real-valued (often integer) function that satisfies the following three properties:  Capacity Constraint: For all  Skew Symmetry For all  Flow Conservation For all where s is the source, t is the sink node.

Graph Cuts & Network Flow The Max-flow Min-Cut Theorem If f is a maximum flow, | f | = c (S,T ) for some cut (S,T ) of G The cost of the minimum s-t cut = the maximum flow. Thus, we will find minimum s-t cuts in graphs by solving for max-flow.

Graph Cut based Segmentation n-links s t a cut hard constraint hard constraint User Guided Segmentation:

Ford-Fulkerson Algorithm Main Operation Starting from zero flow, increase the flow gradually by finding a path from s to t along which more flow can be sent, until a max-flow is achieved. The path for flow to be pushed through is called an augmenting path.

Ford-Fulkerson Algorithm The Ford-Fulkerson algorithm uses a residual network of flow in order to find the solution. The residual network is defined as the network of edges containing flow that remains after a fixed flow. For example, in the graph shown below, there is an initial path from the source to the sink, and the middle edge has a total capacity of 3, and a residual capacity of 3-1=2.

Algorithm Framework The basic Ford-Fulkerson algorithm for each edge do while there exists a path P from s to t in the residual network G f do c f (P) ← min{c f (u, v ): (u, v) is on P} for each edge (u, v) in P do

Algorithm Execution Example

Finding the Min-Cut After the max-flow is found, the minimum cut is determined by S = {all vertices reachable from s in the residual network} T = V-S

Ford-Fulkerson Algorithm Analysis The running time of the algorithm depends on how the aug menting path is determined. If the searching for augmenting path is realized by a breadth -first search, the algorithm runs in O ( E |f max | ). Under some extreme cases the efficiency of the algorithm can be reduced drastically. One example is shown in the figure be low, applying Ford-Fulkerson algorithm needs 400 iterations to get the max flow of 400.