CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 26.

Slides:



Advertisements
Similar presentations
Graph cut Chien-chi Chen.
Advertisements

Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
Introduction to Markov Random Fields and Graph Cuts Simon Prince
Network Flow CS494/594 – Graph Theory Alexander Sayers.
CSE 421 Algorithms Richard Anderson Lecture 23 Network Flow Applications.
GrabCut Interactive Foreground Extraction using Iterated Graph Cuts Carsten Rother Vladimir Kolmogorov Andrew Blake Microsoft Research Cambridge-UK.
COMP 482: Design and Analysis of Algorithms
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.
Piyush Kumar (Lecture 6: MaxFlow MinCut Applications)
CSCI 256 Data Structures and Algorithm Analysis Lecture 18 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
CS448f: Image Processing For Photography and Vision Graph Cuts.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
7.7 Extensions to Max Flow. 2 Circulation with Demands Circulation with demands. n Directed graph G = (V, E). n Edge capacities c(e), e  E. n Node supply.
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
Applications of Network Flow Problem. 7.5 Bipartite Matching.
Stereo Computation using Iterative Graph-Cuts
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
Partitioning 1 Outline –What is Partitioning –Partitioning Example –Partitioning Theory –Partitioning Algorithms Goal –Understand partitioning problem.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
1.8 The Coordinate Plane.
CSEP 521 Applied Algorithms
Lesson 6.2 Properties of Chords
Parallel Lines and Proportional Parts By: Jacob Begay.
Graph Partitioning Problem Kernighan and Lin Algorithm
Advanced Algorithms Piyush Kumar (Lecture 4: MaxFlow MinCut Applications) Welcome to COT5405.
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.
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
Applications of the Max-Flow Min-Cut Theorem. S-T Cuts SF D H C A NY S = {SF, D, H}, T={C,A,NY} [S,T] = {(D,A),(D,C),(H,A)}, Cap [S,T] =
CSE 421 Algorithms Richard Anderson Lecture 26 Network Flow Applications.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 33.
Graph Cuts Marc Niethammer. Segmentation by Graph-Cuts A way to compute solutions to the optimization problems we looked at before. Example: Binary Segmentation.
Network Flow. Network flow formulation A network G = (V, E). Capacity c(u, v)  0 for edge (u, v). Assume c(u, v) = 0 if (u, v)  E. Source s and sink.
1.4 and 1.5 Quiz on Friday!. When two lines intersect, they intersect in a ___________ Point.
Warm-up Solve the following problems for x x – 5 = 2x 2.5x – 3 = 2x x – 7 = 4x - 3.
Objective: Students will use proportional parts of triangles and divide a segment into parts. S. Calahan 2008.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 12.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
CSCI 256 Data Structures and Algorithm Analysis Lecture 20 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
1 How to Multiply Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. integers, matrices, and polynomials.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 11.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 23.
 If three sides of one triangle are congruent to the three sides of another triangle, then the two triangles are congruent.  If AB = DE, BC = EF, AC.
Prof. Swarat Chaudhuri COMP 382: Reasoning about Algorithms Fall 2015.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Markov Random Fields in Vision
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 11.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 3.
The graph is neither Eulerian or Semi – Eulerian as it has 4 ODD vertices.
Algorithms Classroom Activities Richard Anderson University of Washington July 3, 20081IUCEE: Algorithm Activities.
Warm-up Solve the following problems for x x – 5 = 2x
6.2 Properties of Parallelograms
Nonparametric Semantic Segmentation
Maximum Flow 9/13/2018 6:12 PM Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015.
CSCI 3160 Design and Analysis of Algorithms Tutorial 8
Jan 2007.
Combinations COURSE 3 LESSON 11-3
Set up ratios: = = Fill in ratios: Solve the proportion: =
Enlargement Enlargement Centre (0,0) Scale factor 2.
Richard Anderson Lecture 23 Network Flow Applications
Richard Anderson Lecture 27 Network Flow Applications
Lecture 31: Graph-Based Image Segmentation
AB AC AD AE AF 5 ways If you used AB, then, there would be 4 remaining ODD vertices (C, D, E and F) CD CE CF 3 ways If you used CD, then, there.
Piyush Kumar (Lecture 6: MaxFlow MinCut Applications)
Kruskal’s Algorithm AQR.
Distance Formula d = √ (x1 – x2)2 + (y1 – y2)2, where d is the distance between the points (x1, y1) and (x2, y2).
Richard Anderson Lecture 23 Network Flow Applications
2.5 Similar Figures Essential Question: How can you determine if two figures are similar or not? Trapezoids ABCD and EFGH are congruent. Congruent: (same.
Homework Solutions.
Presentation transcript:

CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 26

Image segmentation –Central problem in image processing –Divide image into coherent regions –Very difficult problem in broad image domains Semantic gap Ex: Three people standing in front of complex background scene. Identify each person (and each object in the background) as a coherent object

Foreground / background segmentation Separate foreground from background

Foreground / background segmentation Label each pixel in picture as belonging to foreground or background V = set of pixels, E = pairs of neighboring pixels a i  0 is likelihood pixel i in foreground b i  0 is likelihood pixel i in background p ij  0 is separation penalty for labeling one of i and j as foreground, and the other as background

Foreground / background segmentation Goals –Accuracy: if a i > b i in isolation, prefer to label i in foreground –Smoothness: if many neighbors of i are labeled foreground, we should be inclined to label i as foreground –Find partition (A, B) that maximizes: foreground background

Formulate as min cut problem –Maximization –No source or sink –Undirected graph Turn into minimization problem –Maximizing –is equivalent to minimizing

Pixel graph to flow graph s t

G' = (V', E') Add source to correspond to foreground; add sink to correspond to background Use two anti-parallel edges instead of undirected edge p ij st ij ajaj G' bibi

Formulate as min cut problem Consider min cut (A, B) in G' –A = foreground –Precisely the quantity we want to minimize if i and j on different sides, p ij counted exactly once G' st ij A p ij bibi ajaj

Baseball elimination Can the Dinosaurs win the league? Remaining games: –AB, AC, AD, AD, AD, BC, BC, BC, BD, CD WL Ants42 Bees42 Cockroaches33 Dinosaurs15 A team wins the league if it has strictly more wins than any other team at the end of the season A team ties for first place if no team has more wins, and there is some other team with the same number of wins

Baseball elimination Can the Fruit Flies win the league? Remaining games: –AC, AD, AD, AD, AF, BC, BC, BC, BC, BC, BD, BE, BE, BE, BE, BF, CE, CE, CE, CF, CF, DE, DF, EF, EF WL Ants1712 Bees167 Cockroaches167 Dinosaurs1413 Earthworms1410 Fruit Flies1215

Assume Fruit Flies win remaining games Fruit Flies are tied for first place if no team wins more than 19 games Allowable wins –Ants (2) –Bees (3) –Cockroaches (3) –Dinosaurs (5) –Earthworms (5) 18 games to play –AC, AD, AD, AD, BC, BC, BC, BC, BC, BD, BE, BE, BE, BE, CE, CE, CE, DE WL Ants1713 Bees168 Cockroaches169 Dinosaurs14 Earthworms1412 Fruit Flies1915

Remaining games AC, AD, AD, AD, BC, BC, BC, BC, BC, BD, BE, BE, BE, BE, CE, CE, CE, DE s ACADBCBDBE CE ABCD E T DE