Chapter 5 Segmentation Presenter: 蘇唯誠

Slides:



Advertisements
Similar presentations
Clustering.
Advertisements

電腦視覺 Computer and Robot Vision I
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
Interactive Shortest Path An Image Segmentation Technique Jonathan-Lee Jones.
Segmentácia farebného obrazu
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Lecture 07 Segmentation Lecture 07 Segmentation Mata kuliah: T Computer Vision Tahun: 2010.
Human-Computer Interaction Human-Computer Interaction Segmentation Hanyang University Jong-Il Park.
Image Segmentation and Active Contour
Active Contour Models (Snakes) 건국대학교 전산수학과 김 창 호.
Snakes with Some Math.
On Constrained Optimization Approach To Object Segmentation Chia Han, Xun Wang, Feng Gao, Zhigang Peng, Xiaokun Li, Lei He, William Wee Artificial Intelligence.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Snakes - Active Contour Lecturer: Hagit Hel-Or
Deformable Contours Dr. E. Ribeiro.
10/11/2001Random walks and spectral segmentation1 CSE 291 Fall 2001 Marina Meila and Jianbo Shi: Learning Segmentation by Random Walks/A Random Walks View.
Lecture 6 Image Segmentation
Image segmentation. The goals of segmentation Group together similar-looking pixels for efficiency of further processing “Bottom-up” process Unsupervised.
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Mean Shift A Robust Approach to Feature Space Analysis Kalyan Sunkavalli 04/29/2008 ES251R.
Segmentation. Terminology Segmentation, grouping, perceptual organization: gathering features that belong together Fitting: associating a model with observed.
Region Segmentation. Find sets of pixels, such that All pixels in region i satisfy some constraint of similarity.
Mean Shift Theory and Applications
Image Segmentation Chapter 14, David A. Forsyth and Jean Ponce, “Computer Vision: A Modern Approach”.
Segmentation CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
Segmentation Divide the image into segments. Each segment:
Announcements Project 2 more signup slots questions Picture taking at end of class.
Today: Image Segmentation Image Segmentation Techniques Snakes Scissors Graph Cuts Mean Shift Wednesday (2/28) Texture analysis and synthesis Multiple.
Clustering Color/Intensity
Optical flow and Tracking CISC 649/849 Spring 2009 University of Delaware.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Computer Vision - A Modern Approach Set: Segmentation Slides by D.A. Forsyth Segmentation and Grouping Motivation: not information is evidence Obtain a.
Image Segmentation Selim Aksoy Department of Computer Engineering Bilkent University
Clustering Unsupervised learning Generating “classes”
Image Segmentation Image segmentation is the operation of partitioning an image into a collection of connected sets of pixels. 1. into regions, which usually.
Image Segmentation Rob Atlas Nick Bridle Evan Radkoff.
Computer Vision James Hays, Brown
Mean Shift : A Robust Approach Toward Feature Space Analysis - Bayesian Background Modeling
06 - Boundary Models Overview Edge Tracking Active Contours Conclusion.
Machine Vision for Robots
Deformable Models Segmentation methods until now (no knowledge of shape: Thresholding Edge based Region based Deformable models Knowledge of the shape.
Mean Shift Theory and Applications Reporter: Zhongping Ji.
Region Segmentation Readings: Chapter 10: 10.1 Additional Materials Provided K-means Clustering (text) EM Clustering (paper) Graph Partitioning (text)
7.1. Mean Shift Segmentation Idea of mean shift:
CSE 185 Introduction to Computer Vision Pattern Recognition 2.
Advanced Computer Vision Chapter 5 Segmentation Presented by: 傅楸善 & 許承偉
Chapter 10 Image Segmentation.
EECS 274 Computer Vision Segmentation by Clustering II.
CSE554Fairing and simplificationSlide 1 CSE 554 Lecture 6: Fairing and Simplification Fall 2012.
CS654: Digital Image Analysis Lecture 30: Clustering based Segmentation Slides are adapted from:
CS654: Digital Image Analysis
Clustering.
Image Segmentation Shengnan Wang
Mean Shift ; Theory and Applications Presented by: Reza Hemati دی 89 December گروه بینایی ماشین و پردازش تصویر Machine Vision and Image Processing.
1 Microarray Clustering. 2 Outline Microarrays Hierarchical Clustering K-Means Clustering Corrupted Cliques Problem CAST Clustering Algorithm.
Chapter 5 Segmentation 周立晴 d Movie Special effects.
Advanced Computer Vision
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
Mean Shift Segmentation
Clustering.
Lecture 31: Graph-Based Image Segmentation
Emel Doğrusöz Esra Ataer Muhammet Baştan Tolga Can
Seam Carving Project 1a due at midnight tonight.
Announcements Project 4 questions Evaluations.
Mean Shift Theory and Applications
Announcements Project 1 is out today help session at the end of class.
Region-Based Segmentation
“Traditional” image segmentation
Presentation transcript:

Chapter 5 Segmentation Presenter: 蘇唯誠

Segmentation (1/2) 5.1 Active Contours 5.2 Split and Merge 5.3 Mean Shift and Mode Finding 5.4 Normalized Cuts 5.5 Graph Cuts and Energy-based Methods

Segmentation (2/2)

5.1 Active Contours Snakes Scissors Level Sets

5.1.1 Snakes Snakes are a two-dimensional generalization of the 1D energy-minimizing splines. One may visualize the snake as a rubber band of arbitrary shape that is deforming with time trying to get as close as possible to the object contour. constrain

Snakes Internal spline energy: – s: arc length – v s, v ss : first-order and second-order derivatives of curve – α, β: first-order and second-order weighting functions Discretized form of internal spline energy contour curvature

Snakes External spline energy: – Line term: attracting to dark ridges – Edge term: attracting to strong gradients – Term term: attracting to line terminations In practice, most systems only use the edge term, which can be directly estimated by gradient. constrain

Snakes

Edge functional – The snake is attracted to contours with large image gradients.

Snakes Termination Function – Use the curvature of level lines in a slightly smoothed image.

Snakes User-placed constraints can also be added. – f: the snake points – d: anchor points

Snakes Because regular snakes have a tendency to shrink, it is usually better to initialize them by drawing the snake outside the object of interest to be tracked.

Snakes

The above Euler equations can be written in matrix form as

Snakes

Elastic Nets and Slippery Springs Applying to TSP (Traveling Salesman Problem):

Elastic Nets and Slippery Springs (cont’d) Probabilistic interpretation: – i: each snake node – j: each city – σ: standard deviation of the Gaussian – d ij : Euclidean distance between a tour point f(i) and a city location d(j)

The tour f(s) is initialized as a small circle around the mean of the city points and σ is progressively lowered. Slippery spring: this allows the association between constraints (cities) and curve (tour) points to evolve over time. Elastic Nets and Slippery Springs (cont’d)

5.1.3 Scissors Scissors can draw a better curve (optimal curve path) that clings to high-contrast edges as the user draws a rough outline. Semi-automatic segmentation Algorithm: – Step 1: Associate edges that are likely to be boundary elements. – Step 2: Continuously recompute the lowest cost path between the starting point and the current mouse location using Dijkstra’s algorithm.

Scissors

Solve optimal path by Dijkstra’s algorithm.

Scissors

0 ∞∞ ∞∞ (a) 0 10∞ 5∞ (b) ss

Scissors (d) s (c) s

Scissors (e) (e) ss

Scissors

5.1.4 Level Sets

Level Sets

An example is the geodesic active contour: – g(I): snake edge potential (gradient) – φ: signed distance function away from the curve – div: divergent

Level Sets

According to g(I), the first term can straighten the curve and the second term encourages the curve to migrate towards minima of g(I). Level-set is still susceptible to local minima. An alternative approach is to use the energy measurement inside and outside the segmented regions.

Level Sets

5.2 Split and Merge Watershed Region splitting and merging Graph-based Segmentation k-means clustering Mean Shift

5.2.1 Watershed An efficient way to compute such regions is to start flooding the landscape at all of the local minima and to label ridges wherever differently evolving components meet. Watershed segmentation is often used with the user manual marks corresponding to the centers of different desired components.

Watershed

5.2.2 Region Splitting (Divisive Clustering) Step 1: Computes a histogram for the whole image. Step 2: Finds a threshold that best separates the large peaks in the histogram. Step 3: Repeated until regions are either fairly uniform or below a certain size.

5.2.3 Region Merging (Agglomerative Clustering) The various criterions of merging regions: – Relative boundary lengths and the strength of the visible edges at these boundaries – Distance between closest points and farthest points – Average color difference or whose regions are too small

5.2.4 Graph-based Segmentation

Graph-based Segmentation This algorithm uses relative dissimilarities between regions to determine which ones should be merged. Internal difference for any region R: – MST(R): minimum spanning tree of R – w(e): intensity differences of an edge in MST(R)

Graph-based Segmentation

5.2.5 Probabilistic Aggregation Gray level similarity:

Probabilistic Aggregation

Definition of strong coupling: – C: a subset of V – φ: usually set to 0.2

Probabilistic Aggregation

5.3 Mean Shift and Mode Finding

5.3.1 K-means K-means: – Step 1: Give the number of clusters k it is supposed to find. Then choose k samples as the centers of clusters. We call the set of centers Y. – Step 2: Use fixed Y to compute the square error for all pixels, then we can get the clusters U which has least square error E min.

K-means – Step 3: Use fixed Y and U to compute the square error E min ’. If E min = E min ’ then stop and we get the final clusters. – Step 4: If E min ≠ E min ’ then use U to find new cluster centers Y’. Go to Step 2 and find new cluster U’, iteratively.

5.3.2 Mean Shift Mean shift segmentation is the inverse of the watershed algorithm => find the peaks (modes) and then expand the region.

Mean Shift Step 1: Use kernel density estimation to estimate the density function given a sparse set of samples. – f(x): density function – x i : input samples – k(r): kernel function or Parzen window – h: width of kernel

Mean Shift

The location of y k in iteration can be expressed in the following formula: Repeat Step 2 until completely converge or after finite steps. Step 3: The remaining points can then be classified based on the nearest evolution path.

Mean Shift

There are still some kernels to be used: – Epanechnikov kernel (converge in finite steps) – Gaussian (normal) kernel (slower but result better)

Mean Shift Joint domain: use spatial domain and range domain to segment color image. Kernel of joint domain (five-dimensional): – x r : (L*, u*, v*) in range domain – x s : (x, y) in spatial domain – h r, h s : color and spatial widths of kernel

Mean Shift – M: a region has pixels under the number threshold will be eliminated

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Mean Shift vector Objective : Find the densest region

Intuitive Description Distribution of identical billiard balls Region of interest Center of mass Objective : Find the densest region

5.4 Normalized Cuts Normalized cuts examine the affinities between nearby pixels and try to separate groups that are connected by weak affinities. Pixel-wise affinity weight for pixels within a radius ∥ x i - x j ∥ < r : – F i, F j : feature vectors that consist of intensities, colors, or oriented filter histograms – x i, x j : pixel locations

Normalized Cuts

But computing the optimal normalized cut is NP-complete. The following is a faster method. Minimize the Rayleigh quotient: – W: weight matrix [w ij ] – D: diagonal matrix, diagonal entries are the number of corresponding row sums in W

Normalized Cuts – y = ((1 + x) - b(1 - x)) / 2 – x is the indicator vector where x i = +1 iff i ∈ A and x i = -1 iff i ∈ B. It is equivalent to solving a regular eigenvalue problem: – N = D -1/2 WD -1/2 and N is called normalized affinity matrix.

Normalized Cuts

5.5 Graph Cuts

Graph Cuts

END