Professional Documents
Culture Documents
Digital Topology
Digital Topology
Digital Topology
Ulrich Eckhardt
Department of Applied Mathematics
University of Hamburg
Bundesstrae 55
D{20 146 Hamburg, Germany
and
Longin Latecki
Department of Computer Science
University of Hamburg
Vogt{Kolln{Strae 30
D{22 527 Hamburg
Contents Abstract
1 Introduction 1 The aim of this paper is to give an introduction into the eld
1.1 Motivation and Scope . . . . . . . . . . . . . . 1 of digital topology. This topic of research arose in connection
with image processing. It is important also in all applications
1.2 Historical Remarks . . . . . . . . . . . . . . . . 3 of articial intelligence dealing with spatial structures.
In this article, a simple but representative model of the Eu-
2 The Digital Plane 3 clidean plane, called the digital plane, is studied. The prob-
2.1 Basic Denitions . . . . . . . . . . . . . . . . . 3 lem is to introduce a satisfactory `topology' for this essen-
tially discrete structure. It turns out, that all known ap-
2.2 Jordan's Curve Theorem . . . . . . . . . . . . . 4 proaches, which come from dierent directions of applications
and theory, converge to virtually one concept of 4=8{ or 8=4{
2.3 The graphs of 4{ and 8{topologies . . . . . . . 5 connectedness.
3 Embedding the Digital Plane 5 Athevery natural approach to problems of discrete topology is
concept of semi{topological spaces.
3.1 Line Complexes . . . . . . . . . . . . . . . . . . 5
3.2 Cellular Topology . . . . . . . . . . . . . . . . . 8
1 Introduction
4 Axiomatic Digital Topology 9
4.1 Denition and Simple Properties . . . . . . . . 9
1.1 Motivation and Scope
4.2 Connectedness . . . . . . . . . . . . . . . . . . 11 The only sets which can be handled on computers are dis-
crete or digital sets, wich means sets that contain at most a
4.3 Alexandro Topologies for the Digital Plane . . 13 denumerable number of elements. There are two sources for
discrete sets
5 Semi{Topology 14
5.1 Motivation . . . . . . . . . . . . . . . . . . . . 14 The data structures of computer science are enumerable
by denition. So, only discrete objects can be repre-
5.2 The Associated Topological Space . . . . . . . 15 sented. This covers a great number of practical situ-
5.3 Related Concepts . . . . . . . . . . . . . . . . . 16 ations. For example in most applications of Articial
Intelligence the universe of discourse is a nite set. An-
5.4 Connectedness . . . . . . . . . . . . . . . . . . 17 other example is discrete classication e.g. of plants and
animals or stars into spectral classes etc.
5.5 Ordered Sets . . . . . . . . . . . . . . . . . . . 18
Continuous objects are discretized, i.e. they are approxi-
6 Applications to Image Processing 18 mated by discrete objects. This is done e.g. in nite ele-
ment models in engineering but also in image processing
6.1 Models for Discretization . . . . . . . . . . . . 18 where the intrinsically continuous image is represented
6.2 Continuity . . . . . . . . . . . . . . . . . . . . . 19 by a discrete set of `pixels'.
6.3 Homotopy . . . . . . . . . . . . . . . . . . . . . 19 In some cases the objects under consideration are taken from
6.4 Fuzzy Topology . . . . . . . . . . . . . . . . . . 19 a space with certain geometric characteristics. Any useful
discrete model of the situation should model the geometry
faithfully in order to avoid wrong conclusions. For example,
if an automatic reasoning system should interpret correctly
the sentence \The policemen encircled the house", it must be
able to understand that it is not possible to leave the house
without meeting a policeman. Mathematically speaking, the
set of policemen has some sort of `Jordan curve property'
which enables them to separate the house from the remainder
of the world unless one is able to act in three dimensions.
It is clear, that no discrete model can exhibit all relevant
features of a continuous original. Therefore, one has to ac-
cept compromises. The compromise chosen depends on the
specic application and the questions which are typical for
the application. Digital geometry is an attempt to evaluate
the price one has to pay for discretization. The most sim-
ple part of geometry is topology. The digital model topology
necessarily re
ects only certain facets of the underlying con- be represented by its boundary which leads to a reduction
tinuous structure. It is therefore necessary to apply dierent of dimensionality in the representation. This Theorem is,
approaches to digital topology. as mentioned above, essential for understanding spatial
Our visual system seems to be well adapted to cope with relations and is used for grouping items in spatial data
topological properties of the world. For example, letters in a structures.
document can be classied in a rst step according to their One very important topological `invariant' of a set is its
topological homotopy types. The layout of documents fre- Euler number. This number is in a certain sense all what
quently is based on topological predicates (e.g., a specic item we can get by parallel working machines.
must appear within a preassigned box). Optical checking of
wiring of chips amounts in nding out whether the wiring has General topology deals mainly with continuous functions.
the homotopy type wanted. Such functions have no counterparts in discrete struc-
tures. However, it would be useful for many applications
There are mainly three approaches for dening a digital ana- to have such a concept as `discrete continuity'.
log of the well{known `natural' topology of the Euclidean
space: By means of a suitable denition of continuity one is
able to compare topological structures with each other.
Graph{Theoretic Approach A very elementary struc- A very powerful concept in topology is homeomorphy.
ture which can be handled easily on computers is a graph. Homeomorphic topological structures are topologically
A graph is obtained when a neighborhood relation is in- the same. So, if a topological problem is investigated, one
troduced into the digital set. Such a structure allows to has to look for a homeomorphic structure in which the
investigate connectivity of sets. problem can be stated and solved as easily as possible.
Imbedding Approach The discrete structure is imbedded Homotopy theory deals with properties of sets which are
into a known continuous structure, usually into an Eu- invariant under continuous deformations. Translating
clidean space. Topological properties of discrete objects homotopy from general topology to discrete structures
are then dened by means of their continuous images. raises a number of questions which are not yet solved in
a satisfactory way. On the other hand, one of the most
Axiomatic Approach Certain subsets of the underlying often used preprocessing methods in image processing is
digital structure are declared to be `open sets' and are thinning which is the numerical realization of a `defor-
required to fulll certain axioms. These axioms have to mation retract' from homotopy theory.
be chosen in such a way that the digital structure gets
properties which are as close as possible to the properties There are several practical situations other than image pro-
of usual topology. cessing or spatial reasoning in articial intelligence where
topological spaces were used to model discrete situations,
All three approaches have advantages and disadvantages. The starting from Alexandrov's work in 1935 (see [1, 2]). In these
axiomatic approach is mathematicallyvery elegant but it does publications, Alexandro provided a theoretical basis for the
not directly provide the language which is wanted in appli- topology of `cell complexes'.
cations. The objects which are practically investigated are
not open sets but rather connected sets, sets which are con- In his book on the lambda calculus, Barendregt uses the
tained in other sets etc. The graph theoretic approach yields Scott topology [10, p. 9 f.] for partially ordered sets [55],
directly connectedness but is beomes very dicult to handle [56]. By means of this topology, concepts such as continu-
more complicated concepts of topology such as continuity, ity of functions can be introduced. There exist numerous
homotopy etc. The embedding approach is of course only ad- publications on application of discrete topologies to data
equate for structures which can be related to an Euclidean structures, abstract computing models, combinatorial al-
space. The problem is that one has to nd for each question gorithms, complexity theory and logics.
an appropriate embedding.
There are many proposals in the literature which deal with By and
using a suitable topology over the attribute set, Baik
Miller attempted to test equivalence of heteroge-
topological questions. Of course, these proposals cannot al- neous relational databases [9].
ways be characterized by only one of the approaches given
above. Brissaud [12, 13, 14] dened a so{called `pre{topology'
We list some of the questions which are typically attacked by for modelling preference structures in economics. (for
digital topology: other applications in economics see [4], [5], [6], [7]).
These pre{topological spaces were later used by Arnaud
Denition of connectedness and connected components et al. [8] in image processing.
of a set.
Classication of points in a digital set as interior and In this paper,2 only topologies for the 2{dimensional rectan-
boundary points, denition of boundaries of digital sets. gular grid ZZ are considered. This grid can be understood to
be the set of all points of the Euclidean plane IR2 having in-
Formulation of Jordan's Curve Theorem (and its higher teger coordinates. A more general theory is possible [52] but
dimensional analogs). This theorem states that a set can for easier presentation this is not attempted here. The reader
2
should be familiar with elementary topology of the Euclidean one usually has a given set, namely the set S of black points in
plane. the image and the complement CS, which is the set of white
points .
For survey articles on digital topology the reader is referred
to [26, 31, 35]. Given a point P = (m; n)> 2 ZZ2 . The 8{neighbors of P are
all points with integer coordinates (k; `)> such that
Points in the digital plane ZZ2 are indicated by upper{case
letters, points in the Euclidean plane IR2 by lower{case let- max(jm , kj; jn , `j) 1:
ters. Vectors are understood to be column vectors. For easier We number the 8{neighbors of P in the following way:
typographic representation we often write P = (m; n)> for
the vector P 2 ZZ2 having integer coordinates m and n.
For a nite set S we denote by jS j the number of its elements. column
The notation A := B means that A is dened by expression row n,1 n n+1
B.
m + 1 N3 (P) N2 (P) N1 (P)
1.2 Historical Remarks m N4 (P) P N0 (P)
In 1935 Alexandro and Hopf published a textbook on topol- m , 1 N5 (P) N6 (P) N7 (P)
ogy [2]. In this book an axiomatic basis was given for the
theory of cell complexes (so{called combinatorial topology).
This theory was developed at the begin of this century in Neighbors with even number are the direct or 4{neighbors of
order to attack very dicult problems of topology. In 1937 P, those with odd numbers are the indirect neighbors . The
Alexandro published a paper on the same subject where 8{neighborhood N8(P ) of P is the set of all 8{neighbors of P
the term \Discrete Topology" was explicitly used in the title (excluding P), the 4{neighborhood N4 (P) of P is the set of
[1]. E. Khalimsky investigated ordered connected topological all 4{neighbors of P .
spaces and wrote a book on this topic in 1977. Later on, in Let be any of the numbers 4 or 8 and let I = f0; 1; ; ng be
collaboration of the New York school of topology (Kopper- a (nite) interval of consecutive integers. A digital {path or
man, Meyer, Kong and others) it turned out that the ordered simply path P is a sequence fPigi2I of points in ZZ2 such that
connected spaces are very well suited for treating problems of
digital topology. They are equivalent to Alexamndro spaces. Pi and Pj are {neighbors of each other whenever ji , j j =
At the end of the eighties V. Kovalevsky gave a sound funda- 1. We note that the order induced by the numbering of the
ment for digital topology [36], which again turned out to be points of a path is essential. For P 2 P we dene the {degree
part of Alexandro theory. A similar theory was provided in or degree of P with respect to P to be the number jP\N (P )j.
the same time by G. Herman [23]. A point of P having degree 1 is termed an end point . It is
an immediate consequence of the denition that any point of
In 1979 A. Rosenfeld published a paper which had the title a path has degree at least one. There exist at most two end
\Digital Topology" [53]. This paper was very in
uential since points in a path. End points can only correspond to numbers
for the rst time some very dicult problems of digital topol- 0 or n. A path with the property P0 = Pn is called a closed
ogy were treated rigorously. The paper was based on results path . A closed path contains no end points.
of Duda, Hart and Munson [17]. A {path P is termed a {arc or simply an arc if it has
the additional property that for any two points Pi; Pj 2 P
which are not end points Pi 2 N (Pj ) implies ji , j j 1.
2 The Digital Plane Consequently, an arc is a path which does not intersect or
touch itself with the possible exception of its end points. Any
2.1 Basic Denitions point of an arc has order one or two.
We state a very simple but important Lemma:
As a simple but nevertheless useful model we consider the
digital plane ZZ 2 which is the set of all points in the plane IR2 Lemma 1 Let P be a path with two end points. Then there
having integer coordinates. exists an arc P0 which is completely contained in P and has
the same end points.
Digital Topology and Geometry are concerned with topologi-
cal and geometrical properties of subsets of the digital plane, Proof If P is a {path but not a {arc then it contains at
so{called digital sets . Digital Topology and Geometry are least one pair of points Pi and Pk such that Pi 2 N (Pk ), but
not new areas of mathematics. Many of the problems en- ji , kj > 1. Assume without loss of generality k > i. Then
countered in this connection are familiar from geometry of the path
numbers [47, 20], from stochastic geometry [46, 57, 58, 59],
integral geometry [11, 46] and from discretization of partial P 0 := fP0; P1; ; Pi,1; Pi; Pk; Pk+1; ; Png
dierential equations [44].
is contained in P , has end points P0 and Pn , but has fewer
In image processing the digital plane is taken as a mathemat- elements as P . Repeating the procedure we eventually arrive
ical model of digitzed black{white images. In this application at an arc with the desired property.
3
A digital set S ZZ2 is termed a {connected set whenever If we interpret the term `curve' as `arc' then the assertion of
for any two points P; Q 2 S there exists a path P with the the Theorem as formulated here is not true. The following
properties that it is completely contained in S and that it two sets are closed arcs in the sense of the denition above
contains both P and Q. Due to Lemma 1 we may in this but the complement (with respect to ZZ2 ) of each of them
denition replace `path' by `arc with end points P and Q'. A consists of only one connected component. Arrows in the
connected component of a set S ZZ2 is a maximal subset of gures indicate the order imposed by numbering the points.
S which is connected. This purely graph theoretic concept of
connectedness is very fundamental for analyzing digital sets.
By means of connectedness we introduce some sort of rudi- s
mentary topology in ZZ2 . We therefore adopt here the familiar 8{connectivity:
terminology of speaking about 4{ and 8{topology for the dig- - s6
s
,
ital plane.
s- s6
?
A very fundamental property | for theory as well as for ap-
plications | of the topology of the plane is that Jordan's
Curve Theorem is valid. That means that any \simple closed
curve" has the property of separating the plane into two parts, In order to rule out such singularities, we explicitly require
namely the interior with respect to the curve and the exte- that a closed digital 8{curve must have at least four points
rior. These two parts of the plane are distinguished by the and a closed digital 4{curve must have at least eight points.
fact that the latter is not bounded. For our purposes we only Since there exist (up to translations, rotations by multiples
need this theorem for polygonal curves. A polygonal curve or of 90o and re
ections at diagonal lines of the digital plane)
simply curve in the plane consists of a nite number of points only nitely many arcs having fewer than four or eight points,
fx0; x1; ; xng called vertices such that each two consecu- respectively, the reader can easily verify by inspecting all pos-
tive vertices xi ; xi+1 are joined by a line segment called an sible cases that this restriction indeed makes sense. In the
edge . A polygonal curve is termed a simple (polygonal) curve following, a digital curve is understood to be an arc which
if edges meet only in vertices and if for each vertex there are fullls the restriction mentioned above if it is closed.
at most two edges meeting it. It is termed a closed (polygonal) There is, however, a second problem. Consider the two fol-
curve if x0 = xn. lowing digital sets (black points () are understood to belong
Since ZZ2 can be considered as a subset of IR2, any path in to S, white points () to the complement):
ZZ2 corresponds to a polygonal curve in the plane IR2 with
vertices in ZZ2 and every arc corresponds to a simple curve
in the plane. Similarly, a closed path (arc) corresponds to a
closed polygonal curve (simple curve). c c c c c
c c s c c
Then IR2 nC consists of exactly two open connected sets (in the c c c c c
sense of the ordinary IR2{topology). Exactly one of these sets
is bounded and is called the interior with respect to C and the
other one is unbounded and is called the exterior with respect
to C .
c c c c c c
4
These phenomena are sometimes called `connectivity para- per unit length, the total number of image points (as well as
doxa'. the number of black points), however, grows as the square of
In 1979 Rosenfeld [53] proved that Jordan's curve Theorem is the number of discretization points per unit length. As a con-
indeed true for digital curves if the curve and its complement sequence, boundary coding of images becomes more and more
are equipped with dierent `topologies'. This was observed attractive with growing resolution power of scanning devices.
earlier by Duda, Hart and Munson [17]. Rosenfeld was the
rst to give these results a sound theoretical background. 2.3 The graphs of 4{ and 8{topologies
We dene for 2 f4; 8g
The approach presented in this section to `topologize' the
:= 48 for =8
for =4: (1) digital plane is mainly based on graph theoretic ideas. It
uses concepts such as points of ZZ2 being the nodes of the
graph, and a neigborhood relation which is represented by
The following Theorem holds: the edges of the (undirected) graph. This model enabeled
us to speak about connectivity of sets in a graph theoretic
Theorem 2 (Digital Jordan's Curve Theorem) Given manner. The graphs representing 4{ and 8{connectivity are
a closed simple {curve P in the digital plane ZZ2 . depicted in Figure 1.
Then ZZ2 nP consists of exactly two {connected sets. Exactly The graph corresponding to the 4{topology is planar, which
one of these sets is bounded and is called the interior with means that it can be drawn in the plane such that the lines
respect to P and the other is unbounded and is called the representing the neighborhood relation meet only in vertices.
exterior with respect to P . In contrast, it is not possible to represent the connectivity of
8{topology by means of a planar graph. This implies that
Rosenfeld's proof of this Theorem is performed essentially by the notions \planarity" and \topology of the digital plane"
an embedding approach. We return to this subject later on. are not equivalent.
In image processing applications the sets of black points In order to prove that the 8{topology cannot be modelled by
are considered to carry the essential information of a black{ a planar graph we show that the Kuratowski graph K5 can
white image. Therefore usually the set of all black points is be drawn into the graph of the digital plane equipped with
equipped with the 8{topology since this topology exhibits a the 8{topology. According to Kuratowski's theorem, a graph
more complex connectivity structure. We will follow this cus- is not planar if and only if it has a subgraph homeomorphic
tom here and also use the 8{topology. It is easily possible to to K5 or K3;3 (see [22, Theorem 11.13]). K5 is the complete
obtain assertions about the 4{topology by investigating the graph having 5 nodes. In Figure 2 it is shown how to embed
negative image which is obtained by changing the roles of S K5 homeomorphically into the graph corresponding to the
and its complement. This has to be carried out with some 8{topology.
caution since the situation is not quite symmetric because we
sometimes assume S to be bounded.
Digital curves play a special role in image processing appli-
3 Embedding the Digital Plane
cations. First it is possible to represent digital curves in a The digital plane ZZ 2 can be considered as a subset of IR2 .
storage ecient way by storing the coordinates of P0 and This leads immediately to the embedding approach for digital
then only the dierences Pi+1 , Pi for i = 0; 1; ; n , 1. topology. We only sketch here two models for illustration
These dierences can be coded by storing only the number purposes (see also [29, 33]).
in the neighborhood conguration of Pi which corresponds to
Pi+1 . This code for a digital path is named chain code . For
coding eight neighbors of a point one needs 3 bits, hence a 3.1 Line Complexes
curve of length n can be stored using 3n bits if one neglects
the amount of storage necessary to store the rst point P0 . A line complex in the Euclidean plane consists of a nite
For storing binary images it is sucient to code only the number of points, termed vertices . Certain of the vertices are
boundaries of the black digital sets. The justication of rep- connected together by line segments, the edges . We assume
resenting a digital set by its boundary is given by Jordan's that any two edges meet at most in a vertex and that any
Curve Theorem. A binary image consisting of n n points vertex belongs to at least one edge. The two points connected
can be stored using n n bits. If only the boundaries of by an edge are termed the end points of this edge. A vertex
the black sets are stored, one needs 3nB bits, where nB is is termed incident to an edge if it is an end point of the
the number of boundary points. Coding the boundaries pays edge. In an analogous way, two edges are termed incident if
when the number of boundary points is less than 33 % of the both are incident to a common vertex. The polygonal curves
total number of points in the image. In usual text documents introduced in section 2 are examples for line complexes. The
the number of boundary points amounts to less than 10 % concept of a line complex can be easily generalized to higher
of the number of all points, and this gure is even smaller dimensions. On line complexes we may dene in a `naive'
in line-structured images such as engineering drawings. With way topological concepts such as paths, arcs and connectivity.
growing resolution of scanners the number of boundary points Moreover, since we only consider line complexes which are
grows roughly linear with the number of discretization points embedded into an Euclidean space IRd , we can use the known
5
c c c c c c @c @ c, @ c, @ c, @ c, c,
@ ,@ , @ , @ , @ ,
@
, @
, @
, @
, @
,
c c c c c c @ c, @ c, @ c, @ c, @ c, @ c,
,@ ,@ , @ , @ , @ ,@
@
, @
, @
, @
, @
,
c c c c c c @ c, @ c, @ c, @ c, @ c, @ c,
,@ ,@ , @ , @ , @ ,@
@
, @
, @
, @
, @
,
c c c c c c @ c, @ c, @ c, @ c, @ c, @ c,
,@ ,@ , @ , @ , @ ,@
@
, @
, @
, @
, @
,
c c c c c c @ c, @ c, @ c, @ c, @ c, @ c,
,@ ,@ , @ , @ , @ ,@
@
, @
, @
, @
, @
,
c c c c c c c, @ c, @ c, @ c, @ c, @ c
, ,@ ,@ ,@ ,@ @
Figure 1: Graphs corresponding to the 4{topology (left) and 8{topology (right). Circles () denote grid points, lines indicate
the appropriate neighbor relations.
topology of IRd for investigating topological properties of the the same color which are indirect neighbors of each other.
complement of a line complex with respect to IRd . So, a subset Consequently, we can uniquely associate a color to each extra
of the complement is termed connected whenever any two vertex and also to an edge joining a point in ZZ2 with an extra
points of this set can be joined by a curve which is completely vertex.
contained in the set. In the context of line complexes it is Remark The meaning of the last Theorem is illustrated by
sucient to consider only polygonal curves. the following conguration:
Given a digital set S and 2 f4; 8g, 2 f4; 8gnfg (see (1)).
For each {connected component of S and each {connected
component of the complement (with respect to ZZ2 ) of S we c s
6
c c c c c
s c c c c c
, , @@
c cs, sc @ sc c
s s
@@, ,
, ,
c sc, @ sc, c c
@@ ,
s s c c @ c,, c c
c c c c c
Figure 2: Homeomorphic embedding of the Kuratowski graph K5 (left) into the digital plane equipped with the 8{topology
(right). The nodes of the embedded graph K5 are marked `'.
The reason for dealing with associated line complexes is that The proof of this Theorem is quite elementary. Details con-
much is known about the topology of them. Line complexes cerning this proof and also properties of line complexes in the
(and cell complexes) are well{known objects of combinatorial plane and of cell complexes in three dimensions can be found
topology. So we can easily reduce the proof of the Digital in the book of Alexandrow [3, Chapter I, x7].
Jordan's Curve Theorem 2 to that of Jordan's Theorem 1
for polygonal curves. When a closed digital curve is given, Euler's theorem states that Euler's number, which character-
then the line complex associated to it is a closed polygonal izes a global topological property of C, can be determined
curve by Theorem 4, part 3. Since we explicitly ruled out by counting (locally) numbers of vertices and edges. Such lo-
arcs containing no points of the digital plane in the interior, cally calculable properties can be determined by means of a
the (digital) interior and the exterior with respect to this very simple model for parallel computation. We assume that
polygonal curve are not empty. By Theorem 4, part 2 both a processor is located at each vertex. Each of the processors
the interior and the exterior are connected digital sets. As has only information about the neighborhood of its vertex.
each point in ZZ2 either belongs to the digital curve or to its The processors are allowed to send messages of limited infor-
complement, the Digital Jordan's Curve Theorem is proved. mation content to a master processor which evaluates the in-
Similarly, assertions concerning Euler's Theorem can be de- formation to nd Euler's number. By means of such a model
rived for digital sets by using the corresponding theorems for we can easily determine Euler's number for a cell complex.
line complexes. Euler's Theorem gives a relation between the There are theoretical results showing that Euler's number is
number of connected components of a polygonal set and the the only topological predicate of a cell complex which can
number of connected components of the complement of it. determined in such a way [48, 43, 30].
Assume that a digital set S is equipped with the 4{topology.
Theorem 5 (Euler's Theorem) For a line complex C in Euler's relation is true for the line complex associated to the
the plane denote by set with v denoting the number of points in S and e the num-
v the number of vertices, ber of horizontal and vertical edges. In order to determine
the number of regions we have to bear in mind that the as-
e the number of edges, sociated line complex is a subset of the Euclidean plane IR2 .
The regions determined by the line complex are the open sets
r the number of connected components (in the natural topology
which constitute the complement of the line complex with
of the plane) of the complement of C . Such components arerespect to the plane. For sake of clarity we denote the com-
called regions dened by C . plement of a set S with respect to the Euclidean plane with
c the number of connected components of C . CE S := IR2 n S. If S is a digital set, its complement with
respect to the digital plane will be denoted CD S := ZZ2 n S.
Then Euler's relation holds: There are two dierent types of such regions. The members
of the rst type are components of the complement of the
v , e = c , r + 1: line complex which do not contain any grid points belonging
to CE S (note that grid points in CE S are points in CD S).
The number E(C) := c , r+1 is the Euler number (or genus) These components are exactly the squares encircled by trivial
of the line complex C . closed 4{curves of the form
7
In the center of the square there is a crossing point of two
s s
lines which yields an extra vertex. Hence there are s new ver-
s s tices generated, 2s new edges (each diagonal edge was already
counted to yield the number d and is now split into two half{
edges) and 4s new regions out of s squares. For each square,
the four triangles contained in it are already counted in the
We denote the number of these squares by s. number of regions. Analogously as above, we add the number
r4 of the 4{components of the complement CE S correspond-
The second type of connected components of the complement ing to regions of second type.
consists of components containing at least one grid point in
CE S. The set of points of CD S contained in such a compo- We get
nent is 8{connected. Assume that two points in CE S can be
joined by a (polygonal) curve which does not meet the line Total number of vertices: v + s
complex associated to S. If this curve meets a horizontal or Total number of edges: e + d + 2s
vertical line joining two directly neighboring grid points, then Total number of regions: c4 + t.
at least one of these points belongs to CD S. From this obser-
vation we conclude that the number of regions which contain Euler's formula yields:
at least one grid point is equal to the number of connected
components of the line complex associated to CD S and is also E8=4(S) := c8 , r4 + 1 = v , e , d + t , s:
equal to the number of 8{components of CD S. We denote this
number by r8. From the formulae for E4=8 and E8=4 we conclude that Euler's
number of a digital set can be calculated by (parallel) inspec-
Euler's Formula (Theorem 5) now yields tion of all 2 2 neighborhoods if dierent topologies are used
for the digital set and for its complement. The latter require-
E4=8(S) := c4 , r8 + 1 = v , e + s: ment is essential, otherwise this assertion is not true [30]. It
is an interesting fact that it can be made true also in this
where c4 is the number of 4{components of S. The Euler case if a simple additional condition (well{composedness ) is
number c4 , r8 +1 is the number of 4{components of S minus imposed on the sets under consideration [38].
the number of holes in S. A hole is a bounded connected
component of the complement of S (with respect to ZZ2). Line complexes may also be used for classifying the points of
a digital set S into interior and boundary points. An edge
The procedure is analogous in the case of the 8{topology: of the line complex associated to S separates two regions. If
The number of vertices v is the number of points in S. The both regions are of the rst type as dened above (i.e. they
number of edges is the sum of the number e of horizontal and contain no points of the complement CD S of S), the edge is
vertical edges in S and the sum d of all diagonal edges in S. called an interior edge . Otherwise it is adjacent to at least
one region of second type. In this case it is termed a boundary
In order to calculate the number of regions dened by the edge . A point which is incident to a boundary edge is termed a
line complex associated to S, we again distinguish two types boundary point and all boundary points and boundary edges
of regions. The rst type consists of regions containing no constitute the boundary of S. A point in S which is not a
points from the complement of S. It consists of triangles boundary point is termed an interior point of S. Using these
concepts, we can dene boundaries of digital sets as oriented
curve{like sets.
s
It is possible to generalize the approach presented here to
s, s three and more dimensions [34, 41, 42].
8
does not belong to any (P) with P 2 S. Similarly, it is clear
that x cannot be on an edge of O(S) since in this case both
s s s s squares adjacent to this edge must belong to points in S which
contradicts x 2 (Q). An analogous argument shows that x is
c c c
not a vertex. Therefore we conclude that C (S) \O(C D S) = ;.
Assume now that there is an x 2 IR2 which belongs neither
s s s s
9
topology Ti the only open sets are the empty set and the Proof 1. The rst assertion is an immediate consequence
whole space X. of the T0{property. For the second assertion assume without
A set S X is called a closed set if its complement is open. loss of generality that Q 2 OP . Then, by virtue of the the
rst assertion, P 2 COQ. Hence COQ is a closed set which
The following classication of topological spaces according to contains P but not Q, consequently Q 2= CP . This means
their separation properties is due to Kolmogoro (see [2] or that not both Q 2 CP and P 2 CQ are possible.
[25]): 2. Q 2= OP means Q 2 COP. However, COP is closed and
does not contain P, hence P 2= CQ.
T0 For any two dierent points in X at least one has a neigh-
borhood not containing the other. Similarly, P 2= CQ implies Q 2= OP .
T1 For any two dierent points P and Q in X there exists a 3. COP is closed. Q 2= OP means Q 2 COP , hence P 2
neighborhood of P not containing Q and a neigborhood Q 2 OP.CQIf P COP
CP
6 = Q
which is not possible. Consequently,
then Q 2= CP by 1. CCP is open and
of Q not containing P . contains Q, but not P . Therefore
T2 For any two dierent points P and Q in X there exists
a neighborhood of P and a neigborhood of Q which are OQ OP \ CCP OP:
disjoint.
T2 {spaces are termed Hausdor spaces .
A topological space X is termed locally nite if each point P
in X has a nite neighborhood and a nite closed set con-
A topological space is termed discrete if the following is true: taining P.
TO3' The intersection of any family of open sets is open. Theorem 8 Let X be a locally nite Alexandro space. Then
1. Each set CP contains at least one vertex point.
This notion is due to Alexandro [1]. For a T1 { or T2 {space
the discrete topology as dened here coincides with the dis- 2. If CP 6= CQ, then there is a vertex point in one of these
crete topology in the strict sense. For T0 {spaces we must sets which is not contained in the other set.
distinguish between the discrete topology in the strict sense
and the discrete topology in the general sense. A discrete Proof 1. If CP = fP g then P is a vertex point. Otherwise
T0 {space is therefore termed an Alexandro space . Axiom there is a Q 2 CP with Q =
6 P . Then P 2= CQ CP and
TO3' can also be stated using closed sets: The union of any CQ has fewer points than CP. Repeating the process with
family of closed sets is closed. In this formulation it becomes CQ we eventually arrive at a vertex point contained in CP.
clear that Alexandro spaces are completely symmetric with
respect to open and closed sets. 2. If both sets are disjoint then the assertion follows from part
1. Otherwise CP \ CQ 6= ; and we can apply the construction
In an Alexandro space there exists for each point P a small- of part 1 to nd a vertex point having the desired property.
est neighborhood of P which is open:
\
OP = U: The Theorem states that the mapping which assigns to an
P
open 2U; element P in a locally nite Alexandro space the set of all
U
vertex points in CP is injective. If this mapping is bijective,
Because of the symmetry of Alexandro spaces there also the space is termed a complete space .
exists a smallest closed set containing P:
\ Example 1 As an example we consider a space X consist-
CP = V: ing of nine points
P 2V;
closed
V
; ;
; ; a; b; c; d; Q:
A point P with CP = fP g is called a vertex point .
The sets OP and CP are given in the Table in Figure 4. In
the last column of this table the sets of vertex points associated
Theorem 7 to each point are given. The set of all vertex points is :=
1. For any two dierent elements P and Q of an Alexandro f; ;
; g. X can be interpreted as a square (see Figure 4).
space is The vertex points of X are the vertices of the square, a, b, c
and d correspond to the edges (without end points) and Q is
P 2 OQ =) Q 2= OP and the interior of the square.
P 2 CQ =) Q 2= CP: This topological space is not complete since there are no points
in it belonging to tree{element vertex sets. Also the sets f;
g
2. P 2 CQ () Q 2 OP . and f; g do not belong to points in X . We can add in
an obvious way elements belonging to these sets of vertex
3. CP CQ () OQ OP: points. There are two new edges e and f and four triangles
10
F1 ; F2; F3; F4 as indicated in Figure 5. The completed topo- connected. Therefore these topologies are not very interesting
logical space X can be visualized as a simplex in 3{space for investigating connectedness.
by raising one vertex of the original square above the plane
dened by the others. This is illustrated in Figure 6. We now state a fundamental Lemma which relates the notion
of connectedness dened here to the more constructive and
intuitive notion of path{connectedness.
Locally nite Alexandro spaces which are not T1 suer from
a very serious defect which severely limits their usage in image
processing. We dene in tue usual way: A function f mapping Lemma 2 Let X = fP0; P1; ; Png be a nite set.
an topological space X into another topological space Y is There exist exactly two Alexandro topologies on X with
termed continuous if for all sets U Y which are open in Y the property that exactly all segments of consecutive points
the inverse image Pi ; Pi+1; ; Pj with 0 i < j n are connected sets.
f ,1 (U) := fx 2 X j f(x) 2 U g These topologies are
is open in X. T1 : OPi = fPig if i even,
The following Theorem states that the set of all continuous OPi = fPi,1; Pi; Pi+1g if i 6= 1; n odd,
functions mapping a nontrivial locally nite Alexandro space OP1 = fP1; P2g;
into itself is subject to severe restrictions [40]. OPn = fPn,1; Png; if n odd.
Theorem 9 Let X be a locally nite Alexandro space which and
is not T1 .
T2 : OPi = fPi g if i odd,
Then there exist two points P 6= Q in X such that for every OPi = fPi,1; Pi; Pi+1g if i even and
two neighborhoods U(P) and U(Q) of these points any injec- 6 n; n even,
i=
tion f : U(P ) ,! U(Q) mapping P in Q is not continuous.
OPn = fPn,1; Png; if n even.
Proof X is not T1 , hence there exist points P and Q such
that Q 2 OP and P 2= OQ. Thus OQ OP (strictly), and Proof The proof consists of three steps:
therefore jOQj < jOP j. 1. First we prove that OPi does not contain any point Pk
OP is clearly an open subset of U(P) and OQ is an open sub- with k =6 i , 1; i; i + 1.
set of U(Q). Let f : U(P ) ,! U(Q) be any continuous in- The set fP ; P g ist not connected by denition since i and
i k
jection. Since P 2 f ,1 (OQ) we obtain that OP f ,1 (OQ). k are not consecutive
, 1
Thus jOP j jf (OQ)j = jOQj, and this contradicts the borhood of P not containing integers. Hence there exists a neigh-
fact that jOQj < jOP j. i Pk and vice versa. This implies
Pk 2= OPi.
A topological space is termed homogeneous , when any two 2. jOP j = 2 implies i = 1 or i = n.
points of it have homeomorphic neighborhoods which means i
that there exist a bijective function which maps one neigh- Assume OPi = fPi ; Pi+1g (i = 6 n). If Pi 2= OPi,1, then
borhood onto the other and together with its is inverse is fPi,1; Pig is not connected, contrary to assumption. Conse-
continuous. Then the assertion of the Theorem can be for- quently Pi 2 OPi,1.
mulated as follows: Any Alexandro space with nontrivial
topology is not homogeneous. From part 1. we get Pi+1 2= OPi,1. This implies OPi,1 \
OPi = fPig, hence OPi = fPig contains only one point, a
The assertion of the Theorem is of course not completely sur- contradiction.
prising. For example, a function which maps vertices into
edges in Example 1 should not be continuous. The other possible cases are treated analogously.
3. There remain the following possibilities
4.2 Connectedness OPi = fPig or
Let S be a subset of X. In the relative topology induced in OPi = fPi,1; Pi; Pi+1g
S by the topology in X the open sets are all sets U \ S with When jOPij = 1 and jOPi+1j = 1 then the set fPi; Pi+1g is
U open in X. One easily sees that this is indeed a topology not connected. When OPi = fPi,1; Pi; Pi+1g and OPi+1 =
in S. A set which is open in the relative topology of S is a fPi; Pi+1; Pi+2g for any i with 0 < i < n then OPi \ OPi+1 =
relatively open set . fPi; Pi+1g is open which contradicts part 2.
The set S X is termed connected if there is no decomposi- As a result, one{point neighborhoods and three{point neigh-
tion S = T1 [ T2 such that T1 \ T2 = ;, both T1 ; T2 6= ; and borhoods alternate along X which leaves only the both pos-
relatively open with respect to S. Obviously, with respect sibilities of the Lemma.
to the indiscrete topology all sets are connected and for the
strictly discrete topology only sets consisting of one point are As an immediate consequence we state
11
c
c c
d Q b
P OP CP S c c
a
f; d; a; Qg fg fg
f; a; b; Qg f g f g
f
; b; c; Qg f
g f
g
f; c; d; Qg f g f g
a fa; Qg fa; ; g f; g
b fb; Qg fb; ;
g f;
g
c fc; Qg fc;
; g f
; g
d fd; Qg fd; ; g f; g
Q fQg X f; ;
; g
Corollary 1 If P0 = Pn then there exists an Alexandro 1. Open sets are all semi{innite intervals fn 2 ZZ j n
topology for X such that exactly all segments of consecutive n0 g. The topology generated by this system is an Alexandro
points on the cyclic sequence of points (numbered modulo n) topology which is not locally nite.
are connected if and only if n is odd. 2. The Marcus{Wyse topology is generated by the smallest
open subsets of points n 2 ZZ
Ofng = fn , 1;fnn;gn; + 1g; ifotherwise.
n is even,
c(((( (
(
, The Marcus{Wyse topology is a locally nite Alexandro
s((((( c ,
s
, topology [45]. As a consequence of Lemma 2 we can state that
@@ f ,, the Marcus{Wyse topology is the only locally nite Alexan-
dro topology for ZZ having the property that exactly the sub-
e@ ,, b
d @
, sets consisting of consecutive numbers are connected.
12
c
c c
@ ,, New vertices of the completed space:
@ ,
, e has vertex points and ,
d @, b f has vertex points and
.
,
, @ Faces of completed space:
,
c,
@
c F1 has vertex points ; ;
,
a F2 has vertex points ;
; ,
F3 has vertex points ;
; ,
F4 has vertex points ; ; .
Figure 5: Completion of X .
is (up to a translation) the only locally nite Alexandro Q 2 S n SP . Then OQ \ S is a relatively open set containing
topology for ZZ2 with the property that a subset of ZZ2 is con- Q and OQ \ SP = ;, otherwise Q 2 SP . This implies S n SP
nected with respect to this topology if and only if it is 4{ is open, contradicting the connectedness of S.
connected.
An analogous assertion holds for IRd . 4.3 Alexandro Topologies for the Digital
From the Corollary we get immediately the assertion that it Plane
is not possible to nd a topology for ZZ2 which induces 8{
connectivity. In Figure 7 a closed path with an odd number It now is easily possible to dene an Alexandro topology for
of vertices is shown which proves the assertion [15, 39, 49]. the digital plane. We assign a vertex to each point in the
For an Alexandro space we dene: A path with end points digital plane. If we interpret each smallest square of points in
ZZ2 as the topological space X as in Example 1, we get the
P and Q is a set fP = P0; P1; ; Pn = Qg with the property 4{topology in the sense that the vertices of X correspond to
Pi 2 OPi+1 or Pi+1 2 OPi for all i = 0; 1; ; n , 1. Obvi- points in ZZ2 and edges symbolize connectedness of points.
ously, by Lemma 2, a path is a connected set. This is easily
seen by inspecting both possible topologies on a path. If a In a similar way we can introduce an Alexandro topology
path were not connected, it would contain two consecutive which is related to 8{topology into the digital plane. For this
points which belong to dierent (relative) neighborhoods on reason we interpret each smallest square as the completed
the path. This, however is not possible in either topology of space of Example 1. We can put together the simplices of the
the Lemma. completed space in a three{dimenisonal model as shown in
A subset S of an Alexandro space is termed path{connected Figure 8.
if for any two points P; Q 2 S there exists a path with end As an alternative we may associate to each point in the digital
points P and Q which is completely contained in S. plane a square as in the cellular model (see Figure 3). For
each point in a digital set S (or equivalently, for each square)
Theorem 11 A subset S of an Alexandro space is con- we must decide for four vertices and four edges whether they
nected if and only if it is path{connected. should belong to S or not. This decision has to be done in
such a way that the subset of the plane thus obtained has
Proof 1. Assume that S is not connected. Let T1, T2 be appropriate connectedness. In order to eliminate redundancy
of these models, dierent authors proposed reduced models.
the two relatively open sets in S according to the denition of We consider two examples.
connectedness. For a path from a point P in T1 to a point Q 2
T2 there exists a number i such that Pi 2 T1 and Pi+1 2 T2 .
However, if Pi 2 OPi+1 then Pi+1 2 T1 since T1 was assumed Example 3 Kovalevsky [36] proposed that for any square be-
to be open which means that OP T1 for all P 2 T1 . The longing to a digital set S , the left and the upper edge and the
same argument holds for Pi+1 2 OPi . upper left vertex of the square should belong to S . The con-
2. If S is connected, we dene for P in S the set nectedness structure induces into the digital plane by this ap-
proach corresponds to the 6{neighborhood which is equivalent
SP = fQ 2 S j there is a path from P to Q in S g: to a covering of the plane by hexagons (see Figure 9). There-
fore, in in the following picture, the two points in the left
SP is an open set since it is the union of all smallest neigh- conguration are connected, in the right conguration they
borhoods of points which are path{connected to P. Let are not connected.
13
@c @ c, @ c, @ c, @ c, c,
@ , @ , @ ,@ , @ ,
@
, @
, @
, @
, @
,
@ c, @ c, @ cs, @ c, @ c, @ c,
, ,@@
,@ , @ , @ ,@ , @ , @
@
,
,,
@
, @
, @@ @
, @
,
@ c, @ cs, @ c, @ cs, @ c, @ c,
@@
,@ , @ , @ ,@ , @ , @
@
, @
, @
, @@
@
, @
,
@ c, @ cs, @ c, @ c, @ cs, @ c,
@ ,
@@ ,,
,@ , @ , @ ,@ , @ , @
@
, @
, @
, @
, @
,
@ ,
@ c, @ c, @ cs, @ cs, @ c, @ c,
,@ , @ , @ ,@ , @ , @
@
, @
, @
, @
, @
,
c, @ c, @ c, @ c, @ c, @ c
, ,@ ,@ ,@ ,@ @
Figure 7: A closed path having an odd number of vertices can be found in the graph corresponding to 8{topology.
Example 4 In the cellular model for digital topology (see TO3" For each point P 2 X there exists a smallest neigh-
borhood OP such that P 2 OP . All open sets can be
Section 3.2) we investigated two continuous models for a digi- represented as unions of smallest neighborhoods.
tal set S , the closed model C (S) and the open model O(S). In
both models it is only necessary to know which squares belong
to the model of S . The edges and vertices are associated to This concept was introduced in [40]. The treatment here is
the image of S in an consistent way. simplied for easier presentation. From the denition a semi{
topological space it is clear that any Alexandro space is also
The advantages of this convention are: a semi{topological space. In order to have the property that
any topological space is also semi{topological, TO3" must be
It can be generalized to higher dimensions, modied (see [40] for details). A semi{topological space is
completely determined by the neighborhoods OP of all its
It can be generalized to sets of other shape covering the points P.
plane (hexagons, irregular sets),
If we add the requirement that all objects which are not Example 5 It is possible to introduce in the digital plane a
associated to S by our convention should belong to the semi{topology by dening for a point P the smallest neighbor-
complement of S , we automatically arrive at mixed 4=8{ hood OP as the set of all points reachable by `knight's moves'
or 8=4{connectedness for the digital plane (Theorem 6). [16] which is depicted in Figure 10.
For semi{topological spaces all assertions hold which are true
5 Semi{Topology in Alexandro{spaces if they are derived without using inter-
sections.
5.1 Motivation It is for example easy to dene continuity in full analogy to
continuity in topological spaces:
From the preceeding paragraphs we can conclude that A function ' : X ,! Y mapping a semi{topological space
Alexandro spaces exhibit certain defects as stated in Theo- X into a semi{topological space Y is continuous , if for each
rem 9. In order to resolve this problem, it is obviously neces- set S Y which is open in Y the set ',1 (S) is open in X.
sary to modify the third axiom TO3. Alexandro sharpened ' is termed a homeomorphism from X onto Y if the inverse
this axiom and obtained a symmetric system of axioms. function ',1 : Y ,! X exists and if ' and ',1 are both
In the course of our exposition we could observe that virtu- continuous functions. X and Y are termed homeomorphic
ally all we need from Alexandro's topology is the knowledge spaces in this case.
of the smallest neighborhoods OP of points. So we reformu- The following Theorem is trivial but of fundamental impor-
late the axiom TO3 in the following way: A set X is termed tance since it illustrates a typical diculty encontered in dig-
14
JsPPPAsPPPs
As JJ
sA
L Q
PJPPPs P
JJsAPsPPPs
Q Q
AAs
A L A QL QA JJPA PPsP
P LLs A L QAAs JQsA JPPsPPPs
JPJPPAAsPA PPP
s
A JsQ P
APJPPPAAsPPPP LLsAA L LQQAAs JJsQAA
s
P
sPAA LLQQAAsA JJQsLQAAA PJPJPPAAsPAPPP LPLsAA L LQQAAs
JPJPP APPPP
AsP L A L QAs JQsA PJPPPAAsPPPPL
sA J
sA LsP JPPPAAsL AL QQAAs JJsAP
P P Ls
Q JJsAAPPPLsPJPPPAAsP LLAA LQQQAAs
L QQAA
A A
A L
AA LQQQAAs JJsAAPPP PLsPJPPPAAs LL
s
sPJPJPPAA
PP PP PL L
LLA QL QQAAs JJsPA PPP
PLs
s
A JQs A
A J
P
s
PP P P
A
P L
PPLsPPPA LA QL Q A
A JJLsQAAP
s A
A L LQQAA
s A A
s s
Q
JJPAsPAPPP P
L
AA L QAs
PPPAA PPP A
LLs A L QAs JQsA JPPPAsPPPPP sP
L
PPPAAsP L AA L QQAAs JJsAALs
s
Figure 10: Smallest neighborhood of point P in the semi{ 5.2 The Associated Topological Space
topology induced by knight{moves in the digital plane.
There are some specialties with semi{topological spaces. Let
S be an open subset of an Alexandro space. Then for each
ital topology: Homeomorphic topological spaces must have P 2 S, the set OP is contained in S. This is not necessarily
the same number of elements. true in semi{topological spaces. Therefore we dene: A sub-
set S of a semi{topological space is strictly open if OP S
Theorem 12 Let X be a semi{topological space consisting of for all P 2 S. Obviously, a strictly open set is also an open
nitely many elements. set.
Let Y be a semi{topological space and ' : X ,! Y a home- Consider for example the Marcus{Wyse topology in ZZ (see
omorphism. Then Y has the same number of elements as Example 2). In this topology each open set is strictly open.
X. Let X be a semi{topological space with topology T . We
introduce in X a second topology TA in which the strictly
For the proof of this Theorem we need only the bijectivity of open sets are declared to be open. It is easily seen that TA is
'. indeed a topology for X.
In other words: The number of elements in a nite set is a By denition, each TA {open set is also T {open which is ex-
(semi{) topological invariant. pressed in the language of general topology by saying that TA
15
c c c c c c
@ @ @ @ @@
@
@ @
c c c c @c @@ c
@ @ @ @@@ @@
@
c c c c @@ c @ c
@ @ @
Figure 9: Kovalevsky's approach for topologizing the digital plane. If the squares are represented by points and the connect-
edness relation by vertices, the graph of the right picture is obtained.
is coarser than T or T is ner than TA . Specically, for the A semi{topological space is termed homogeneous if for any
smallest open neighborhoods of a point, OP with respect to two points P and Q the neighborhoods OP and OQ are home-
T and OA P with respect to TA , one always has OP OA P . omorphic. Homogeneity therefore can be considered as `topo-
logical translation invariance'. The points of a homogeneous
Theorem 13 space cannot be distinguished topologically. We saw that a
nontrivial Alexandro space is never homogeneous. There-
1. TA is either an Alexandro topology or it is discrete in the fore, for a homogeneous semi{topological space the associated
strict sense or it is indiscrete. topology is either strictly discrete (AT1) or indiscrete (AT3).
2. Let T 0 be a topology fullling TO3' which is coarser than A semi{topological space X is termed symmetric if Q 2 OP
T . Then T 0 is coarser than TA . implies P 2 OQ for all P; Q 2 X. From Theorem 7 we
know that an Alexandro space is certainly not symmetric.
Proof\ 1. Given a system fS g of TA{open sets and P 2 Therefore,
to class AT1
a symmetric semi{topological space belongs either
or to class AT3.
S := S . Then OP is contained in each S , hence in S.
This proves TO3' for TA .
Example 7 The space ZZ, if equipped with the standard{
2. For P 2 X let O0 P be the smallest T 0 {neighborhood of semi{topology, is a symmetric semi{topological space.
P . Given a T 0{open set S, then O0 P S for all P 2 S, for
otherwise O0P \ S would be a neighborhood of P which is The Marcus{Wyse topology was introduced in a \semi{
strictly contained in OP. This implies that S is TA {open. topological" way by means of smallest open neighborhoods (see
Example 2):
We may restate part 2 of the Theorem in saying that TA
fng;
is the nest topology with TO3' which is coarser than the O(n) = if n is even,
semi{topology T . TA is termed the topology associated to fn , 1; n; n + 1g; else.
the semi{topology T . According to the associated topology
we may classify semi{topological spaces into three classes: This topology, however, does not make ZZ a symmetric space
since for example 0 2 O(1) = f0; 1; 2g and 1 2= O(0) = f0g.
AT1 TA is discrete in the strict sense. Then the same holds Clearly, the Marcus{Wyse topology is also not homogeneous.
for T .
AT2 TA is an Alexandro topology. Then T is also T0 but 5.3 Related Concepts
not T1 since
There are some concepts in the literature which can be easily
Q 2 OP =) Q 2 OA P =) expressed in the framework of semi{topology. We consider
=) P 2= OA Q =) P 2= OQ: some examples:
AT3 TA is the indiscrete topology. Example 8 Arnaud, Lamure, Terrenoire und Tounissoux [8]
proposed for image processing the pre{topological spaces of
Spaces having property AT1 are not very interesting. Spaces Brissaud [12].
with property AT2 are close relatives of Alexandro spaces. For a set X let P (X) be the set of all subsets of X . a :
We note that in such spaces Theorem 9 holds. The proof P (X) ,! P (X) is termed the closure{mapping and has the
of this Theorem literally carries over to the semi{toplogical properties
case when AT2 is true. The most interesting spaces for our
purposes are those having property AT3. S a(S) fur alle S X
16
and a(;) = ;. The set X equipped with the mapping a is Example 11 Let S be a subset of ZZ, equipped with the stan-
termed a pre{topological space. dard semi{topology (see Example 6). Then it is not possible
to have a representation S = fO(n) j n 2 S g, hence there
S
S
For a semi{topological space X we dene a(S) = P 2S OP exists no strictly open subset of ZZ (in the standard semi{
which makes X a pre{topological space. topology). This implies that ZZ is trivially a connected space.
There do exist pre{topological spaces which are not semi{ We know that exactly the subsets of consecutive numbers are
topological spaces. Consider for example the space ZZ with connected in ZZ with respect ot the Marcus{Wyse topology (see
the pre{topology Example 2). This assertion is also true in the standard semi{
a(S) = fn , 1; n; n + 1g; if S = fng;
topology.
S else,
then ZZ is not a semi{topological space, since it is not possi- Example 12 In a pre{topological space (see Example 8) the
ble to represent all sets a(S) as union of smallest neighbor- denition of connectedness is much more complex. A subset
hoods. Consider for example a set consisting of two consecu- S of a pretopological space is connected if there exist two sets
tive points in ZZ. F and G such that
element B0 as S \ a(Gj ) 6= ;,
S
[
DIL(S) = OP S \ a(Fj ) \ a(Gj ) = ;,
S S
P 2S
and the erosion of S Obviously, in a semi{topological space both denitions of con-
ERO(S) = fP j OP S g : nectedness coincide.
We note that DIL(S) correspondsSto the set a(S) in Example The advantage of semi{topological spaces over pre{topologcial
8 and ERO(S) corresponds to C P 2CS OP . One has spaces is that the denitions in semi{topology are very close to
those in general topology as we have seen for continuity and
ERO(S) S DIL(S): connectedness. Therefore it is possible to translate a large
number of assertions from general topology almost literally
Both these sets associated to a given set are used to analyze into semi{topology.
sets. For example, one might ask, under which circumstances
DIL(ERO(S)) = S or how the points can be characterized
where both these sets dier. It is also possible to investigate Since nontrivial symmetric semi{topological spaces are always
the iterated sets DILk (S) and so on. AT3{spaces, we can state that a symmetric semi{topological
space is not connected if and only if it contains a nonempty
These questions belong to the eld of mathematical morphol- strict subset which is strictly open.
ogy and are treated for example in Serra's books [57, 58].
Example 13 In the digital plane we introduce the semi{
5.4 Connectedness topologies T for 2 f4; 8g by the smallest open sets O (P ) =
N (P) \ fP g. Both these topologies are homogeneous and
If we translate connectedness in semi{topological spaces ver- symmetric. T {connectedness is the same as {connectedness
bally from Alexandro spaces, we get a result which is not dened in Section 2.
desirable:
In a semi{topological space we can nd a theorem which is
Example 10 In the standard semi{topology for ZZ the sets analogous to Theorem 11. We rst dene a path just as in case
f1; 2; 3g and f4; 5; 6g are open. If we apply the denition of of Alexandro spaces. By inspection of the proof of Theorem
connectedness in a naive way, the set f1, 2, 3, 4, 5, 6g would 11 we see that it can be easily adapted to semi{topological
not be connected. spaces by replacing `open' by `strictly open'. The Theorem
now reads
We therefore dene: The set S X is termed connected if
there is no decomposition S = T1 [ T2 such that T1 \ T2 = Theorem 14 A subset S of an semi{topological space is con-
;, both T1 ; T2 6= ; and both strictly (relatively) open with nected if and only if it is path{connected.
respect to S.
We note, that a set is T {connected whenever it is TA { In a semi{topological space Lemma 2 is not true since there
connected. The converse is not necessarily true, since for are more than two possibilities to (semi{) topologize a path.
example in AT3{spaces all subsets are TA {connected but not This generates more freedom for construction and this free-
always T {connected. dom is sucient to allow for any closed path a topology in
17
contrast to Corollary 1. So it is easily possible to nd a semi{ In an Alexandro space X we introduce the partial order
topology which causes the digital plane to be 8{connected relation
(see Example 13).
QvP () Q 2 CP:
There is even another advantage of semi{topology. We know
that in ordinary topology curves in the denition of connect- For the proof that this is indeed a partial order, we need Part
edness are introduced as homeomorphic images of a real in- 1 of Theorem 7. Since this assertion is not generally true
terval. This means that we compare the topology of a given in semi{topological spaces, we conclude that such an order
space with the well{known topology of the reals (or integers, relation does not always exist in semi{topological spaces.
respectively). In symmetric semi{topological spaces we can Conversely, if X is a partially ordered set with order relation
use the concept of continuity for introducing connectedness. v, we can dene in analogy to semi{topology
A subset Y of a semi{topological space X is termed an arc if CP = fQ j Q v P g:
it is a homeomorphic image of an interval in ZZ , where ZZ is
equipped with the standard semi{topology. A subset S of a We note that this denition is indeed `semi{topological' since
semi{topological space is termed arc{connected if for any two we dene smallest closed sets containing a point and then gen-
points in S there exists an arc which is completely contained erate the whole topology by means of unions of such sets. In
in S and which contains both points. contrast to semi{topology, we do not start with open neigh-
borhoods but it seems to be relatively clear that we arrive in
We now state this way at some sort of (semi{) topology.
Lemma 3 A subset Y of a symmetric semi{topological space When we consider Example 1 then Q v P means geomet-
is an arc if and only if it is a simple path (i.e. a path rically that Q is a boundary element of P. Indeed, we can
fP0; P1; ; Png such that exactly the subsets of consecutive interpret Alexandro spaces as abstract cell complexes . This
points are connected). was demonstrated in [1].
As Alexandro spaces and partially ordered spaces are equiv-
Proof 1. Assume that Y is an arc with homeomorphism alent, we can start our theory as well with the latter. This
' : [0; n] ,! W , where '(i) = Pi. Then the smallest neigh- is usually done for modeling discrete structures in computer
borhood of a point Pi 2 W is the homeomorphic image of science [56].
the smallest neighborhood of i 2 ZZ in the standard semi{ Khalimsky [21, 26, 27] investigated connected ordered topo-
topology. Thus, OPi contains exactly Pj 2 Y with ji , j j 1. logical spaces (COTS) . Such spaces X are characterized by
2. Let Y = fP0; P1; ; Png be a simple path in X. '(i) = Pi the properties that they are connected and that among each
is bijective. Since X is symmetric, by denition of a path, triple of points P, Q, R there is one, say Q, which has the
OPi contains Pj 2 Y with ji , j j 1. Since Y is simple, property that X nfQg consists of exactly two connected com-
OPi does not contain any other points in S. Hence, OPi is ponents, each containing one of the both remaining points.
homeomorphic to O(i). These spaces can be considered as homeomorphic images of
intervals in IR or ZZ , hence they are ideally suited for dening
We can conclude that for symmetric semi{topological spaces paths and path{connectedness in discrete structures.
connectedness, path{connectedness and arc{connectedness
are equivalent.
6 Applications to Image Processing
5.5 Ordered Sets
We restrict ourselves here to some applications of digital
We add here a dierent approach to digital topology which topology to image processing.
dates back to Alexandro. This approach uses the concept
of partially ordered set (`poset') and plays a role in computer
science (see e.g. [10]). Although there is a large amount of 6.1 Models for Discretization
literature about this topic, we only sketch it and relate it to
the structures developed here. A very important and fundamental problem in image process-
ing can be stated as follows: Given a set S in the Euclidean
A set X is called a partially ordered set if it is equipped with space IR2 and let : IR2 ,! ZZ2 be a discretization mapping
a relation v such that which associates to S a discrete set (S). Such a mapping
can be considered as a model of a digitizer. There were dif-
PO1 P v P for all P 2 X, ferent such mappings proposed in the literature, we mention
Pavlidis' `sampling theorem' [50] and Serra's book [58, Part
PO2 P v Q and Q v R implies P v R, II, Chapter VII]. More modern presentations of the subject
PO3 P v Q and Q v P implies P = Q. were given in [37] and [19].
Typical questions arising in this context are:
A set x is called an ordered set if in addition
Which topological (geometrical) properties does the dis-
PO4 For all P 2 X is P v Q or Q v R. cretized set (S) share with the set S?
18
Is or ,1 (as a point{to{set mapping) continuous? or `skeletonization'. The reduced set or skeleton shown in
the Figure was obtained by applying a method described in
Which other properties has ? [18] which is characterized by the property of being invariant
with respect to motions of the digital plane. In order to de-
The problem of nding a continuous model for a given discrete scribe the thinning procedure in terms of homotopy theory,
space is in some sense the inverse problem of discretization. it would be desirable to interpret the reduced image as a `de-
formation retract' of the original one. However, there is no
such possibility within the framework of digital topology or
6.2 Continuity semi{topology to deform the original image in a continuous
way into the reduced image. By Theorem 12 there is no way
There is a need for dening continuity in the context of digi- to nd a homeomorphism between nite sets having dierent
tal spaces [51]. This concept has proved as a very strong and numbers of elements.
fruitful one in ordinary topology. We have seen in the def-
inition of arc{connectedness in semi{topological spaces that Kong [28, 32] introduced a concept of digital homotopy the-
by continuity it becomes possible to deduce a property of a ory. This approach is based on an embedding procedure which
topological space from known properties of another space. If is similar to the cellular model presented in Section 3.2. The
we interpret the smallest neighborhoods of a point as a for- cellular images of the original image and the reduced image
mal denition of `nearness' (P and Q are near of each other are indeed homeomorphic in the IR2 topology.
if P 2 OQ or Q 2 OP), then continuous functions are func-
tions preserving nearness. Moreover, also connectedness is 6.4 Fuzzy Topology
preserved under continuos mappings.
An important tool is homeomorphy which allows to solve cer- Digital topology is the theoretical basis for understanding cer-
tain problems by posing them in appropriate homeomorphic tain properties of sets in images, i.e. it is mainly suited to
spaces. A very dicult question arising in this context is black{white images or to `segmented' objects in images. An
the problem of the dimension of a digital space. We saw that interesting problem is the question, whether it is possible to
the 8{topology induces a graph structure which is not planar. generalize the known concepts from black{white topology to
The question is, whether one can tell from the structure of a gray{value topology. This is indeed possible by using con-
graph whether it is a model for a plane (or more generally, a cepts from `fuzzy topology'. Gray{value images provide in
d{dimensional space) or not. This problem was investigated some sense a very neat application of fuzzy set theory, since
in [49]. they exhibit a naturally given membership function, the gray{
Typical questions in the context of continuity are: value function. Rosenfeld [54] presented a theory of fuzzy
topology for gray{value images. He was able to generalize
such concepts as connectedness, area and circumference and
The intermediate value theorem of classical analysis is compactness of an object in an image. Since then, a large
a very powerful tool for solving nonlinear equations. number of papers dealing with this subject were published.
Rosenfeld [51] was able to nd a digital analog of this
theorem.
A very important constructive tool in general topology is References
the xed point principle which characterizes conditions
under which a continuous function f mapping a topolog- [1] P. Alexandro. Diskrete Raume. Matematiceski Sbornik
ical space into itself has a xed point x with f(x) = x. (Receul Mathematique) , 2 (44), N. 3:502{519, 1937.
Rosenfeld [51] formulated a `near xed point theorem'. [2] Paul Alexandro und Heinz Hopf. Topologie , Erster
Are dierent models of discrete spaces homeomorphic? Band: Grundbegrie der mengentheoretischen Topologie
Topologie der Komplexe Topologische Invarianzsatze
und anschlieende Begrisbildungen Verschlingungen
6.3 Homotopy im m{dimensionalen euklidischen Raum stetige Abbil-
dungen von Polyedern , (Die Grundlehren der mathe-
Topological predicates are in a certain sense dicult to han- matischen Wissenschaften in Einzeldarstellungen, Band
dle on parallel computers as mentioned in Section 3. On XLV) , Verlag von Julius Springer, Berlin, 1935.
the other hand, the large amount of data, which is typical [3] A. D. Alexandrow. Konvexe Polyeder , (Mathematis-
for image processing applications, calls for parallel process- che Lehrbucher und Monographien, II. Abteilung, Band
ing. Therefore it was proposed very early to reduce images VIII) , Berlin: Akademie{Verlag, 1958.
to a `simple' topological equivalent before closer investigation
of topological predicates. Indeed, Rosenfeld showed in 1979 [4] J. P. Auray and G. Duru. Fuzzy pretopological structures
[53] that the decision whether a simgle point of a digital set and formation of coalitions. Theory and application of
in
uences its connectedness or the connectedness of its com- digital control, Proc. IFAC Symp., New Delhi 1982 , 459{
plement, can be made locally since it can be shown to be a 463 (1982).
predicate only depending on Euler's number. [5] J. P. Auray, G. Duru et M. Mougeot. Une methode de
In Figure 11 the reduction process is illustrated. This proce- comparaison des structures productives des pays de la
dure is known in the image processing literature as `thinning' C.E.E. Publ. Econ., 13(2):31{59, 1980.
19
Figure 11: Reduction of an image. Points are deleted which do not aect the topology of the image. Deleted points are
marked `', remaining points are marked ` '.
[6] Jean{Paul Auray, Gerard Duru and Michel Mougeot. [13] Marcel Brissaud. Structures topologiques des es-
Some pretopological properties of input{output models paces preferencies. Comptes Rendus hebdomadaires des
and graph theory. Oper. Res. Verfahren , 34:5{21, 1979. Seances de l'Academie des Sciences , 280, Serie A:961{
964, 1975.
[7] J. P. Auray, M. Brissaud et G. Duru. Connexite des
espaces preferencies. Cah. Cent. Etud. Rech. Oper., [14] Marcel Brissaud. Agregation des preferences individu-
20:315{324, 1978. elles. Comptes Rendus hebdomadaires des Seances de
l'Academie des Sciences , 278, Serie A:637{639, 1974.
[8] G. M. Arnaud, M. Lamure, M. Terrenoire and D. Tounis-
soux. Analysis of the connectivity of an object in a bi- [15] Jean{Marc Chassery. Connectivity and consecutivity in
nary image: pretopological approach. In: Eighth In- digital pictures. Computer Graphics and Image Process-
ternational Conference on Pattern Recognition, Paris, ing , 9:294{300, 1979.
France, October 27{31,1986, Proceedings , pages 1204{
1206. IEEE Computer Society Press, Washington, D.C., [16] P. P. Das and B. N. Chatterji. Knight's distance in digital
1986. geometry. Pattern Recognition Letters , 7:215{226, 1988.
[9] K. H. Baik and L. L. Miller. Topological ap- [17] R. O. Duda, P. E. Hart and J. H. Munson. Graphical
proach for testing equivalence in heterogeneous relational Data Processing Research Study and Experimental In-
databases. The Computer Journal , 33:2{10, 1990. vestigation . AD650926, March 1967, pages 28{30.
[10] H. P. Barendregt. The Lambda Calculus | Its Syn- [18] Ulrich Eckhardt and Gerd Maderlechner. Invariant thin-
tax and Semantics , Revised Edition, Elsevier Science ning. International Journal of Pattern Recognition and
Publishers B.V., North{Holland, Amsterdam, New York, Articial Intelligence , (Special Issue on Techniques for
Oxford, 1984. Thinning Digitized Patterns) , 7:1115{1144, 1993.
[11] Wilhelm Blaschke. Vorlesungen uber Integralgeometrie , [19] Ari Gross and Longin Latecki. Digitizations perserv-
Dritte Au
age. Deutscher Verlag der Wissenschaften, ing topological and dierential geometric properties.
Berlin, 1955. CVGIP: Image Understanding , (to appear).
[12] Marcel Brissaud. Les espaces pretopologiques. Comptes [20] P. M. Gruber and C. G. Lekkerkerker. Geometry of
Rendus hebdomadaires des Seances de l'Academie des Numbers, Second Edition , North{Holland Mathemati-
Sciences , 280, Serie A:705{708, 1975. cal Library, Volume 37 , (First edition as Bibliotheca
20
Mathematica, Volume VIII , 1969). Amsterdam: North{ Informatics, Volume 4) , pages 66{71. Berlin: Akademie{
Holland Publishing Company, New York: Elsevier Pub- Verlag 1991.
lishing Co., Inc. 1987.
[36] V. A. Kovalevsky. Finite topology as applied to image
[21] Em Davidovic Halimski. Ordered Topological Spaces , analysis. Computer Vision, Graphics, and Image Pro-
(Russian), Academy of Sciences of the Ukrainian SSR, cessing , 45:141{161, 1989.
Naukova Dumka, Kiev, 1977.
[37] E. H. Kronheimer. The topology of digital images. Topol-
[22] Frank Harary. Graph Theory , Addison{Wesley Pub- ogy and its Applications , 46:279{303, 1992.
lishing Company, Reading, Massachusetts, Menlo Park,
California, London, Don Mills, Ontario, 1969. [38] Longin Latecki, Ulrich Eckhardt and Azriel Rosenfeld.
Well{Composed Sets. CVGIP: Image Understanding ,
[23] Gabor T. Herman. Discrete multidimensional Jordan (to appear).
surfaces. CVGIP: Graphical Models and Image Process-
ing , 54:507{515, 1992. [39] Longin Latecki. Topological connectedness and 8{
connectedness in digital pictures. CVGIP: Image Un-
[24] Gabor T. Herman. On topology as applied to image anal- derstanding , 57:261{262, 1993.
ysis. Computer Vision, Graphics, and Image Processing ,
52:409{415, 1990. [40] Longin Latecki. Digitale und Allgemeine Topologie in
der bildhaften Wissensreprasentation . (DISKI Disserta-
[25] John L. Kelley. General Topology , (The University Se- tionen zur Kunstlichen Intelligenz 9) , inx, St. Augustin,
ries in Higher Mathematics) , D. Van Nostrand Com- 1992.
pany, Inc., Princeton, New Jersey, Toronto, London, New
York, 1955. [41] Chung{Nim Lee, Timothy Poston and Azriel Rosenfeld.
[26] Em Khalimsky, Ralph Kopperman and Paul R. Meyer. Holes and genus of 2D and 3D digital images. CVGIP:
Graphical Models and Image Processing , 55:20{47, 1993.
Computer graphics and connected topologies on nite or-
dered sets. Topology and its Applications , 36:1{17, 1990. [42] Chung{Nim Lee, Timothy Poston and Azriel Rosenfeld.
[27] E. Khalimsky. Topological structures in computer sci- Winding and Euler numbers for 2D and 3D digital im-
ence. Journal of Applied Mathematics and Simulation , ages. CVGIP: Graphical Models and Image Processing ,
1:25{40, 1987. 53:522{537, 1991.
[28] T. Y. Kong, A. W. Roscoe and A. Rosenfeld. Concepts [43] Norman Levitt. The Euler characteristic is the unique lo-
of digital topology. Topology Appl., 46:219{262, 1992. cally determined numerical homotopy invariant of nite
complexes. Discrete Comput. Geom., 7:59{67, 1992.
[29] T. Y. Kong and E. Khalimsky. Polyhedral analogs of
locally nite topological spaces. In: R. M. Shortt, ed.: [44] E. A. Lord and C. B. Wilson. The mathematical descrip-
General Topology and Applications , Lecture Notes in tion of shape and form ,
Pure and Applied Mathematics, Volume 123 , pages 153{ Chichester: Ellis Horwood Limited; New York, Chich-
163. New York, Basel: Marcel Dekker, Inc. 1990. ester, Brisbane, Toronto: John Wiley & Sons 1986.
[30] T. Y. Kong and A. Rosenfeld. If we use 4{ or 8{ [45] Dan Marcus, Frank Wyse et al.. A special topology
connectedness for both the objects and the background, for the integers (Problem 5712). Amer. Math. Monthly ,
the Euler characteristic is not locally computable. Pat- 77:1119, 1970.
tern Recognition Letters , 11:231{232, 1990. [46] G. Matheron. Random Sets and Integral Geometry , John
[31] T. Y. Kong and A. Rosenfeld. Digital topology: Intro- Wiley & Sons, New York, London, Sydney, Toronto,
duction and survey. Computer Vision, Graphics, and 1975.
Image Processing , 48:357{393, 1989. [47] Hermann Minkowski. Geometrie der Zahlen , B. G. Teub-
[32] T. Y. Kong. A digital fundamental group. Computers & ner, Leipzig und Berlin, 1910. (Johnson Reprint Corpo-
Graphics , 13:159{166, 1989. ration, New York, London, 1968).
[33] T. Y. Kong and A. W. Roscoe. Continuous analogs of ax- [48] Marvin Minsky and Seymour Papert. Perceptrons. An
iomatized digital surfaces. Computer Vision, Graphics, Introduction to Computational Geometry , The MIT
and Image Processing , 29:60{86, 1985. Press, Cambridge, Massachusetts, London, England,
1969.
[34] Ralph Kopperman, Paul R. Meyer and Richard G. Wil-
son. A Jordan surface theorem for three{dimensional dig- [49] Daniel Nogly und Markus Schladt. Grundlagen einer
ital spaces. Discrete Comput. Geom., 6:155{161, 1991. diskreten Geometrie auf Graphen als Tragerstrukturen ,
Diplomarbeit Universitat Hamburg, Institut fur Ange-
[35] Ralph Kopperman and Yung Kong. Using general topol- wandte Mathematik , April 1992.
ogy in image processing. In: U. Eckhardt, A. Hubler,
W. Nagel and G. Werner, editors: Geometrical Problems [50] Theodosios Pavlidis. Algorithms for Graphics and Image
of Image Processing. Proceedings of the 5th Workshop Processing , Springer{Verlag (Computer Science Press),
held in Georgenthal, March 11{15, 1991. (Research in Berlin, Heidelberg, 1982.
21
[51] Azriel Rosenfeld. `Continuous' functions on digital pic-
tures. Pattern Recognition Letters , 4:177{184, 1986.
[52] Azriel Rosenfeld. Three{dimensional digital topology.
Inform. and Control , 50:119{127, 1981.
[53] Azriel Rosenfeld. Digital topology. American Mathemat-
ical Monthly , 86:621{630, 1979.
[54] Azriel Rosenfeld. Fuzzy digital topology. Information
and Control , 40:76{87, 1979.
[55] Dana Scott. Data types as lattices. SIAM J. Comput.,
5:522{587, 1976.
[56] Dana Scott. Outline of a mathematical theory of com-
putation. In Proceedings of the Fourth Annual Prince-
ton Conference on Information Sciences and Systems
(1970) , pages 169{176.
[57] Jean Serra, editor. Image Analysis and Mathematical
Morphology, Volume 2: Theoretical Advances , Academic
Press, Harcourt Brace Jovanovich Publishers, London,
San Diego, New York, Boston, Sydney, Tokyo, Toronto,
1988.
[58] Jean Serra. Image Analysis and Mathematical Morphol-
ogy , Academic Press, Inc., London, Orlando, San Diego,
New York, Austin, Boston, Sydney, Tokyo, Toronto,
1982.
[59] D. Stoyan, W. S. Kendall and J. Mecke. Stochastic Ge-
ometry and Its Applications , John Wiley & Sons, Chich-
ester, New York, Brisbane, Toronto, Singapore, 1987.
22