Kapitel 13 “Interactive Segmentation” – p. 1 Interactive Segmentation  Live-wire approach  Random walker segmentation TexPoint fonts used in EMF. Read.

Slides:



Advertisements
Similar presentations
The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Advertisements

CSE 390B: Graph Algorithms Based on CSE 373 slides by Jessica Miller, Ruth Anderson 1.
SOFT SCISSORS: AN INTERACTIVE TOOL FOR REALTIME HIGH QUALITY MATTING International Conference on Computer Graphics and Interactive Techniques ACM SIGGRAPH.
Cutting Images: Graphs and Boundary Finding Computational Photography Derek Hoiem, University of Illinois 09/15/11 “The Double Secret”, Magritte.
DTU Informatics Introduction to Medical Image Analysis Rasmus R. Paulsen DTU Informatics TexPoint fonts.
The University of Ontario CS 4487/9587 Algorithms for Image Analysis Segmentation (2D) Acknowledgements: Alexei Efros, Steven Seitz.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
CS 206 Introduction to Computer Science II 11 / 07 / 2008 Instructor: Michael Eckmann.
CS171 Introduction to Computer Science II Graphs Strike Back.
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 A Seeded Image Segmentation Framework Unifying Graph Cuts and Random Walker Which Yields A New Algorithm.
Jue Wang Michael F. Cohen IEEE CVPR Outline 1. Introduction 2. Failure Modes For Previous Approaches 3. Robust Matting 3.1 Optimized Color Sampling.
Graph-based image segmentation Václav Hlaváč Czech Technical University in Prague Faculty of Electrical Engineering Department of Cybernetics Prague, Czech.
GrabCut Interactive Image (and Stereo) Segmentation Joon Jae Lee Keimyung University Welcome. I will present Grabcut – an Interactive tool for foreground.
Chapter 3 The Greedy Method 3.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Lecture 6 Image Segmentation
Hierarchical Region-Based Segmentation by Ratio-Contour Jun Wang April 28, 2004 Course Project of CSCE 790.
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
CS 206 Introduction to Computer Science II 11 / 10 / 2008 Instructor: Michael Eckmann.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
Snakes Goes from edges to boundaries. Edge is strong change in intensity. Boundary is boundary of an object. –Smooth (more or less) –Closed. –…
Segmentation Graph-Theoretic Clustering.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Image Segmentation Today’s Readings Intelligent Scissors, Mortensen et. al, SIGGRAPH 1995Intelligent Scissors From Sandlot ScienceSandlot Science.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
Announcements Mailing list: –you should have received messages Office hours onlineonline –start next week.
CS 206 Introduction to Computer Science II 03 / 30 / 2009 Instructor: Michael Eckmann.
1 Shortest Path Calculations in Graphs Prof. S. M. Lee Department of Computer Science.
Interactive Image Segmentation of Non-Contiguous Classes using Particle Competition and Cooperation Fabricio Breve São Paulo State University (UNESP)
Abstract - Many interactive image processing approaches are based on semi-supervised learning, which employ both labeled and unlabeled data in its training.
Chapter 10: Image Segmentation
Data Structures Using C++ 2E
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Dijkstras Algorithm Named after its discoverer, Dutch computer scientist Edsger Dijkstra, is an algorithm that solves the single-source shortest path problem.
06 - Boundary Models Overview Edge Tracking Active Contours Conclusion.
Exploring the Parameter Space of Image Segmentation Algorithms Talk at NCHU p 1 TexPoint fonts used in EMF. Read the TexPoint manual before you.
Edge Linking & Boundary Detection
The University of Ontario CS 433/653 Algorithms for Image Analysis Segmentation (2D) Acknowledgements: Alexei Efros, Steven Seitz.
Live-Wire Segmentation with "shortest path" By Ilan Smoly.
EE 492 ENGINEERING PROJECT LIP TRACKING Yusuf Ziya Işık & Ashat Turlibayev Yusuf Ziya Işık & Ashat Turlibayev Advisor: Prof. Dr. Bülent Sankur Advisor:
CS 6825: Binary Image Processing – binary blob metrics
Lecture 2: Edge detection CS4670: Computer Vision Noah Snavely From Sandlot ScienceSandlot Science.
COSC 2007 Data Structures II Chapter 14 Graphs III.
Shortest Path Problem Weight of the graph –Nonnegative real number assigned to the edges connecting to vertices Weighted graphs –When a graph.
1 Optimal Cycle Vida Movahedi Elder Lab, January 2008.
Intelligent Scissors for Image Composition Anthony Dotterer 01/17/2006.
Graphs. Definitions A graph is two sets. A graph is two sets. –A set of nodes or vertices V –A set of edges E Edges connect nodes. Edges connect nodes.
Stipple Placement using Distance in a Weighted Graph David Mould University of Saskatchewan.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Community structure in graphs Santo Fortunato. More links “inside” than “outside” Graphs are “sparse” “Communities”
Course 5 Edge Detection. Image Features: local, meaningful, detectable parts of an image. edge corner texture … Edges: Edges points, or simply edges,
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Cutting Images: Graphs and Boundary Finding Computational Photography Derek Hoiem, University of Illinois 09/20/12 “The Double Secret”, Magritte.
Cutting Images: Graphs and Boundary Finding
Announcements CS accounts Project 1 is out today
Shortest Path from G to C Using Dijkstra’s Algorithm
CS4670/5670: Image Scissors Noah Snavely Today’s Readings
Image gradients and edges
Announcements Reader is in the BOOK STORE (not Comm Bldg.)
CSE 373 Data Structures and Algorithms
Announcements Project 1 is out today
Shortest Path Algorithm for Weighted Non-negative Undirected Graphs
EE 492 ENGINEERING PROJECT
Dijkstra's Shortest Path Algorithm
Announcements Project 1 is out today help session at the end of class.
Graphs: Shortest path and mst
Presentation transcript:

Kapitel 13 “Interactive Segmentation” – p. 1 Interactive Segmentation  Live-wire approach  Random walker segmentation TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA Kapitel 13

Kapitel 13 “Interactive Segmentation” – p. 2 Live-wire approach Live-wire approach (intelligent scissors):  The user interactively picks a seed point on the boundary.  Then, a live-wire is displayed in real time from the initial point to any subsequent position taken by the cursor.  The entire 2D boundary is specified by means of a set of live-wire segments in this manner. The detection of segments is formulated as a graph search problem, which finds the globally optimal (minimum-weight) path between an initial start pixel and an end pixel.

Kapitel 13 “Interactive Segmentation” – p. 3 Live-wire approach E.N. Mortensen and W.A. Barrett: Intelligent scissors for image composition. SIGGRAPH, , 1995.

Kapitel 13 “Interactive Segmentation” – p. 4 Exkurs: Dijkstra‘s algorithm Problem: finding shortest paths from a source vertex to all other vertices in a graph. Dijkstra's algorithm: Greedy solution to the single-source shortest path problem. It works on both directed and undirected graphs. All edges must have nonnegative weights. Input: Weighted graph G = {E, V} and start vertex s ∈ V, such that all edge weights are nonnegative. Output: Lengths of shortest paths (or the shortest paths themselves) from the given start vertex s ∈ V to an end node t ∈ V (or all other vertices).

Kapitel 13 “Interactive Segmentation” – p. Step 1: Assign the start node with distance zero and mark it as visited. Assign all other vertices with infinity and mark them unvisited. Step 2: Consider the most recently visited node X with distance D x. For each of its unvisited neighbors Y with distance D y, replace D y by min(D x + weight(X,Y), D y ) Step 3: Choose the unvisited vertex with the smallest distance and mark it visited. Step 4: Repeat Steps 2 and 3 until the end node is marked visited. Step 5: Go backwards through the graph, retracing the minimum-weight path from the end node to the start node. 5 Exkurs: Dijkstra‘s algorithm

Kapitel 13 “Interactive Segmentation” – p. 6 Exkurs: Dijkstra‘s algorithm Example: Find the minimum-weight path from node s to node t s t

Kapitel 13 “Interactive Segmentation” – p. 7 Exkurs: Dijkstra‘s algorithm ∞ ∞ ∞

Kapitel 13 “Interactive Segmentation” – p. 8 Exkurs: Search algorithm from AI Search is a classical AI problem and many solutions exists (e.g. A*)

Kapitel 13 “Interactive Segmentation” – p. 9 Live-wire approach Example:

Kapitel 13 “Interactive Segmentation” – p. 10 Live-wire approach Example: Composition E.N. Mortensen and W.A. Barrett: Intelligent scissors for image composition. SIGGRAPH, , 1995.

Kapitel 13 “Interactive Segmentation” – p. 11 Live-wire approach Example: A cursor snap mechanism forces the mouse point to the pixel of maximum gradient magnitude within a user-specified neighborhood. Live-wire segment snaps to a boundary as the free point moves (via cursor movement). The path of the free point is shown in white. Live- wire segments from previous free point positions are shown in green.

Kapitel 13 “Interactive Segmentation” – p. 12 Live-wire approach Example: Continuous snap–drag of a live-wire to a coronary edge (the boundary is completed in about 2s) E.N. Mortensen and W.A. Barrett: Interactive live-wire boundary extraction. Medical Image Analysis, 1(4):

Kapitel 13 “Interactive Segmentation” – p. 13 Live-wire approach Reproducibility for live-wire and manual tracing tool. Eight users extracted five object boundaries five times with the live- wire tool and the same object boundaries three times with the manually tracing tool. Manual tracing takes 2-3 times longer. The boundaries are virtually identical regardless of which user is performing the task!

Kapitel 13 “Interactive Segmentation” – p. 14 Live-wire approach Extension to 3D: segment 3D volume data or time sequences of 2D images. A.X. Falcao and J.K. Udupa: A 3D generalization of user-steered live-wire segmentation. Medical Image Analysis, 4(4), , The user specifies contours via live-wiring on a few slices that are orthogonal to the natural slices of the original data. If these slices are selected strategically, then one obtains a sufficient number of seed points in each natural slice which enable a subsequent automatic optimal boundary detection therein.

Kapitel 13 “Interactive Segmentation” – p. 15 Random walker segmentation Given labeled pixels, for each pixel: What is the probability that a random walker starting from this pixel first reaches each set of labels? L.Grady: Random walks for image segmentation. IEEE-TPAMI, 28: 1768–1783, (a) A two-region image(b) Use-defined seeds for each region (c) A 4-connected lattice topology seeded (labeled) pixelsunseeded (unlabeled) pixel edge weight: similarity between two nodes, based on e.g., intensity gradient, color changes (d) An undirected weighted graph low-weight edge (sharp color gradient)

Kapitel 13 “Interactive Segmentation” – p. 16 Random walker segmentation The algorithm labels an unseeded pixel in following steps: Step 1. Calculate the probability that a random walker starting at an unseeded pixel x first reaches a seed with label s Probability that a random walker starting from each unseeded node first reaches red seed Probability that a random walker starting from each unseeded node first reaches blue seed

Kapitel 13 “Interactive Segmentation” – p. 17 Random walker segmentation Step 2. Label each pixel with the most probable seed destination (0.97,0.03)(0.90,0.10)(0.85,0.15)(0.15,0.85) (0.10,0.90)(0.03,0.97) (0.97,0.03)(0.85,0.15)(0.15,0.85) (0.03,0.97) (0.97,0.03)(0.90,0.10)(0.85,0.15)(0.15,0.85) (0.10,0.90)(0.03,0.97) A segmentation corresponding to region boundary is obtained by biasing the random walker to avoid crossing sharp color gradients

Kapitel 13 “Interactive Segmentation” – p. 18 Random walker segmentation greenredyellowblue partially labeled imagesegmented image Probabilities

Kapitel 13 “Interactive Segmentation” – p. 19 Random walker segmentation Algorithm summary: 1.Generate weights based on image intensities. 2.Build Laplacian matrix. 3.Solve system of linear equations for each label. 4.Assign pixel (voxel) to label for which it has the highest probability.

Kapitel 13 “Interactive Segmentation” – p. 20 Random walker segmentation Weight generation: The random walker is governed by edge weights (e.g., probabilities of reaching a pixel p j from its neighboring pixel p i ). f(): intensity function β: influences how quickly the probability decreases The probability is higher the more likely the two pixels belong to the same region.

Kapitel 13 “Interactive Segmentation” – p. 21 Random walker segmentation Laplacian matrix L: d i : degree of pixel p i It is shown that finding the probabilities for a walk starting at some pixel to arrive at some seed pixel is related to minmizing:

Kapitel 13 “Interactive Segmentation” – p. 22 Random walker segmentation Solution of system of linear equations: Partition the pixels into two sets, V M (all marked/seed pixels, regardless of their label) and V U (unseeded). The pixels in L and x are ordered such that seed pixels are first and unseeded pixels are second. Then, the optimization problem becomes: L M : edge weighted among the marked pixels L U : edge weighted among the unmarked pixels

Kapitel 13 “Interactive Segmentation” – p. To minimize it, the equation is differentiated with respect to unknown X U: This is set to zero for finding the minumum of D(X U ), resulting a system of |V U | linear equations: X M : 1 for the label under consideration, and 0 for all other labels (remember: we need to solve X U for each label) 23 Random walker segmentation

Kapitel 13 “Interactive Segmentation” – p. 24 Random walker segmentation Cardiac segmentation across modalities

Kapitel 13 “Interactive Segmentation” – p. 25 Random walker segmentation Segmentation of objects with varying size, shape and texture

Kapitel 13 “Interactive Segmentation” – p. 26 Random walker segmentation Segmentation of natural images

Kapitel 13 “Interactive Segmentation” – p. 27 Random walker segmentation  Author webpage:  Random walker paper:  Random walker MATLAB code:  Random walker demo page: