Topological structure of images

Similar documents
Topological structure of images

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

EC-433 Digital Image Processing

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

Digital Image Processing

Interpolation is a basic tool used extensively in tasks such as zooming, shrinking, rotating, and geometric corrections.

Mathematical Morphology and Distance Transforms. Robin Strand

Sharpening through spatial filtering

Basic relations between pixels (Chapter 2)

UNIT-2 IMAGE REPRESENTATION IMAGE REPRESENTATION IMAGE SENSORS IMAGE SENSORS- FLEX CIRCUIT ASSEMBLY

Topology Homework 3. Section Section 3.3. Samuel Otten

Fourier transform of images

Advances in Digital Imaging and Computer Vision

Morphological Image Processing

2.8. Connectedness A topological space X is said to be disconnected if X is the disjoint union of two non-empty open subsets. The space X is said to

CITS 4402 Computer Vision

Digital Image Processing. Introduction

Elaborazione delle Immagini Informazione multimediale - Immagini. Raffaella Lanzarotti

4-Border and 4-Boundary

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

ECE 178: Introduction (contd.)

Morphological Image Processing

Digital Image Fundamentals II

Morphological Image Processing

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012)

Morphological track 1

UPEM Master 2 Informatique SIS. Digital Geometry. Topic 2: Digital topology: object boundaries and curves/surfaces. Yukiko Kenmochi.

International Journal of Advance Engineering and Research Development. Applications of Set Theory in Digital Image Processing

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

INTRODUCTION TO IMAGE PROCESSING (COMPUTER VISION)

γ 2 γ 3 γ 1 R 2 (b) a bounded Yin set (a) an unbounded Yin set

Binary Shape Characterization using Morphological Boundary Class Distribution Functions

Three-Dimensional Digital Topology

Manifolds. Chapter X. 44. Locally Euclidean Spaces

CLASSIFICATION OF SURFACES

Introduction. Sets and the Real Number System

Introduction to optimization

Domination, Independence and Other Numbers Associated With the Intersection Graph of a Set of Half-planes

Digital Geometry Based on the Topology of Abstract Cell Complexes

Topology notes. Basic Definitions and Properties.

Introduction. Computer Vision & Digital Image Processing. Preview. Basic Concepts from Set Theory

Lecture: Segmentation I FMAN30: Medical Image Analysis. Anders Heyden

Digital Image Processing Chapter 11: Image Description and Representation

Lectures on Order and Topology

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

Lecture 1 Introduction & Fundamentals

Morphological Image Processing

EECS490: Digital Image Processing. Lecture #23

Lecture 6: GIS Spatial Analysis. GE 118: INTRODUCTION TO GIS Engr. Meriam M. Santillan Caraga State University

Methods for Intelligent Systems

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors

EE 584 MACHINE VISION

Open and Closed Sets

Optimal Decision Trees Generation from OR-Decision Tables

Math 443/543 Graph Theory Notes

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

On Soft Topological Linear Spaces

Learning to Learn: additional notes

Planar Graphs. 1 Graphs and maps. 1.1 Planarity and duality

visual boundary (a) a vector format region (b) a raster format region region b region a Boundary Interior of region a Interior of region b

EULER S FORMULA AND THE FIVE COLOR THEOREM

Connected components - 1

Chapter 11. Topological Spaces: General Properties

The Traveling Salesman Problem on Grids with Forbidden Neighborhoods

Cell based GIS. Introduction to rasters

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Calculating the Distance Map for Binary Sampled Data

EECS490: Digital Image Processing. Lecture #17

L1-Spatial Concepts L1 - Spatial Concepts

ENGRG Introduction to GIS

Network models and graph theory

Math 205B - Topology. Dr. Baez. February 23, Christopher Walker

Image Analysis. Morphological Image Analysis

Identifying Layout Classes for Mathematical Symbols Using Layout Context

POINT SET TOPOLOGY. Introduction

Simulation of WSN in NetSim Clustering using Self-Organizing Map Neural Network

Sets. De Morgan s laws. Mappings. Definition. Definition

= [ U 1 \ U 2 = B \ [ B \ B.

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

Math 734 Aug 22, Differential Geometry Fall 2002, USC

Chapter 2 Notes on Point Set Topology

GITA 338: Spatial Information Processing Systems

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University. Name: ID#: Section #: Score: / 4

An efficient implementation of the greedy forwarding strategy

A metric space is a set S with a given distance (or metric) function d(x, y) which satisfies the conditions

Voronoi Diagrams and Delaunay Triangulations. O Rourke, Chapter 5

) for all p. This means however, that the map ϕ 0 descends to the quotient

The Geodesic Integral on Medial Graphs


A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

Divided-and-Conquer for Voronoi Diagrams Revisited. Supervisor: Ben Galehouse Presenter: Xiaoqi Cao

Clustering Algorithm (DBSCAN) VISHAL BHARTI Computer Science Dept. GC, CUNY

Chapter 1. Preliminaries

Lecture-12: Closed Sets

Fingerprint Classification Using Orientation Field Flow Curves

Introduction to Clustering

Notes on Topology. Andrew Forrester January 28, Notation 1. 2 The Big Picture 1

Non-Bayesian Classifiers Part I: k-nearest Neighbor Classifier and Distance Functions

GRAPH THEORY LECTURE 3 STRUCTURE AND REPRESENTATION PART B

A Weight Sequence Distance Function

Transcription:

Topological structure of images Stefano Ferrari Università degli Studi di Milano stefano.ferrari@unimi.it Elaborazione delle immagini (Image processing I) academic year 2011 2012 Use of simple relationships between pixels The structure of a digital image allows to state some basic relationships between pixels that can be useful in some practical cases. The pixels are organized in a regular structure and can have a limited number of values. Some operations consider groups of pixels that share the same features or are related by some peculiar characteristics. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 1

Example: estimation of the area covered by the river 0 255 identify the pixels which have the color of the river; several shades for the river; select among these the connected pixels; other water regions are not of interest; consider the regions that are naturally aligned; sections of the rivers parted by bridges, necks, or covered. Relationships between pixels Some tools can be very useful: a neighborhood relationship for pixels; an adjacency relationship for pixels; a connectivity relationship for pixels; a distance measure on the image domain. The same concepts can be easily extended to subset of pixels. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 2

Neighborhood The pixel p, positioned in (x, y) has the following neighbors: N 4 : (x + 1, y), (x 1, y), (x, y + 1), (x, y 1); N D : (x + 1, y + 1), (x 1, y + 1), (x + 1, y + 1), (x 1, y 1); N 8 : N 4 N D. N 4 (p) N D (p) N 8 (p) Adjacency The adjacency relationship is defined considering only similar pixels. In this context, the pixel intensity is used for defining the similarity relationship: the set V is composed by the intensities that (arbitrarily) have to be considered in the definition of the adjacency. Three types of adjacency are used: 4-adjacency, 8-adjacency, and m-adjacency (mixed). The pixels p and q having intensity values in V are: 4-adjacent if q N 4 (p); 8-adjacent if q N8 (p); m-adjacent if: q N 4 (p), or q N D (p) and none of the pixels in N 4 (p) N 4 (q) have values in V. m-adjacency is used for avoiding the ambiguities that arise using the 8-adjacency. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 3

Adjacency (2) (a) (b) (c) (a) A set of pixels. (b) 8-adjacency. (c) m-adjacency. Path The path from pixel p to pixel q having coordinates (x p, y p ) and (x q, y q ) is a sequence of n + 1 pixels having coordinates: where: (x 0, y 0 ) (x 1, y 1 )..., (x n, y n ) (x0, y 0 ) = (x p, y p ) and (x n, y n ) = (x q, y q ) (x i, y i ) and (x i, y p ) are adjacent (1 i n) The number n is the path length. If (x 0, y 0 ) = (x n, y n ), the path is closed. The path definition depends from the adjacency definition: 4-paths, 8-paths, or m-paths. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 4

Connected components Let S a subset of pixels in an image. Two pixel, p and q, in S are said to be connected in S if there is a path p q composed of pixels in S. For any pixel in S, the set of the pixels of S connected to that pixel constitutes a connected component of S. If there is only one connected component in S, then S is called connected set. In an image, any subset of pixel, R, that is a connected set is called a region of the considered image. Relationship between regions The adjacency relationship can be extended to regions. Two regions R i and R j are adjacent if R i R j is a connected set. Regions that are not adjacent are called disjoint. The adjacency of regions depends on the neighborhood relationship adopted. The union of all the regions of an image is called foreground. The terms subject(s) or object(s) of the image are also used. The complement of the foreground (i.e., the set of the pixels that do not belong to any regions) is called background. Since it is practical that the foreground objects are surrounded by the background, if required a frame of background pixels can be added to the image (padding). Hence, one row at the top and one at the bottom and one line at the right and one at the left are added to the original image. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 5

Boundary of a region The boundary (or border or contour) of a region R is the set of pixels of R adjacent to the complement of R. In other words, the border of a region is composed of pixels that have at least one of their neighbors in the background. The boundary definition depends on the adjacency. The circled pixel will become to the boundary only if the 4-adjacency is used. Boundary of a region (2) The boundary of a region is also called inner border, to be distinguished by the outer border, which is composed of background pixels that are adjacent to the inner border. The outer border is always a closed path. The region can be an open path, and so its inner border. The inner border can be identified as those foreground pixels that are adjacent to the outer border. The edge is an important concept that is similar to the border. It will be introduced later in the course. The edge is often a subsequence of the border, but there are more complex cases. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 6

Distance The distance function or metric is a real function defined on pairs of pixels such that: 1. D(p, q) 0, (D(p, q) = 0 iff p = q) 2. D(p, q) = D(q, p) 3. D(p, q) D(p, z) + D(z, q) Euclidean distance, D e, (L 2 norm): D 4 distance, (L 1 norm): D e (p, q) = [ (x p x q ) 2 + (y p y q ) 2] 1 2 D 4 (p, q) = x p x q + y p y q aka Manhattan, or taxi-cab or city-block distance. Distance (2) D 8 distance, or chessboard distance (L norm): D 8 (p, q) = max( x p x q, y p y q ) D e D 4 D 8 The pixels, q, are labeled with the integer radius, r N, of the disk they belong to: r 1 < D(p, q) r, where p is the central pixel. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 7

Distance (3) The distance can be evaluated also using the m-adjacency. The m-distance, D m, differs from D e, D 4, and D 8 since it depends on the image content. 0 1 1 1 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1 1-2 2 3 1 1 - - 0 - - - - 1 - - - - 2 3-3 4 5 1 2 - - 0 - - - - 1 - - - - 2 3 (a) (b) (c) (a) Pixel arrangement. (b) D 8 distance (only for 1-valued pixels). (c) The corresponding D m distance. Stefano Ferrari Elaborazione di immagini (Image processing) a.a. 2011/12 8