CS6670: Computer Vision

Similar documents
What have we leaned so far?

CS4670 / 5670: Computer Vision Noah Snavely

CS4670: Computer Vision

CS4495/6495 Introduction to Computer Vision. 3B-L3 Stereo correspondence

Prof. Feng Liu. Spring /17/2017. With slides by F. Durand, Y.Y. Chuang, R. Raskar, and C.

Lecture 16 Segmentation and Scene understanding

Models for grids. Computer vision: models, learning and inference. Multi label Denoising. Binary Denoising. Denoising Goal.

s-t Graph Cuts for Binary Energy Minimization

Discrete Optimization Methods in Computer Vision CSE 6389 Slides by: Boykov Modified and Presented by: Mostafa Parchami Basic overview of graph cuts

Computer Vision : Exercise 4 Labelling Problems

intro, applications MRF, labeling... how it can be computed at all? Applications in segmentation: GraphCut, GrabCut, demos

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

Binocular stereo. Given a calibrated binocular stereo pair, fuse it to produce a depth image. Where does the depth information come from?

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

CS5670: Computer Vision

Fast Approximate Energy Minimization via Graph Cuts

Interactive segmentation, Combinatorial optimization. Filip Malmberg

Fundamental matrix. Let p be a point in left image, p in right image. Epipolar relation. Epipolar mapping described by a 3x3 matrix F

Multi-Label Moves for Multi-Label Energies

CAP5415-Computer Vision Lecture 13-Image/Video Segmentation Part II. Dr. Ulas Bagci

Comparison of Graph Cuts with Belief Propagation for Stereo, using Identical MRF Parameters

Regularization and Markov Random Fields (MRF) CS 664 Spring 2008

MULTI-REGION SEGMENTATION

Ninio, J. and Stevens, K. A. (2000) Variations on the Hermann grid: an extinction illusion. Perception, 29,

CS6670: Computer Vision

Graph Cuts vs. Level Sets. part I Basics of Graph Cuts

Stereo II CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

A Novel Image Classification Model Based on Contourlet Transform and Dynamic Fuzzy Graph Cuts

Chaplin, Modern Times, 1936

Final project bits and pieces

Markov/Conditional Random Fields, Graph Cut, and applications in Computer Vision

Combinatorial optimization and its applications in image Processing. Filip Malmberg

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923

Maximum flows and minimal cuts. Filip Malmberg

Introduction à la vision artificielle X

Markov Networks in Computer Vision

Markov Networks in Computer Vision. Sargur Srihari

Data Term. Michael Bleyer LVA Stereo Vision

Dr. Ulas Bagci

EE795: Computer Vision and Intelligent Systems

Mathematics in Image Processing

Graph Cuts. Srikumar Ramalingam School of Computing University of Utah

3D photography. Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/5/15

COMP 558 lecture 22 Dec. 1, 2010

Supplementary Material: Adaptive and Move Making Auxiliary Cuts for Binary Pairwise Energies

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 10: Medical Image Segmentation as an Energy Minimization Problem

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

Stereo Matching.

Evaluation of Different Methods for Using Colour Information in Global Stereo Matching Approaches

CS664 Lecture #21: SIFT, object recognition, dynamic programming

Targil 10 : Why Mosaic? Why is this a challenge? Exposure differences Scene illumination Miss-registration Moving objects

Image Based Reconstruction II

CS4670: Computer Vision Noah Snavely

Stereo. 11/02/2012 CS129, Brown James Hays. Slides by Kristen Grauman

Segmentation Based Stereo. Michael Bleyer LVA Stereo Vision

Stereo: Disparity and Matching

CS5670: Computer Vision

Stereo. Outline. Multiple views 3/29/2017. Thurs Mar 30 Kristen Grauman UT Austin. Multi-view geometry, matching, invariant features, stereo vision

Segmentation with non-linear constraints on appearance, complexity, and geometry

BIL Computer Vision Apr 16, 2014

Image Segmentation continued Graph Based Methods. Some slides: courtesy of O. Capms, Penn State, J.Ponce and D. Fortsyth, Computer Vision Book

Topics to be Covered in the Rest of the Semester. CSci 4968 and 6270 Computational Vision Lecture 15 Overview of Remainder of the Semester

Graphs, graph algorithms (for image segmentation),... in progress

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 10: Medical Image Segmentation as an Energy Minimization Problem

Approximate decoding: ICM, block methods, alpha-beta swap & alpha-expansion

Markov Random Fields and Segmentation with Graph Cuts

CSE 417 Network Flows (pt 3) Modeling with Min Cuts

Vision is inferential. (

Markov Random Fields with Efficient Approximations

CS4670: Computer Vision

Computer Vision I - Filtering and Feature detection

EE795: Computer Vision and Intelligent Systems

Computing Visual Correspondence with Occlusions via Graph Cuts

Combining Top-down and Bottom-up Segmentation

CS 664 Segmentation. Daniel Huttenlocher

Lecture 14: Computer Vision

Stereo Correspondence with Occlusions using Graph Cuts

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class

Image Segmentation. Lecture14: Image Segmentation. Sample Segmentation Results. Use of Image Segmentation

Geometric Reconstruction Dense reconstruction of scene geometry

Epipolar Geometry and Stereo Vision

Robotics Programming Laboratory

Introduction to Graph Theory

Stereo Vision II: Dense Stereo Matching

Final Review CMSC 733 Fall 2014

Stereo. Many slides adapted from Steve Seitz

Algorithms for Markov Random Fields in Computer Vision

CS 1674: Intro to Computer Vision. Midterm Review. Prof. Adriana Kovashka University of Pittsburgh October 10, 2016

Lecture 10: Multi view geometry

Graph Cuts in Vision and Graphics: Theories and Applications

Input. Output. Problem Definition. Rectified stereo image pair All correspondences lie in same scan lines

Stereo vision. Many slides adapted from Steve Seitz

Image Restoration using Markov Random Fields

Introduction to Computer Vision. Week 10, Winter 2010 Instructor: Prof. Ko Nishino

Efficient Belief Propagation for Early Vision

CS5670: Computer Vision

CSE 417 Network Flows (pt 4) Min Cost Flows

Applications. Foreground / background segmentation Finding skin-colored regions. Finding the moving objects. Intelligent scissors

Filtering and Enhancing Images

Robert Collins CSE486, Penn State. Lecture 09: Stereo Algorithms

Transcription:

CS6670: Computer Vision Noah Snavely Lecture 19: Graph Cuts source S sink T

Readings Szeliski, Chapter 11.2 11.5

Stereo results with window search problems in areas of uniform texture Window-based matching (best window size) Ground truth

Can we do better? What defines a good stereo correspondence? 1. Match quality Want each pixel to find a good match in the other image 2. Smoothness two adjacent pixels should (usually) move about the same amount

{ { Stereo as energy minimization Better objective function match cost Want each pixel to find a good match in the other image smoothness cost Adjacent pixels should (usually) move about the same amount

Dynamic programming Can minimize this independently per scanline using dynamic programming (DP) : minimum cost of solution such that d(x,y) = d

Dynamic Programming

Stereo as a minimization problem The 2D problem has many local minima Gradient descent doesn t work well Simulated annealing works a little better And a large search space n x m image w/ k disparities has k nm possible solutions Finding the global minimum is NP-hard Good approximations exist

First: denoising Suppose we want to find a bright object against a bright background, given a noisy image Input Best thresholded images

Second: binary segmentation Suppose we want to segment an image into foreground and background

{ { Binary segmentation as energy minimization Define a labeling L as an assignment of each pixel with a 0-1 label (background or foreground) Problem statement: find the labeling L that minimizes match cost ( how similar is each labeled pixel to the foreground / background? ) smoothness cost

: distance from pixel to background pixels : distance from pixel to foreground pixels { usually computed by creating a color model from user-labeled pixels

Neighboring pixels should generally have the same labels Unless the pixels have very different intensities : similarity in intensity of p and q = 10.0 = 0.1 (can use the same trick for stereo)

Binary segmentation as energy minimization For this problem, we can quickly find the globally optimal labelling! Use max flow / min cut algorithm

Graph min cut problem Given a weighted graph G with source and sink nodes (s and t), partition the nodes into two sets, S and T such that the sum of edge weights spanning the partition is minimized and s S and t T

Segmentation by min cut min cut t ( background ) s ( foreground ) Graph node for each pixel, link between adjacent pixels specify a few pixels as foreground and background create an infinite cost link from each bg pixel to the t node create an infinite cost link from each fg pixel to the s node create finite cost links from s and t to each other node compute min cut that separates s from t The min-cut max-flow theorem [Ford and Fulkerson 1956]

Segmentation by min cut min cut t s The partitions S and T formed by the min cut give the optimal foreground and background segmentation I.e., the resulting labels minimize

Stereo as energy minimization match cost: smoothness cost: : set of neighboring pixels 4-connected neighborhood 8-connected neighborhood

Smoothness cost last time: one possibility: quadratic and truncated quadratic models for V L 1 distance Potts model

Stereo as a labeling problem Can formulate as a (no longer binary) labeling problem with one label per disparity Can create similar setup as with segmentation, but with k source/sink nodes k = number of disparities Multi-source network flow problem Using the Potts model, the setup is straightforward

Energy minimization via graph cuts d 3 d 2 d 1 Graph Cut Delete enough edges so that each pixel is connected to exactly one label node Cost of a cut: sum of deleted edge weights Finding min cost cut equivalent to finding global minimum of energy function

Energy minimization via graph cuts edge weight d 3 d 2 d 1 Labels (disparities) edge weight

Computing a multiway cut With 2 labels: classical min-cut problem Solvable by standard flow algorithms polynomial time in theory, nearly linear in practice More than 2 terminals: NP-hard [Dahlhaus et al., STOC 92+ Efficient approximation algorithms exist Boykov, Veksler and Zabih, Fast Approximate Energy Minimization via Graph Cuts, ICCV 1999. Within a factor of 2 of optimal Computes local minimum in a strong sense even very large moves will not improve the energy

Move examples Idea: convert multi-way cut into a sequence of binary cut problems Red-blue swap move Starting point Green expansion move

The swap move algorithm 1. Start with an arbitrary labeling 2. Cycle through every label pair (A,B) in some order 2.1 Find the lowest E labeling within a single AB-swap 2.2 Go there if it s lower E than the current labeling 3. If E did not decrease in the cycle, we re done Otherwise, go to step 2 B A B A Original graph AB subgraph (run min-cut on this graph)

Results with window correlation normalized correlation (best window size) ground truth

Results with graph cuts graph cuts (Potts model, expansion move algorithm) ground truth

Other energy functions Can optimize other functions (exactly or approximately) with graph cuts

Questions?

Graph cuts in vision and graphics Texture synthesis Graphcut textures, *Kwatra, et al., 2003]

Interactive Digital Photo Montage

Other uses of graph cuts M. Uyttendaele, A. Eden, and R. Szeliski. Eliminating ghosting and exposure artifacts in image mosaics. In Proceedings of the Interational Conference on Computer Vision and Pattern Recognition, volume 2, pages 509--516, Kauai, Hawaii, December 2001.

Other uses of graph cuts M. Uyttendaele, A. Eden, and R. Szeliski. Eliminating ghosting and exposure artifacts in image mosaics. In Proceedings of the Interational Conference on Computer Vision and Pattern Recognition, volume 2, pages 509--516, Kauai, Hawaii, December 2001.