Lecture 19: Solving the Correspondence Problem with Graph Cuts CAP 5415 Fall 2006.

Slides:



Advertisements
Similar presentations
Algorithms for MAP estimation in Markov Random Fields Vladimir Kolmogorov University College London Tutorial at GDR (Optimisation Discrète, Graph Cuts.
Advertisements

Neural and Evolutionary Computing - Lecture 4 1 Random Search Algorithms. Simulated Annealing Motivation Simple Random Search Algorithms Simulated Annealing.
Graph Cut Algorithms for Computer Vision & Medical Imaging Ramin Zabih Computer Science & Radiology Cornell University Joint work with Y. Boykov, V. Kolmogorov,
Introduction to Markov Random Fields and Graph Cuts Simon Prince
Stereo Vision Reading: Chapter 11
Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923.
Online Social Networks and Media. Graph partitioning The general problem – Input: a graph G=(V,E) edge (u,v) denotes similarity between u and v weighted.
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:
The University of Ontario CS 4487/9687 Algorithms for Image Analysis Multi-Label Image Analysis Problems.
Graph-Based Image Segmentation
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.
Learning with Inference for Discrete Graphical Models Nikos Komodakis Pawan Kumar Nikos Paragios Ramin Zabih (presenter)
Snakes - Active Contour Lecturer: Hagit Hel-Or
Markov Random Fields (MRF)
Optimal solution of binary problems Much material taken from :  Olga Veksler, University of Western Ontario
Last Time Pinhole camera model, projection
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
More on Stereo. Outline Fast window-based correlationFast window-based correlation DiffusionDiffusion Energy minimizationEnergy minimization Graph cutsGraph.
P 3 & Beyond Solving Energies with Higher Order Cliques Pushmeet Kohli Pawan Kumar Philip H. S. Torr Oxford Brookes University CVPR 2007.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
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-
1 Computer Vision Research  Huttenlocher, Zabih –Recognition, stereopsis, restoration, learning  Strong algorithmic focus –Combinatorial optimization.
Stereo & Iterative Graph-Cuts Alex Rav-Acha Vision Course Hebrew University.
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
The plan for today Camera matrix
Announcements Readings for today:
Lecture 10: Stereo and Graph Cuts
Stereo Computation using Iterative Graph-Cuts
Lecture 11: Stereo and optical flow CS6670: Computer Vision Noah Snavely.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
Computer vision: models, learning and inference
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Partitioning 1 Outline –What is Partitioning –Partitioning Example –Partitioning Theory –Partitioning Algorithms Goal –Understand partitioning problem.
Graph-based Segmentation
Image Renaissance Using Discrete Optimization Cédric AllèneNikos Paragios ENPC – CERTIS ESIEE – A²SI ECP - MAS France.
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/31/15.
Fast Approximate Energy Minimization via Graph Cuts
A Selective Overview of Graph Cut Energy Minimization Algorithms Ramin Zabih Computer Science Department Cornell University Joint work with Yuri Boykov,
Michael Bleyer LVA Stereo Vision
Graph Cut & Energy Minimization
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/24/10.
Graph Cut Algorithms for Binocular Stereo with Occlusions
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
Interactive Graph Cuts for Optimal Boundary & Region Segmentation of Objects in N-D Images (Fri) Young Ki Baik, Computer Vision Lab.
Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
Lecture 26: Single-Image Super-Resolution CAP 5415.
Graph Cuts Marc Niethammer. Segmentation by Graph-Cuts A way to compute solutions to the optimization problems we looked at before. Example: Binary Segmentation.
CS 4487/6587 Algorithms for Image Analysis
Feature-Based Stereo Matching Using Graph Cuts Gorkem Saygili, Laurens van der Maaten, Emile A. Hendriks ASCI Conference 2011.
Computer Vision, Robert Pless
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.
Presenter : Kuang-Jui Hsu Date : 2011/3/24(Thur.).
Gaussian Mixture Models and Expectation-Maximization Algorithm.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Machine Learning – Lecture 15
Machine learning optimization Usman Roshan. Machine learning Two components: – Modeling – Optimization Modeling – Generative: we assume a probabilistic.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
Graph Algorithms for Vision Amy Gale November 5, 2002.
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
Photoconsistency constraint C2 q C1 p l = 2 l = 3 Depth labels If this 3D point is visible in both cameras, pixels p and q should have similar intensities.
Markov Random Fields in Vision
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.
Energy minimization Another global approach to improve quality of correspondences Assumption: disparities vary (mostly) smoothly Minimize energy function:
Markov Random Fields with Efficient Approximations
STEREO MATCHING USING POPULATION-BASED MCMC
Geometry 3: Stereo Reconstruction
Haim Kaplan and Uri Zwick
Lecture 31: Graph-Based Image Segmentation
Presentation transcript:

Lecture 19: Solving the Correspondence Problem with Graph Cuts CAP 5415 Fall 2006

Announcements PS4  Only need to search over a limited number of disparities Schedule Changes Project Proposals due next Monday Class canceled on Wednesday Will have class on November 22

Stereo Once we have rectified images, the hard problem is find the corresponding points Then we can triangulate Known as the correspondence problem When people say “stereo algorithm”, they usually mean “correspondence algorithm”

A very simple algorithm To find the point that matches this point

A very simple algorithm Look at a square window around that point and compare it to windows in the other image Could measure sum of squared differences (SSD) or correlation

What's wrong with this algorithm? This set of correspondences don't bother it Areas of the image without texture will be a problem for this algorithm.

To do better we need a better model of images We can make reasonable assumptions about the surfaces in the world Usually assume that the surfaces are smooth Can pose the problem of finding the corresponding points as an energy (or cost) minimization The data term measures how well the local windows match up for different disparities

The smoothness cost The smoothness is usually implemented by penalizing differences in the disparity Different penalty functions lead to different assumptions about the surfaces  log(1+x^2)  x^2  First deriv, Second derivative

Today Assuming that there a discrete set of possible disparities How do we optimize this?

Today I'll be talking about the Graph Cuts algorithm Very popular Used heavily in vision and graphics Paper: “Fast Approximate Energy Minimization Notation for the rest of the lecture

Simple Way to Optimize - ICM Choose a pixel Fix the disparities at the rest of the pixels Set the pixel to the optimal disparity Iterate

ICM Advantages  Energy always guaranteed to decrease  Easy to code Disadvantages  Convergence  Can you think of the big on?

Making Bigger Moves The problem with ICM is that you can only modify one pixel at a time Get stuck in local minima easily We need a way of moving multiple pixels at once Boykov, Veksler and Zabih introduced two types of moves:  alpha-beta swap  alpha-expansion

Types of Moves ICM – One pixel moves (From BKZ-PAMI 01)

alpha-beta swap Fix all nodes that aren't labeled alpha or beta With remaining nodes, find optimal swap  Some alpha nodes change to beta  Vice Versa  Some stay the same (From BKZ-PAMI 01)

alpha-expansion Any node can change to alpha (From BKZ-PAMI 01)

Basic Algorithm ICM:  Compute one-pixel moves until convergence Graph Cuts:  Compute swaps (or expansions) until convergence Since the optimal swap is being computed each time, energy always decreases

Important Question How do we find the swaps? Use min-cut from graphs Slightly different from the min-cut problem that we discussed in the context of normalized cuts Terminal Node

Minimum Cut A cut is a set of edges that we will remove so that the terminal nodes are separated If a cost is assigned to each edge, the cost of the cut is the weight assigned to each edge Minimum Cut can be found in polynomial time (Ford and Fulkerson) Terminal Node

Important Rule No proper subset of the cut can also be a cut This is not a minimum cut Terminal Node

Using the minimum-cut to find a swap Consider a 1-D image Terminal Node (From BKZ-PAMI 01)

Can guarantee that every node will have at least one t-link (From BKZ-PAMI 01)

How to see that (From BKZ-PAMI 01)

Actually Computing the Min-Cut Could use code to solve general min-cut problems Boykov and Kolmogorov have released an algorithm optimized for vision problems

Expansion Move The difference between the optimal solution and the solution from the expansion move is bounded

What functions can be minimized using graph cuts V is called a metric if it obeys all 3  Can use Expansion Moves V is called a semimetric if it obeys the last two  Can only use Swap-Moves Subject of recent research.

Graph-Cuts has been shown to perform very well

From “A Comparative Study of Energy Minimization Methods for Markov Random Fields”

Used for much more than just stereo