Jonathan Dinger 1. Traffic footage example 2  Important step in video analysis  Background subtraction is often used 3.

Slides:



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

Lecture 5: Network Flow Algorithms Max-Flow Min-Cut Single-Source Shortest-Path (SSSP) Job Sequencing.
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.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
Interactive Shortest Path An Image Segmentation Technique Jonathan-Lee Jones.
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)
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.
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
Advanced Algorithm Design and Analysis (Lecture 8) SW5 fall 2004 Simonas Šaltenis E1-215b
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
CS448f: Image Processing For Photography and Vision Graph Cuts.
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
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)
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2001 Lecture 4 Tuesday, 2/19/02 Graph Algorithms: Part 2 Network.
Robust Object Segmentation Using Adaptive Thresholding Xiaxi Huang and Nikolaos V. Boulgouris International Conference on Image Processing 2007.
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.
Semi-automatic Foreground Extraction Martin & Andreas.
MRF Labeling With Graph Cut CMPUT 615 Nilanjan Ray.
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
Comp 775: Graph Cuts and Continuous Maximal Flows Marc Niethammer, Stephen Pizer Department of Computer Science University of North Carolina, Chapel Hill.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2004 Lecture 5 Wednesday, 10/6/04 Graph Algorithms: Part 2.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
CSE554Binary PicturesSlide 1 CSE 554 Lecture 1: Binary Pictures Fall 2014.
1. cluster the data. 2. for the data of a cluster, set up the network. 3. begin at a random vertex as source/sink s, choose its farthest vertex as the.
Maximum Flow Chapter 26.
Advanced Algorithms Piyush Kumar (Lecture 4: MaxFlow MinCut Applications) Welcome to COT5405.
Graph Cut 韋弘 2010/2/22. Outline Background Graph cut Ford–Fulkerson algorithm Application Extended reading.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
Lecture 5: Network Flow Algorithms Single-Source Shortest-Path (SSSP) (Dijkstra's Algorithm) Max Flow - Min Cut (Ford-Fulkerson) Job Sequencing.
Graph Cuts Marc Niethammer. Segmentation by Graph-Cuts A way to compute solutions to the optimization problems we looked at before. Example: Binary Segmentation.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
1 Markov Random Fields with Efficient Approximations Yuri Boykov, Olga Veksler, Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
MAX FLOW APPLICATIONS CS302, Spring 2012 David Kauchak.
Presenter : Kuang-Jui Hsu Date : 2011/3/24(Thur.).
Homework - hints Problem 1. Node weights  Edge weights
Algorithm Design and Analysis (ADA)
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
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.
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 
Prof. Swarat Chaudhuri COMP 382: Reasoning about Algorithms Fall 2015.
Theory of Computing Lecture 12 MAS 714 Hartmut Klauck.
Iterative Improvement for Domain-Specific Problems Lecturer: Jing Liu Homepage:
A directed graph G consists of a set V of vertices and a set E of arcs where each arc in E is associated with an ordered pair of vertices from V. V={0,
Hebrew University Image Processing Exercise Class 8 Panoramas – Stitching and Blending Min-Cut Stitching Many slides from Alexei Efros.
CIVET seminar Presentation day: Presenter : Park, GilSoon.
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
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
CSE 554 Lecture 1: Binary Pictures
Finding a Path With Largest Smallest Edge
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.
Graph Cut Weizhen Jing
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 21 Network Flow
Piyush Kumar (Lecture 6: MaxFlow MinCut Applications)
Algorithms (2IL15) – Lecture 7
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
Network Flow.
Lecture 21 Network Flow, Part 1
Network Flow.
Richard Anderson Lecture 22 Network Flow
Presentation transcript:

Jonathan Dinger 1

Traffic footage example 2

 Important step in video analysis  Background subtraction is often used 3

 Uses pixelwise computations  Performance could be better  Better segmentation = better traffic detection 4

 Use interaction between neighboring pixels  Keep objects segmented together  Better segmentations 5

 G = (V,E)  Two vertices in V called source and sink ◦ s and t, respectively  Remaining vertices called M  Vertices in M connected to both s and t (T-links)  Vertices in M connected to neighboring vertices (N-links) 6

 T-links are uni-directional  N-links are bi-directional  Each edge has a weight ◦ also known as a capacity  Each pixel has its own vertex 7

 Path ◦ List of vertices connected by edges  s-t cut ◦ Removal of edges such that all vertices have a path to either the source or the sink, but not both  Flow ◦ Each edge has a capacity ◦ That much flow can be pushed through each edge ◦ Flow through a graph is the cumulative amount of flow going from the source to the sink 8

 Minimum cut/maximum flow ◦ A cut with the smallest cost (weight) ◦ Maximum flow that can be pushed from source to sink (capacity) ◦ By max-flow min-cut theorem, these are equal  Graph cuts ◦ Minimum cut on a graph 9

 Method to find maximum flow  Augmenting path ◦ Path where flow can be increased in all edges between vertices in path  Run search 1.Find augmenting path from source to sink 2.Add more flow to that path 3.Loop back to 1. 10

Step 1.Step 2. Step 3.Step 4. 11

Step 5.Step 6. Step 7.Step 8. 12

 Two separate implementations ◦ Our implementation ◦ Kolmogorov’s implementation v3.01.src.tar.gz 13

 Downsampled images  Cut performed over smaller area  Then upsample, and perform cut over band  Faster than graph cuts  Less detailed than graph cuts 14

15

 Downsampling images loses information  Use Laplacian pyramid to store lost data  Computes difference between image and image gained by downsampling and upsampling again  Add back some of the lost detail ◦ Resegment in areas where detail was lost 16

17

 BGC faster, less accurate  GC slightly slower, more accurate Graph cutBanded graph cut 18

 3 or more labels  α-β swap ◦ Loop through label pairs ◦ Run graph cut on current pair of labels  If current label of a pixel is not one of the pair, do not use pixel in graph cut ◦ Graph cuts will swap some pixels with label α to label β and vice versa 19

 Graph cut on each image  Background image computed per pixel ◦ N is the number of images, x i is the grayscale value of the current pixel, and μ is the average grayscale value over all image frames 20

 Find variance of each pixel  N, x i, and μ are as above  σ 2 is the variance  Threshold the variance  If variance is below the threshold, do not include pixel in graph cut ◦ Assume non-varying pixels are background pixels ◦ Avoid divide-by-zero errors in weights 21

 Exponentials  x is the grayscale value of the current pixel ◦ μ and σ 2 are as above  β is a constant that forces the two functions to be equal at α standard deviations 22

 Absolute differences  x and μ are as above  L is the maximum possible distance between x and μ, so for grayscale images  K is a shift constant that forces f 3 and f 4 to be equal at α standard deviations 23

 Simple Grayscale Differences  x is the grayscale value of the pixel. C m and C n are two grayscale values used as a basis for segmentation 24

 Distance ◦ Euclidean distance between two neighboring pixels with coordinates (x 1, y 1 ) and (x 2, y 2 )  Smoothing (similarity) ◦ x and y are the grayscale values of two neighboring pixels. ◦ is the maximum possible difference between the pixel values ◦ γ is a modifier that defines the amount of smoothing that takes place 25

ImageGraph cutBanded graph cut Augmented BGCOur graph cutMulti-way cut 26

Computing times for cut results in milliseconds (ms) 27

ImageBackgroundVariance Exponential cutAbsolute difference cut 28

ExponentialImageAbsolute difference 29

ExponentialImageAbsolute difference 30

ExponentialImageBackground subtraction 31

ExponentialImageAbsolute difference 32

ExponentialImageAbsolute difference 33

Absolute differenceImageBackground subtraction 34

35 ImageGraph cutBackground Subtraction

 Segmentation performance without smoothing comparable to background subtraction ◦ Background subtraction is faster, easier  Smoothing model ◦ Segments larger pieces of vehicles into one section ◦ Vehicle segmentations more “solid”  Absolute difference T-link weights combined with smoothing N-link weights give best results 36

 Use multi-way cuts to add shadow segmentation  Extend to RGB 37