2D image segmentation based on spatial coherence

Similar documents
IMAGE SEGMENTATION. Václav Hlaváč

Image segmentation. Václav Hlaváč. Czech Technical University in Prague

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

ECG782: Multidimensional Digital Signal Processing

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

Segmentation & Clustering

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

Topic 4 Image Segmentation

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

Segmentation and Grouping

CS 2770: Computer Vision. Edges and Segments. Prof. Adriana Kovashka University of Pittsburgh February 21, 2017

CS 534: Computer Vision Segmentation and Perceptual Grouping

Content-based Image and Video Retrieval. Image Segmentation

EE 701 ROBOT VISION. Segmentation

Norbert Schuff VA Medical Center and UCSF

Image Processing and Image Analysis VU

Robotics Programming Laboratory

Lecture 16 Segmentation and Scene understanding

EDGE BASED REGION GROWING

The goals of segmentation

Optimal Grouping of Line Segments into Convex Sets 1

CHAPTER 6 PERCEPTUAL ORGANIZATION BASED ON TEMPORAL DYNAMICS

Segmentation (continued)

COMPUTER AND ROBOT VISION

Dr. Ulas Bagci

Normalized cuts and image segmentation

Image Segmentation and Registration

PPKE-ITK. Lecture

Basic Algorithms for Digital Image Analysis: a course

Region-based Segmentation

Segmentation. Bottom Up Segmentation

Segmentation and Grouping

Grouping and Segmentation

Segmentation of Images

MULTIVIEW REPRESENTATION OF 3D OBJECTS OF A SCENE USING VIDEO SEQUENCES

Image Processing, Analysis and Machine Vision

Lecture: k-means & mean-shift clustering

Lecture: k-means & mean-shift clustering

Introduction to Medical Imaging (5XSA0) Module 5

Image Segmentation. Shengnan Wang

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

Bioimage Informatics

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

Color Image Segmentation

Introduction to Computer Science

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Image Segmentation Based on Watershed and Edge Detection Techniques

Image Analysis Lecture Segmentation. Idar Dyrdal

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

Lecture 13: k-means and mean-shift clustering

Segmentation by Clustering Reading: Chapter 14 (skip 14.5)

Integrating Intensity and Texture in Markov Random Fields Segmentation. Amer Dawoud and Anton Netchaev. {amer.dawoud*,

Variational Methods II

Outline. Advanced Digital Image Processing and Others. Importance of Segmentation (Cont.) Importance of Segmentation

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

Segmentation and low-level grouping.

Clustering CS 550: Machine Learning

Understanding Clustering Supervising the unsupervised

Edge and local feature detection - 2. Importance of edge detection in computer vision

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Digital Image Processing. Prof. P.K. Biswas. Department of Electronics & Electrical Communication Engineering

How and what do we see? Segmentation and Grouping. Fundamental Problems. Polyhedral objects. Reducing the combinatorics of pose estimation

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

EDGE EXTRACTION ALGORITHM BASED ON LINEAR PERCEPTION ENHANCEMENT

Digital Image Processing. Image Enhancement - Filtering

Data Mining 4. Cluster Analysis

CSSE463: Image Recognition Day 21

Lecture 7: Segmentation. Thursday, Sept 20

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

In this lecture, we are going to talk about image segmentation, essentially defined as methods for grouping pixels together.

From Pixels to Blobs

Edge Detection CSC 767

Filtering and Enhancing Images

Application of fuzzy set theory in image analysis. Nataša Sladoje Centre for Image Analysis

Other Linear Filters CS 211A

An Initial Seed Selection Algorithm for K-means Clustering of Georeferenced Data to Improve

Segmentation and Grouping April 19 th, 2018

Grouping and Segmentation

CS 664 Segmentation. Daniel Huttenlocher

Lecture 6: Edge Detection

Digital Image Processing Fundamentals

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

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

Pattern Recognition. Kjell Elenius. Speech, Music and Hearing KTH. March 29, 2007 Speech recognition

EE795: Computer Vision and Intelligent Systems

Segmentation and Grouping

Multi-stable Perception. Necker Cube

REGION & EDGE BASED SEGMENTATION

EECS490: Digital Image Processing. Lecture #20

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

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

Unsupervised Learning

Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

Texture Image Segmentation using FCM

GENERAL AUTOMATED FLAW DETECTION SCHEME FOR NDE X-RAY IMAGES

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Hard clustering. Each object is assigned to one and only one cluster. Hierarchical clustering is usually hard. Soft (fuzzy) clustering

Digital Image Processing COSC 6380/4393

Transcription:

2D image segmentation based on spatial coherence Václav Hlaváč Czech Technical University in Prague Center for Machine Perception (bridging groups of the) Czech Institute of Informatics, Robotics and Cybernetics and Faculty of Electrical Engineering, Department of Cybernetics http://people.ciirc.cvut.cz/hlavac, hlavac@ciirc.cvut.cz Inspiration in Gestalt principles. Outline of the lecture: Edge-based segmentation Region-based segmentation K-means clustering. Mean shift segmentation.

Underlying ideas 2/32 Collect together tokens that belong together. Group (cluster) them. Tokens are detectable entities in the image which can be grouped. Top-down segmentation: tokens belong together because they fit to the same object. Bottom-up segmentation: tokens belong together because they are locally spatially coherent. Top-down and bottom-up approaches are not mutually exclusive. They can often cooperate.

Gestalt principles of perceptual organization (1) 3/32 Founding publication by Max Wertheimer (born in Prague) in 1912 in Frankfurt a.m. Gestalt theory was meant to have general applicability; its main tenets, however, were induced almost exclusively from observations on visual perception. The overriding theme of the theory is that stimulation is perceived in organized or configurational terms (Gestalt in German means configuration ). Patterns take precedence over elements and have properties that are not inherent in the elements themselves.

Gestalt principles of perceptual organization (2) 4/32 Gestalt: a structure, configuration, or pattern of physical, biological, or psychological phenomena so integrated as to constitute a functional unit with properties not derivable by summation of its parts. The whole is different from the sum of the parts. Rejected structuralism and its assumptions of atomicity and empiricism. Adopted a holistic approach to perception.

Humans are good in grouping (1) 5/32

Humans are good in grouping (2) 6/32

Gestalt grouping principles 7/32

Grouping is not always easy 8/32

Contours, boundaries in segmentation 9/32 Physical phenomena involved in the image formation give rise to collections of edgels, often called contours, in images. Closed contours = boundaries of semantically meaningful regions. Open contours = are usually parts of region boundaries with gaps due to noise or low contrast. Other contours can sometimes be found, e.g., corresponding to a surface discontinuity on the surface of a 3D object. Contours can be represented as an ordered list of edgels which is often modeled mathematically as a curve.

Edge-based image segmentation 10/32 Edges by a gradient operator. Edgels are significant edges. Edgels linking and following by relaxation, voting, dynamic programming,... Natural for grouping of curvilinear structures. Often leads to hard premature decisions.

Edge-based image segmentation (2) 11/32 Edge detector is applied to find region boundary candidates. Thresholding of the edge magnitude is the simplest way how to get boundary candidates. Some iterative (possibly knowledge-based technique) is used to find boundaries. Problems with edge-based segmentation: It is difficult to obtain closed contours, i.e., boundaries of regions. The whole image need not be segmented.

Edge image thresholding (1) 12/32 original image edge image (enhanced for display)

Edge image thresholding (2) 13/32 threshold 30 threshold 10 (too small)

Non-maximal suppression and hysteresis 14/32 Boundary in image Neighboring pixels (defined by edge direction) Pixel under inspection Pixels adjacent with respect to local edge information are inspected.

Non-maximal suppression and hysteresis (2) 15/32 Non-maximal suppression hysteresis high threshold 70, lower 10

Edge relaxation 16/32 Edge-based segmentation does not provide close borders as some parts of it are missing due to noise. Edge relaxation is a postprocessing step which closes gaps between border segments. It is an instance of a general algorithm called relaxation labelling. In edge relaxation, edge properties in the context of neighboring pixels are iteratively improved. The method will be illustrated on one example: relaxation based on crack edges (Hanson, Rieseman 1978).

Crack edge 17/32 Introduces superresolution inter-pixel property. There is a formal notion how to express it = cellular complexes. a i d b e g c h f

Crack edge patterns 18/32 0-0 isolated edge negative influence on the edge confidence 0-1 uncertain weak positive, or no influence on edge confidence 0-2, 0-3 dead end negative influence on edge confidence 1-1 continuation strong positive influence on edge confidence 1-2, 1-3 continuation to border intersection medium positive influence on edge confidence 2-2, 2-3, 3-3 bridge between borders not necessary for segmentation, no influence on edge confidence

Edge relaxation algorithm 19/32 1. Evaluate a confidence c (1) (e) for all crack edges e in the image. 2. Find the edge type of each edge based on edge confidences c (k) (e) in its neighborhood. 3. Update the confidence c (k+1) (e) of each edge e according to its type and its previous confidence c (k) (e). 4. Stop if all edge confidences have converged either to 0 or 1. Repeat steps (2) and (3) otherwise.

Edge relaxation, example (1) 20/32 borders after 10 iterations borders after thinning

Edge relaxation, example (2) 21/32 borders after 100 iterations thinned overlaid over original

Segmentation as clustering 22/32 Image segmentation can be formulated as clustering which has been studied in statistics, pattern recognition or machine learning. Problem formulation: Assign a pixel to a cluster which is the most spatially adjacent and the most most homogeneous with respect to some criterion (e.g., brightness variance). There are several clustering methods. Seek unsupervised learning algorithms in pattern recognition. E.g., K-means, EM.

Lloyd s Algorithm K-means clustering 23/32 Initialize the pixels to belong to a random region. Compute the mean feature vector in each region. Move a pixel to another region if this decreases the total distance J. J = N K x n µ k 2, n=1 k=1 where n points to individual pixels, N is number of pixels, K is an a priori given number of clusters, K < N, x n is a pixel value, µ k is the cluster representative (mean point of a cluster). Iterate until pixels do not move any longer. S. Lloyd, Last square quantization in PCM s. Bell Telephone Laboratories Paper (1957). In the journal much later: S. P. Lloyd. Least squares quantization in PCM. Special issue on quantization, IEEE Trans. Inform. Theory, 28:129 137, 1982.

K-means clustering (2) 24/32 There is a danger of ending up in a local minimum of J. Performance depends much on the initial choice of the clusters. There are point sets on which K-means takes superpolynomial time O(2 n ) to converge. D. Arthur, S. Vassilvitskii (2006). How Slow is the k-means Method?. Proceedings of the 2006 Symposium on Computational Geometry. With K = 2 the K-means algorithm can be regarded as a thresholding with an automatically determined threshold.

K-means clustering, a texture example 25/32 Image, courtesy Ondřej Drbohlav Feature used for clustering the absolute value of 1st partial derivatives, ( ) I(x, y) x, I(x, y) y Two clusters, K = 2.

Segmentation by region growing/splitting 26/32 Region growing algorithm 1. Start with region R given by the seed K (one or several adjacent pixels). 2. For pixels p K add their neighbors q into the region R provided they fulfil the similarity criterion between q and R. 3. Repeat step 2 until nothing changes.

Mean shift 27/32 Estimation of the density gradient - Fukunaga K.: Introduction to Statistical Pattern Recognition, Academic Press, New York, 1972. Sample mean of local samples points in the direction of higher density. It provides the estimate of the gradient. Mean shift vector m of each point p m = i window w i (p i p), w i = dist(p, p i ) Based on the assumption that points are more and more dense as we are getting near the cluster central mass.

Mean shift algorithm 28/32 Input: points in the Euclidean (feature) space. Determine a search window size (usually small). Choose the initial location of the search window. Compute the mean location (centroid of the data) in the search window. Center the search window at the mean location computed in the previous step. Repeat until convergence.

Mean shift segmentation algorithm 29/32 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.

Mean shift segmentation, Example 1 30/32 http://www.caip.rutgers.edu/ comanici/mspami/mspamiresults.html

Mean shift segmentation, Example 2 31/32

Mean shift segmentation, Example 3 32/32 http://www.caip.rutgers.edu/ comanici/mspami/mspamiresults.html