Yuri Boykov, UWO 1: Basics of optimization-based segmentation - continuous and discrete approaches 2 : Exact and approximate techniques - non-submodular.

Slides:



Advertisements
Similar presentations
Active Contours without Edges
Advertisements

TP11 - Fitting: Deformable contours Computer Vision, FCUP, Miguel Coimbra Slides by Prof. Kristen Grauman.
Unsupervised Learning Clustering K-Means. Recall: Key Components of Intelligent Agents Representation Language: Graph, Bayes Nets, Linear functions Inference.
MRI Brain Extraction using a Graph Cut based Active Contour Model Noha Youssry El-Zehiry Noha Youssry El-Zehiry and Adel S. Elmaghraby Computer Engineering.
Active Contours, Level Sets, and Image Segmentation
Lena Gorelick Joint work with Frank Schmidt and Yuri Boykov Rochester Institute of Technology, Center of Imaging Science January 2013 TexPoint fonts used.
Medical Image Segmentation: Beyond Level Sets (Ismail’s part) 1.
CS 4487/9587 Algorithms for Image Analysis
ICCV 2007 tutorial on Discrete Optimization Methods in Computer Vision part I Basic overview of graph cuts.
C. Olsson Higher-order and/or non-submodular optimization: Yuri Boykov jointly with Western University Canada O. Veksler Andrew Delong L. Gorelick C. NieuwenhuisE.
GrabCut Interactive Foreground Extraction using Iterated Graph Cuts Carsten Rother Vladimir Kolmogorov Andrew Blake Microsoft Research Cambridge-UK.
Stephen J. Guy 1. Photomontage Photomontage GrabCut – Interactive Foreground Extraction 1.
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.
GrabCut Interactive Image (and Stereo) Segmentation Joon Jae Lee Keimyung University Welcome. I will present Grabcut – an Interactive tool for foreground.
Pseudo-Bound Optimization for Binary Energies Presenter: Meng Tang Joint work with Ismail Ben AyedYuri Boykov 1 / 27.
Image Segmentation some examples Zhiqiang wang
Image Segmentation and Active Contour
Active Contours / Planes Sebastian Thrun, Gary Bradski, Daniel Russakoff Stanford CS223B Computer Vision Some slides.
Active Contours (SNAKES) Back to boundary detection –This time using perceptual grouping. This is non-parametric –We’re not looking for a contour of a.
Snakes with Some Math.
1 Minimum Ratio Contours For Meshes Andrew Clements Hao Zhang gruvi graphics + usability + visualization.
Corp. Research Princeton, NJ Computing geodesics and minimal surfaces via graph cuts Yuri Boykov, Siemens Research, Princeton, NJ joint work with Vladimir.
Deformable Contours Dr. E. Ribeiro.
Corp. Research Princeton, NJ Cut Metrics and Geometry of Grid Graphs Yuri Boykov, Siemens Research, Princeton, NJ joint work with Vladimir Kolmogorov,
Silhouettes in Multiview Stereo Ian Simon. Multiview Stereo Problem Input: – a collection of images of a rigid object (or scene) – camera parameters for.
Lecture 6 Image Segmentation
The University of Ontario University of Bonn July 2008 Optimization of surface functionals using graph cut algorithms Yuri Boykov presenting joint work.
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-
Snakes Goes from edges to boundaries. Edge is strong change in intensity. Boundary is boundary of an object. –Smooth (more or less) –Closed. –…
Comp 775: Deformable models: snakes and active contours Marc Niethammer, Stephen Pizer Department of Computer Science University of North Carolina, Chapel.
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.
Image Segmentation Today’s Readings Forsyth & Ponce, Chapter 14
Graph-based Segmentation
Chapter 5 Segmentation Presenter: 蘇唯誠
Image Renaissance Using Discrete Optimization Cédric AllèneNikos Paragios ENPC – CERTIS ESIEE – A²SI ECP - MAS France.
S I E M E N S C O R P O R A T E R E S E A R C H 1 1 Computing Exact Discrete Minimal Surfaces: Extending and Solving the Shortest Path Problem in 3D with.
Fitting: Deformable contours Tuesday, September 24 th 2013 Devi Parikh Virginia Tech 1 Slide credit: Kristen Grauman Disclaimer: Many slides have been.
1 PDE Methods are Not Necessarily Level Set Methods Allen Tannenbaum Georgia Institute of Technology Emory University.
Deformable Models Segmentation methods until now (no knowledge of shape: Thresholding Edge based Region based Deformable models Knowledge of the shape.
MRFs and Segmentation with Graph Cuts Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/24/10.
7.1. Mean Shift Segmentation Idea of mean shift:
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.
Object Stereo- Joint Stereo Matching and Object Segmentation Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on Michael Bleyer Vienna.
The University of Ontario How to fit a surface to a point cloud? or optimization of surface functionals in computer vision Yuri Boykov TRICS seminar Computer.
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
Auxiliary Cuts for General Classes of Higher-Order Functionals 1 Ismail Ben Ayed, Lena Gorelick and Yuri Boykov.
Lecture 19: Solving the Correspondence Problem with Graph Cuts CAP 5415 Fall 2006.
Gaussian Mixture Models and Expectation-Maximization Algorithm.
CS 641 Term project Level-set based segmentation algorithms Presented by- Karthik Alavala (under the guidance of Dr. Jundong Liu)
Machine Learning – Lecture 15
Yuri Boykov jointly with
Pseudo-Bound Optimization for Binary Energies Meng Tang 1 Ismail Ben Ayed 2 Yuri Boykov 1 1 University of Western Ontario, Canada 2 GE Healthcare Canada.
The University of Ontario From photohulls to photoflux optimization Yuri Boykov University of Western Ontario Victor Lempitsky Moscow State University.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
Dynamic Programming (DP), Shortest Paths (SP)
Segmentation with non-linear constraints on appearance, complexity, and geometry Yuri Boykov Western Univesity Andrew Delong Olga Veksler Lena Gorelick.
Chapter 5 Segmentation 周立晴 d Movie Special effects.
Energy minimization Another global approach to improve quality of correspondences Assumption: disparities vary (mostly) smoothly Minimize energy function:
The University of Ontario CS 4487/9687 Algorithms for Image Analysis Combining Color and Boundary and other extensions (graph cuts)
TP11 - Fitting: Deformable contours
Secrets of GrabCut and Kernel K-means
Graph Cut Weizhen Jing
Normalized Cut meets MRF
Snakes, Shapes, and Gradient Vector Flow
Segmentation (continued)
Discrete Optimization Methods Basic overview of graph cuts
Presentation transcript:

Yuri Boykov, UWO 1: Basics of optimization-based segmentation - continuous and discrete approaches 2 : Exact and approximate techniques - non-submodular and high-order problems 3: Multi-region segmentation (Milan) - high-dimensional applications Tutorial on Medical Image Segmentation: Beyond Level-Sets MICCAI, 2014 Western University Canada

Yuri Boykov, UWO Introduction to Image Segmentation n implicit/explicit representation of boundaries active contours, level-sets, graph cut, etc. n Basic low-order objective functions (energies) physics, geometry, statistics, information theory n Set functions, submodularity Exact methods n Approximation methods Higher-order and non-submodular objectives Comparison to gradient descent (level-sets) Part 1 Part 2

Yuri Boykov, UWO Thresholding T

Yuri Boykov, UWO Thresholding S={ p :  I p < T } T

Yuri Boykov, UWO Background Subtraction ? Thresholding - = I= I obj - I bkg Threshold intensities above T better segmentation?

Yuri Boykov, UWO Good segmentation S ? n Objective function must be specified Quality function Cost function Loss function E(S) : 2 P   “Energy” Regularization functional Segmentation becomes an optimization problem: S = arg min E(S)

Yuri Boykov, UWO Good segmentation S ? combining different constraints e.g. on region and boundary n Objective function must be specified Quality function Cost function Loss function E(S) = E 1 (S)+…+ E n (S) “Energy” Regularization functional Segmentation becomes an optimization problem: S = arg min E(S)

Yuri Boykov, UWO Beyond linear combination of terms n Ratios are also used Normalized cuts [Shi, Malik, 2000] Minimum Ratio cycles [Jarmin Ishkawa, 2001] Ratio regions [Cox et al, 1996] Parametric max-flow applications [Kolmogorov et al 2007] Not in this tutorial

Yuri Boykov, UWO Segmentation principles n Boundary seeds Livewire (intelligent scissors) n Region seeds Graph cuts (intelligent paint) Distance (Voronoi-like cells) n Bounding box Grabcut [Rother et al] n Center seeds Star shape [Veksler] n Many other options… n Normalized cuts [Shi Malik] n Mean-shift [Comaniciu] n MDL [Zhu&Yuille] n Entropy of appearance interactive vs. unsupervised n Add enough constraints: n Saliency n Shape n Known appearance n Texture

Yuri Boykov, UWO n Boundary seeds Livewire (intelligent scissors) n Region seeds Graph cuts (intelligent paint) Distance (Voronoi-like cells) n Bounding box Grabcut [Rother et al] n Center seeds Star shape [Veksler] n Many other options… n Normalized cuts [Shi Malik] n Mean-shift [Comaniciu] n MDL [Zhu&Yuille] n Entropy of appearance interactive vs. unsupervised n Add enough constraints: n Saliency n Shape n Known appearance n Texture 1. We won’t cover everything… 2. We will not emphasize the differences between interactive and unsupervised (too easy to convert one into the other)

Yuri Boykov, UWO optimization-based Common segmentation techniques region-growing intelligent scissors (live-wire) active contours (snakes) watersheds boundary-based region-based both region & boundary thresholding geodesic active contours (e.g. level-sets) MRF (e.g. graph-cuts) random walker

Yuri Boykov, UWO Common surface representations mesh level-sets graph labeling on complex on grid point cloud labeling continuous optimization mixed optimization combinatorial optimization

Yuri Boykov, UWO Active contours (e.g. snakes) [Kass, Witkin, Terzopoulos 1987] Given: initial contour (model) near desirable object Goal: evolve the contour to fit exact object boundary

Yuri Boykov, UWO 5-14 Tracking via active contours Tracking Heart Ventricles

Yuri Boykov, UWO 5-15 Active contours - snakes Parametric Curve Representation (continuous case) A curve can be represented by 2 functions open curve closed curve parameter

Yuri Boykov, UWO 5-16 Snake Energy internal energy encourages smoothness or any particular shape external energy encourages curve onto image structures (e.g. image edges)

Yuri Boykov, UWO 5-17 Active contours - snakes (continuous case) n internal energy (physics of elastic band) n external energy (from image) elasticity / stretching stiffness / bending proximity to image edges

Yuri Boykov, UWO Active contours – snakes (discrete case) elastic energy (elasticity) bending energy (stiffness)

Yuri Boykov, UWO 5-19 Basic Elastic Snake continuous case discrete case elastic smoothness term (interior energy) image data term (exterior energy)

Yuri Boykov, UWO 5-20 Snakes - gradient descent simple elastic snake energy update equation for the whole snake C here, energy is a function of 2n variables C

Yuri Boykov, UWO 5-21 Snakes - gradient descent simple elastic snake energy update equation for each node C here, energy is a function of 2n variables C

Yuri Boykov, UWO 5-22 Snakes - gradient descent energy function E(C) for contours C E(C) gradient descent steps local minima for E(C) second derivative of image intensities step size could be tricky

Yuri Boykov, UWO Implicit (region-based) surface representation via level-sets (implicit contour representation) [Dervieux, Thomasset, 79, 81] [Osher, Sethian, 89]

Yuri Boykov, UWO Implicit (region-based) surface representation via level-sets [Dervieux, Thomasset, 79, 81] [Osher, Sethian, 89] The scaling by is easily verified in one dimension Normal contour motion can be represented by evolution of level-set function u Note 2: - level sets can not represent tangential motion of contour points ??? Note 1: - commonly used for gradient descent evolution

Yuri Boykov, UWO Tangential vs. normal motion of contour points - normal motion of a contour point visibly changes shape (geometry) - tangential motion generates no “visible” shape change A simple example of tangential motion of contour points (rotation) A simple example of normal motion of contour points (expansion) Comments: - geometric “energy” of a contour measures “visible” shape properties (length, curvature, area, e.t.c.). Thus, gradient descent w.r.t. geometric objective generates only ”visible” (normal) motion. - level sets can represent contour gradient descent evolution only for geometric “energies” E(C) (s.t.  E is collinear with contour normal ) Level sets (implicit contour representation) Geodesic active contours

Yuri Boykov, UWO Tangential vs. normal motion of contour points - normal motion of a contour point visibly changes shape (geometry) - tangential motion generates no “visible” shape change Parametric contours (explicit contour representation) Physics-based active contours Comments: - gradient descent for physics-based “energy” of a contour (e.g. elasticity) may produce geometrically “invisible” tangential motion of contour points - physics-based energy of a contour depends on its parameterization, while geometrically it could be the same contour (compare two shapes above) Q: in what medical applications tangential motion of segment boundary matters?

Yuri Boykov, UWO mesh level-sets continuous optimization Physics vs. Geometry snakes, balloons, active contours explicit or parametric contour representation physics-based objectives (typically) gradient descent could use dynamic programming in 2D geodesic active contours implicit or non-parametric representation geometry-based objectives gradient descent can use convex formulations (TV-based) [Amini, Weymouth, Jain, 1990] [Chan, Esidoglu, Nikolova 2006]

Yuri Boykov, UWO weighted length Functional E( C ) weighted area flux Most common geometric functionals for segmentation with level-sets (boundary alignment to intensity edges) (region alignment to appearance model) (oriented boundary alignment) or

Yuri Boykov, UWO weighted length Functional E( C ) weighted area flux Most common geometric functionals for segmentation with level-sets (boundary alignment to intensity edges) (region alignment to appearance model) (oriented boundary alignment) or

Yuri Boykov, UWO Towards discrete geometry: weighted boundary length on a graph [Barrett and Mortensen 1996] |  I| image-based edge weights pixels A B shortest path algorithm (Dijkstra) “Live wire” or “intelligent scissors”

Yuri Boykov, UWO Shortest paths approach shortest path on a 2D graph graph cut Example: find the shortest closed contour in a given domain of a graph Compute the shortest path p ->p for a point p. p Graph Cuts approach Compute the minimum cut that separates red region from blue region Repeat for all points on the gray line. Then choose the optimal contour.

Yuri Boykov, UWO graph cuts vs. shortest paths n On 2D grids graph cuts and shortest paths give optimal 1D contours. A Cut separates regions A B A Path connects points n Shortest paths still give optimal 1-D contours on N-D grids n Min-cuts give optimal hyper-surfaces on N-D grids

Yuri Boykov, UWO Graph cut n-links s t a cut hard constraint hard constraint Minimum cost cut can be computed in polynomial time (max-flow/min-cut algorithms) [Boykov and Jolly 2001]

Yuri Boykov, UWO Minimum s-t cuts algorithms  Augmenting paths [Ford & Fulkerson, 1962] - heuristically tuned to grids [Boykov&Kolmogorov 2003]  Push-relabel [Goldberg-Tarjan, 1986] - good choice for denser grids, e.g. in 3D  Preflow [Hochbaum, 2003] - also competitive

Yuri Boykov, UWO Optimal boundary in 2D “max-flow = min-cut”

Yuri Boykov, UWO Optimal boundary in 3D 3D bone segmentation (real time screen capture, year 2000)

Yuri Boykov, UWO ‘Smoothness’ of segmentation boundary - snakes (physics-based contours) - geodesic contours (geometry) - graph cuts NOTE: many distance-to-seed methods optimize segmentation boundary only indirectly, they compute some analogue of optimum Voronoi cells [fuzzy connectivity, random walker, geodesic Voronoi cells, etc.] (discrete geometry)

Yuri Boykov, UWO Discrete vs. continuous boundary cost Geodesic contours Both incorporate segmentation boundary smoothness and alignment to image edges Graph cuts [Caselles, Kimmel, Sapiro, 1997] (level-sets) [Boykov and Jolly 2001] C [Chan, Esidoglu, Nikolova, 2006] (convex) [Boykov and Kolmogorov 2003]

Yuri Boykov, UWO Graph cuts on a grid and boundary of S n Severed n-links can approximate geometric length of contour C [Boykov&Kolmogorov, ICCV 2003] n This result fundamentally relies on ideas of Integral Geometry (also known as Probabilistic Geometry) originally developed in 1930’s. e.g. Blaschke, Santalo, Gelfand

Yuri Boykov, UWO Integral geometry approach to length C a set of all lines L a subset of lines L intersecting contour C Euclidean length of C : the number of times line L intersects C Cauchy-Crofton formula probability that a “randomly drown” line intersects C

Yuri Boykov, UWO Graph cuts and integral geometry C Euclidean length graph cut cost for edge weights: the number of edges of family k intersecting C Edges of any regular neighborhood system generate families of lines {,,, } Graph nodes are imbedded in R2 in a grid-like fashion Length can be estimated without computing any derivatives

Yuri Boykov, UWO Metrication errors “standard” 4-neighborhoods (Manhattan metric) larger-neighborhoods8-neighborhoods Euclidean metric Riemannian metric

Yuri Boykov, UWO Metrication errors 4-neighborhood 8-neighborhood

Yuri Boykov, UWO implicit (region-based) representation of contours Differential vs. integral approach to geometric boundary length Cauchy-Crofton formula Integral geometry Differential geometry Parametric (explicit) contour representation Level-set function representation

Yuri Boykov, UWO A contour may be approximated from u(x,y) with sub- pixel accuracy C Level set function u(p) is normally stored on image pixels Values of u(p) can be interpreted as distances or heights of image pixels Implicit (region-based) surface representation via level-sets

Yuri Boykov, UWO Implicit (region-based) surface representation via graph-cuts Graph cuts represent surfaces via binary labeling S p of each graph node Binary values of S p indicate interior or exterior points (e.g. pixel centers) There are many contours satisfying interior/exterior labeling of points Question: Is this a contour to be reconstructed from binary labeling S p ? Answer: NO C

Yuri Boykov, UWO Contour/surface representations (summary) Implicit (area-based) Explicit (boundary-based) Level sets (geodesic active contours) Graph cuts (minimum cost cuts) Live-wire (shortest paths on graphs) Snakes (physics-based band model) What else besides boundary length |∂S| ?

Yuri Boykov, UWO From seeds to more general region constraints n-links s t a cut t-link assume are known “expected” intensities of object and background S segmentation [Boykov and Jolly 2001] cost of severed t-links E(S) = + cost of severed n-links

Yuri Boykov, UWO From seeds to more general region constraints n-links s t a cut t-link could be unknown intensities of object and background S segmentation [Boykov and Jolly 2001] cost of severed t-links E(S, I s,I t ) = + cost of severed n-links Chan-Vese model re-estimate Block-Coord.Descent

Yuri Boykov, UWO Block-coordinate descent for n Minimize over labeling S for fixed I 0, I 1 n Minimize over I 0, I 1 for fixed labeling S fixed for S=const optimal L can be computed using graph cuts optimal I 1, I 0 can be computed by minimizing squared errors inside object and background segments

Yuri Boykov, UWO Chan-Vese segmentation (binary case )

Yuri Boykov, UWO Chan-Vese segmentation (could be used for more than 2 labels ) can be used for segmentation, to reduce color-depth, or to create a cartoon

Yuri Boykov, UWO without the smoothing term, this is like “K-means” clustering in the color space Chan-Vese segmentation (could be used for more than 2 labels ) can be used for segmentation, to reduce color-depth, or to create a cartoon joint optimization over S and I 0, I 1,… is NP-hard

Yuri Boykov, UWO From fixed intensity segments to general intensity distributions n-links s t a cut t-link Appearance models can be given by intensity distributions of object and background S segmentation [Boykov and Jolly 2001] cost of severed t-links E(S) = + cost of severed n-links

Yuri Boykov, UWO Graph cut (region + boundary)

Yuri Boykov, UWO Graph cut as energy optimization for S n-links s t a cut t-link segmentation  cut S cost of severed t-links cost(cut) = + E(S)E(S) unary termspair-wise terms cost of severed n-links regional properties of S boundary smoothness for S [Boykov and Jolly 2001]

Yuri Boykov, UWO Unary potentials as linear term wrt. unary terms = Linear region term analogous to geodesic active contours

Yuri Boykov, UWO Examples of potential functions f unary terms (linear) Chan-Vese Volume Ballooning Attention Log-likelihoods Unary potentials as linear term wrt.

Yuri Boykov, UWO In general,… pair-wise terms quadratic polynomial wrt. k -arity potentials are k -th order polynomial Quadratic term analogous to boundary length in geodesic active contours

Yuri Boykov, UWO Examples of discontinuity penalties w Euclidean boundary length second-order terms (quadratic) contrast-weighted boundary length [Boykov&Jolly, 2001] Basic (quadratic) boundary regularization [Boykov&Kolmogorov, 2003], via integral geometry

Yuri Boykov, UWO Basic second-order segmentation energy includes linear and quadratic terms

Yuri Boykov, UWO Basic second-order segmentation energy includes linear and quadratic terms MAIN ADVANTAGE: guaranteed global optimum (t.e. best segmentation w.r.t. objective)  (discrete case) via graph cuts [Boykov&Jolly’01; Boykov&Kolmogorov’03] public code [BK’2004], fast on CPU  (continuous case) via convex TV formulations [Chen,Esidoglu,Nikolova’06; Chambolle,Pock,Cremers’08] public code [C. Nieuwenhuis’2014], comparably fast on GPU NOTE: this formulation is different from basic level-sets [Osher&Sethian’89]

Yuri Boykov, UWO Optimization vs Thresholding S thresholding e.g. graph cut [BJ, 2001]

Yuri Boykov, UWO Other examples of useful globally optimizable segmentation objectives n Flux [Boykov&Kolmogorov 2005] n Color consistency [“One Cut”, Tang et al. 2014] n Distance ||S-S 0 || from template shape Hamming, L 2,… [e.g. Boykov,Cremers,Kolmogorov, 2006] n Star-shape prior [Veksler 2008] NOT ALLOWED

Yuri Boykov, UWO Many more example of useful hard-to-optimize segmentation objectives n Continuous case Non-convexity n Discrete case Non-submodularity (more later) High-order Density (too many terms) Typical Problems: Typical Solutions: gradient descent (linearization) + level sets to be discussed

Yuri Boykov, UWO Examples of useful higher-order energies n Cardinality potentials (constraints on segment size) can not be represented as a sum of simpler (unary or quadratic) terms high-order potential

Yuri Boykov, UWO Examples of useful higher-order energies n Cardinality potentials (constraints on segment size) can be represented as a sum of unary and quadratic terms NOTE: 2nd-order potential still difficult to optimize (completely connected graph)

Yuri Boykov, UWO Examples of useful higher-order energies n Cardinality potentials (constraints on segment size) can not be represented as a sum of simpler (unary or quadratic) terms high-order potential

Yuri Boykov, UWO Examples of useful higher-order energies n Cardinality potentials (constraints on segment size) n Curvature of the boundary n Shape convexity n Segment connectivity n Appearance entropy, color consistency n Distribution consistency n High-order shape moments n …

Yuri Boykov, UWO Implicit surface representation Global optimization is possible Summary n Thresholding, region growing n Snakes, active contours n Geodesic contours n Graph cuts (binary labeling, MRF) Covered basics of: Not-Covered: n Ratio functionals n Normalized cuts n Watersheds n Random walker n Many others… n High-order models To be covered later: