Idea. Found boundaries between regions (edges) Didn t return the actual region

Similar documents
Image Segmentation. Shengnan Wang

Topic 4 Image Segmentation

Region-based Segmentation

Digital Image Analysis and Processing

Segmentation (continued)

Processing and Others. Xiaojun Qi -- REU Site Program in CVMA

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity.

Segmentation and low-level grouping.

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

Content-based Image and Video Retrieval. Image Segmentation

Segmentation Computer Vision Spring 2018, Lecture 27

Ulrik Söderström 16 Feb Image Processing. Segmentation

Segmentation and Grouping

REGION BASED SEGEMENTATION

Basic Algorithms for Digital Image Analysis: a course

Segmentation by Clustering. Segmentation by Clustering Reading: Chapter 14 (skip 14.5) General ideas

Segmentation by Clustering Reading: Chapter 14 (skip 14.5)

2D image segmentation based on spatial coherence

EECS490: Digital Image Processing. Lecture #22

(10) Image Segmentation

CSSE463: Image Recognition Day 21

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

Case-Based Reasoning. CS 188: Artificial Intelligence Fall Nearest-Neighbor Classification. Parametric / Non-parametric.

CS 188: Artificial Intelligence Fall 2008

6. Object Identification L AK S H M O U. E D U

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

Image Analysis Lecture Segmentation. Idar Dyrdal

Dr. Ulas Bagci

Segmentation

VC 10/11 T9 Region-Based Segmentation

Segmentation

Image Analysis Image Segmentation (Basic Methods)

Grouping and Segmentation

Lecture 7: Segmentation. Thursday, Sept 20

Chapter 10: Image Segmentation. Office room : 841

Segmentation of Images

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

CS 2750: Machine Learning. Clustering. Prof. Adriana Kovashka University of Pittsburgh January 17, 2017

Image Segmentation Techniques

Today INF How did Andy Warhol get his inspiration? Edge linking (very briefly) Segmentation approaches

Lecture: k-means & mean-shift clustering

Lecture: k-means & mean-shift clustering

Midterm Examination CS540-2: Introduction to Artificial Intelligence

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

Operators-Based on Second Derivative double derivative Laplacian operator Laplacian Operator Laplacian Of Gaussian (LOG) Operator LOG

Contents.

Image segmentation. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Segmentation & Clustering

Example 1: Regions. Image Segmentation. Example 3: Lines and Circular Arcs. Example 2: Straight Lines. Region Segmentation: Segmentation Criteria

Example 2: Straight Lines. Image Segmentation. Example 3: Lines and Circular Arcs. Example 1: Regions

Clustering Color/Intensity. Group together pixels of similar color/intensity.

CS 534: Computer Vision Segmentation and Perceptual Grouping

Image Segmentation Based on Watershed and Edge Detection Techniques

IMAGE SEGMENTATION. Václav Hlaváč

Norbert Schuff VA Medical Center and UCSF

Other Linear Filters CS 211A

Digital Image Processing Lecture 7. Segmentation and labeling of objects. Methods for segmentation. Labeling, 2 different algorithms

9.913 Pattern Recognition for Vision. Class 8-2 An Application of Clustering. Bernd Heisele

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Pattern recognition. Classification/Clustering GW Chapter 12 (some concepts) Textures

CS4670: Computer Vision Noah Snavely

Lecture 13: k-means and mean-shift clustering

Region & edge based Segmentation

Image Processing and Image Analysis VU

Unsupervised Learning and Clustering

Segmentation and Grouping

Chapter 10 Image Segmentation. Yinghua He

Machine learning Pattern recognition. Classification/Clustering GW Chapter 12 (some concepts) Textures

CHAPTER 4: CLUSTER ANALYSIS

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Classification. Vladimir Curic. Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University

REGION & EDGE BASED SEGMENTATION

MR IMAGE SEGMENTATION

ECG782: Multidimensional Digital Signal Processing

CS 534: Computer Vision Segmentation and Perceptual Grouping

Clustering CS 550: Machine Learning

The goals of segmentation

Image Segmentation Techniques: An Overview

Feature Extractors. CS 188: Artificial Intelligence Fall Nearest-Neighbor Classification. The Perceptron Update Rule.

DIGITAL IMAGE ANALYSIS. Image Classification: Object-based Classification

Unsupervised Learning and Clustering

K-Means Clustering Using Localized Histogram Analysis

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

CS 664 Segmentation. Daniel Huttenlocher

Nonparametric Clustering of High Dimensional Data

1. What are the derivative operators useful in image segmentation? Explain their role in segmentation.

Digital Image Processing. Lecture # 15 Image Segmentation & Texture

Object Segmentation. Jacob D. Furst DePaul CTI

Clustering & Classification (chapter 15)

INF4820. Clustering. Erik Velldal. Nov. 17, University of Oslo. Erik Velldal INF / 22

Outline. Segmentation & Grouping. Examples of grouping in vision. Grouping in vision. Grouping in vision 2/9/2011. CS 376 Lecture 7 Segmentation 1

Image Analysis - Lecture 5

Clustering algorithms and introduction to persistent homology

Lesson 3. Prof. Enza Messina

Kernels and Clustering

COMPARISON OF VARIOUS SEGMENTATION ALGORITHMS IN IMAGE PROCESSING

Bioimage Informatics

Pattern recognition. Classification/Clustering GW Chapter 12 (some concepts) Textures

Transcription:

Region Segmentation

Idea Edge detection Found boundaries between regions (edges) Didn t return the actual region Segmentation Partition image into regions find regions based on similar pixel intensities, textures, etc... very hard

Region vs. Edges Different Regions

Basic Formulation Let R represent the entire image region. We want to partition R into n subregions, R 1, R 2,..., R n, such that: (a) n i 1 R i R (b) Ri is a connected region for i=1, 2,.., n (c) R i R j for all i and j, i j (d) P(Ri) = TRUE for i=1, 2,... n (e) P( R i R j ) FALSE for i j where P(Ri) is a logic predicate over the points in set Ri and is the empty set

Basic Formulation (a) segmentation must be complete all pixels must belong to a region (b) pixels in a region must be connected (c) Regions must be disjoint (d) states that pixels in a region must all share the same property The logic predicate P(Ri) over a region must return TRUE for each point in that region (e) indicates that regions are different in the sense of the predicate P.

Region Segmentation Problem Very difficult task Application specific May need magic numbers May need user to select starting points All-purpose generic algorithm Rarely gives the desired results

Common Approach Pixel Aggregation Start with some seed points From these seeds grow region by appending neighbor pixels choose pixels that have similar property; P(Ri) = TRUE P(Ri) can be thought of as a similarity measurement

Similarity Measure 1 st. Compare Candidates to Seed Pixel Algorithm Is = f(x,y) -- f(x,y) is the seed do while examine N8 neighbors in region if f(n8) Is < T» add pixel to region repeat until no more pixels can be added

matlab example Example

Similarity Criteria 2 nd Use Neighborhood of R Not just seed pixel, but similarity to region pixels (border pixels) Algorithm do while if f(n8) f(x,y) < T» add pixel to region repeat until no more pixels can be added

Similarity Criteria 2 nd Use Neighborhood of R This allows the region to grow given gradual intensity change. The rate of change allowed is controlled by a threshold, T. Check for similarity using border pixels

Comparing to Region Statistics 3 rd. Compare candidate pixels to some information specific to the entire region For example, the mean intensity of all the pixels currently in Ri seed dominates at first mean is allowed to drift this is often referred to as: centroid region growing

Multiple Seeds User gives multiple seeds This gives us a starting mean value AND, a variance Use this mean and variance combination to determine a predicate P(Ri) Use of mean and variance often try to find regions with a certain texture

Use of Counterexamples User can give two sets of inputs Region Seeds Pick pixels like this region (region you want to segment) Ie, multiple seeds Counterexamples Seeds of pixels not in the region Used combined predicates to choose candidate pixels

Region Growing Add Heuristics when to stop growing Gradient Magnitude f(x,y) f(n8) < T && f(n8) < Tm Edge Boundary Run a canny detector If a point is on a boundary, it can t be added to the region Application specific

Region Growing Algorithms Similarity measure is the key to success We have seen some examples Use original seed Boundary Neighbors Region Statistics Multiple Seeds Counterexamples You can use any heuristic that gives you a reasonable P(Ri) for the given application Results must satisfy the basic formulation given on slide 4.

Previous Example User must specify seed points Different seed points will give different results We want a more automated approach

Region Splitting Split the image into regions If the entire region doesn t satisfy the predicate P(Ri) split it into smaller regions repeat Use the quad-tree data structure

Quad Tree Data Structure Each root has 4 children Encodes a 2D spatial relationship

Quad-tree Example Input Image QT decomposition Matlab example

Problem with Splitting Alone Neighboring regions could have the same property We would like to merge these regions into a single region Introduce a merge step into the algorithm This a split and merge approach

Split and Merge Segmentation Split image into regions After each split, try to merge regions with similar P(R)=True If region can t be merged, and all pixels in this region P(Ri)!= TRUE subdivide region further Repeat

Split and Merge Example p463 figure 7.38

Split and Merge Tries to eliminate the need for seeds Sort of an all purpose algorithms Still requires a predicate P(Ri) This can require a magic number P(Ri) needs to be fairly generic The key to this algorithm is how to merge the regions

Watersheds Algorithm Also called Catch basin algorithm I Profile of a 1D scan line x

Watersheds Algorithm I Object 1 Object 2 Threshold Profile of a 1D scan line x

Algorithm Assume a dark object on a light background (gray levels = [0-255]) Start with Threshold = 0 All pixels that are 0 form a new watershed (or basin) Connected pixels are combined Increment Threshold For all new pixels that are equal to this threshold if they are neighbors to existing watersheds; combine with that watershed Otherwise they form new watersheds If two watersheds meet, they cannot be merged!

Watersheds of the Gradient Take the gradient magnitude of an image Start basins at local minimums (seed watersheds) Apply the watersheds algorithm

Example Watersheds algorithm

Watersheds Algorithm Watersheds often results in an over segmented image Apply some merge heuristic Generally, the merge algorithm is the key to the approach And is very application specific

Mean Shift Segmentation Perhaps the best technique to date http://www.caip.rutgers.edu/~comanici/mspami/mspamiresu *Slides from Stanford CS223-class

Mean Shift Algorithm Mean Shift Algorithm 1. Choose a search window size. 2. Choose the initial location of the search window. 3. Compute the mean location (centroid of the data) in the search window. 4. Center the search window at the mean location computed in Step 3. 5. Repeat Steps 3 and 4 until convergence. The mean shift algorithm seeks the mode or point of highest density of a data distribution: 32

Mean Shift Segmentation Mean Shift Setmentation Algorithm 1. Convert the image into tokens (via color, gradients, texture measures etc). 2. Choose initial search window locations uniformly in the data. 3. Compute the mean shift window location for each initial position. 4. Merge windows that end up on the same peak or mode. 5. The data these merged windows traversed are clustered together. *Slides from Stanford CS223-class *Image From: Dorin Comaniciu and Peter Meer, Distribution Free Decomposition of Multivariate Data, Pattern Analysis & Applications (1999)2:22 30 33

Mean Shift Segmentation Extension Is scale (search window size) sensitive. Solution, use all sc Gary Bradski s internally published agglomerative clustering extension: Mean shift dendrograms 1. Place a tiny mean shift window over each data point 2. Grow the window and mean shift it 3. Track windows that merge along with the data they transversed 4. Until everything is merged into one cluster Best 4 clusters: Best 2 clusters: Advantage over agglomerative clustering: Highly paralleliz 34

Mean Shift Segmentation Results: http://www.caip.rutgers.edu/~comanici/mspami/mspami 35

K-Means Choose a fixed number of clusters Choose cluster centers and pointcluster allocations to minimize error can t do this by search, because there are too many possible allocations. i clusters j elements of i'th cluster Algorithm fix cluster centers; allocate points to closest cluster fix allocation; compute best cluster centers x could be any set of features for which we can compute a distance (careful about scaling) 2 x j i 36 * From Marc Pollefeys COMP 256 2003

K-Means 37 * From Marc Pollefeys COMP 256 2003

Image Segmentation by K- Select a value of K Means Select a feature vector for every pixel (color, texture, position, or combination of these etc.) Define a similarity measure between feature vectors (Usually Euclidean Distance). Apply K-Means Algorithm. Apply Connected Components Algorithm. Merge any components of size less than some threshold to an adjacent component that is most similar to it. 38 * From Marc Pollefeys COMP 256 2003

Results of K-Means Clustering: Image Clusters on intensity Clusters on color K-means clustering using intensity alone and color alone 39 * From Marc Pollefeys COMP 256 2003

Summary Region-based Segmentation Region Growing User supplies seed (or seeds) Similarity Criteria is the key Split and Merge Approach Quad-tree data structure Watershed algorithm Mean-shift and K-mean algorithms

Active Research Areas Application specific segmentation Especially in the medical community