Formal Introduction to Digital Image Processing

Total Page:16

File Type:pdf, Size:1020Kb

Formal Introduction to Digital Image Processing MINISTÉRIO DA CIÊNCIA E TECNOLOGIA INSTITUTO NACIONAL DE PESQUISAS ESPACIAIS INPE–7682–PUD/43 Formal introduction to digital image processing Gerald Jean Francis Banon INPE São José dos Campos July 2000 Preface The objects like digital image, scanner, display, look–up–table, filter that we deal with in digital image processing can be defined in a precise way by using various algebraic concepts such as set, Cartesian product, binary relation, mapping, composition, opera- tion, operator and so on. The useful operations on digital images can be defined in terms of mathematical prop- erties like commutativity, associativity or distributivity, leading to well known algebraic structures like monoid, vector space or lattice. Furthermore, the useful transformations that we need to process the images can be defined in terms of mappings which preserve these algebraic structures. In this sense, they are called morphisms. The main objective of this book is to give all the basic details about the algebraic ap- proach of digital image processing and to cover in a unified way the linear and morpholog- ical aspects. With all the early definitions at hand, apparently difficult issues become accessible. Our feeling is that such a formal approach can help to build a unified theory of image processing which can benefit the specification task of image processing systems. The ultimate goal would be a precise characterization of any research contribution in this area. This book is the result of many years of works and lectures in signal processing and more specifically in digital image processing and mathematical morphology. Within this process, the years we have spent at the Brazilian Institute for Space Research (INPE) have been decisive. This second edition contains many small improvements which are the result of our teaching experience at INPE during the years of 1998, 1999 and 2000. The major of them are the intoduction of poset graphs which give a better foundation to the Hasse diagram in Chaper 1 and the introduction of two types of window operators in Chapter 4. São José dos Campos, July 2000. Gerald Jean Francis Banon i Content Figure list v 1 Digital image 1.1 Image definition . 1. 1.2 Image characterization. 5 1.3 Some mathematical definitions and properties. 13 2 Image moments 2.1 Image as a vector . 31. 2.2 Image as a random variable. 34 2.3 Principal component analysis. 41 2.4 Some mathematical definitions and properties. 48 3 Pointwise enhancement 3.1 Look–up–table . 61. 3.2 Spatially invariant pointwise operator. 71 3.3 Spatially invariant pointwise morphism. 78 3.4 Enhancement technique. 87 3.5 Some mathematical definitions and properties. 89 4 Filtering 4.1 Measure. 111 4.2 Spatially invariant window operator. 129 4.3 Spatially invariant window morphism. 137 4.4 Linear and morphological window operators. 163 4.5 Some mathematical definitions and properties. 168 Bibliography 173 Index 175 iii Figure list 1.1 – A set of squares. 2 1.2 – A gray–scale. 2 1.3 – Cartesian product of a set of squares and a gray–scale. 2 1.4 – A pixel. 2 1.5 – An image. 3 1.6 – An image as a subset of a Cartesian product. 3 1.7 – A Cartesian product subset which is an image. 4 1.8 – A Cartesian product subset. 4 1.9 – A Cartesian product subset. 4 1.10 – A Cartesian product subset. 4 1.11 – A numerical array. 5 1.12 – Image characterization in terms of mapping. 6 1.13 – Four squares in a set of squares. 6 1.14 – The poset–isomorphism for an image domain. 8 1.15 – The poset–isomorphism for a gray–scale. 8 1.16 – Two composites used in the image characterization. 9 1.17 – Image characterization in terms of matrix. 9 1.18 – A scanner and a display device. 10 1.19 –Relationship between an image and an array of natural numbers. 12 1.20 – Two binary relations. 14 1.21 – A mapping. 15 1.22 – Image of a set through a mapping. 15 1.23 – Image inverse of a set through a mapping. 16 1.24 – Composite of two mappings. 17 1.25 – Composition of mappings. 17 1.26 – Composition associativity. 18 1.27 – Left and right inverses of a mapping. 19 1.28 – Graph–of–a–mapping characterization. 21 1.29 – Partial ordering characterizations. 28 1.30 – Hasse diagrams of four posets. 29 1.31 – Hasse diagram of the direct product of a two–elements chain. 29 1.32 – Partial order and covering. 29 1.33 – Poset–isomorphism and none poset–isomorphism. 30 2.1 – Real extension of an image. 32 2.2 – Operations on images. 33 2.3 – Multiplication on images. 33 2.4 – Two images with different means. 35 2.5 – The decomposition of an image. 36 2.6 – Two images with different variances. 37 v 2.7 – An image and one of its binary component. 39 2.8 – The histogram of an image. 40 2.9 – Optimal solution for the best contrast problem. 42 2.10 – Principal component construction. 43 2.11 – Pixel values of an image. 46 2.12 – Image transform. 46 2.13 – Pixel value rotation. 47 2.14 – Mapping restriction. 48 2.15 – Nullary, unary and binary operations. 49 2.16 – Commutativity and associativity of a binary operation. 49 2.17 – Unit element for a binary operation. 50 2.18 – Distributivity of a binary operation over another one. 50 2.19 – Operations on vectors of the plane. 52 2.20 – Operation extensions. 56 3.1 – Two linear luts. 64 3.2 – Some elementary morphological luts. 65 3.3 – Some compagnion luts. 67 3.4 – Sum of two linear luts and product of a linear lut by a scalar.. 69 3.5 – Supremum and infimum of two luts. 70 3.6 – Two constant luts. 70 3.7 – An image operator. 71 3.8 – A spatially invariant pointwise operator.. 75 3.9 – Internal and external binary operations on image operators. 75 3.10 – Morphism between luts and operators. 77 3.11 – Isomorphism. 81 3.12 – Two equivalent implementations when the lut is a morphism. 82 3.13 – Two equivalent implementations when the luts are morphisms. 82 3.14– Operations on images. 84 3.15 – An enhancement operator. 87 3.16 – An analog to digital converter. ..
Recommended publications
  • Right Ideals of a Ring and Sublanguages of Science
    RIGHT IDEALS OF A RING AND SUBLANGUAGES OF SCIENCE Javier Arias Navarro Ph.D. In General Linguistics and Spanish Language http://www.javierarias.info/ Abstract Among Zellig Harris’s numerous contributions to linguistics his theory of the sublanguages of science probably ranks among the most underrated. However, not only has this theory led to some exhaustive and meaningful applications in the study of the grammar of immunology language and its changes over time, but it also illustrates the nature of mathematical relations between chunks or subsets of a grammar and the language as a whole. This becomes most clear when dealing with the connection between metalanguage and language, as well as when reflecting on operators. This paper tries to justify the claim that the sublanguages of science stand in a particular algebraic relation to the rest of the language they are embedded in, namely, that of right ideals in a ring. Keywords: Zellig Sabbetai Harris, Information Structure of Language, Sublanguages of Science, Ideal Numbers, Ernst Kummer, Ideals, Richard Dedekind, Ring Theory, Right Ideals, Emmy Noether, Order Theory, Marshall Harvey Stone. §1. Preliminary Word In recent work (Arias 2015)1 a line of research has been outlined in which the basic tenets underpinning the algebraic treatment of language are explored. The claim was there made that the concept of ideal in a ring could account for the structure of so- called sublanguages of science in a very precise way. The present text is based on that work, by exploring in some detail the consequences of such statement. §2. Introduction Zellig Harris (1909-1992) contributions to the field of linguistics were manifold and in many respects of utmost significance.
    [Show full text]
  • A Generalization of Conjugacy in Groups Rendiconti Del Seminario Matematico Della Università Di Padova, Tome 40 (1968), P
    RENDICONTI del SEMINARIO MATEMATICO della UNIVERSITÀ DI PADOVA OLAF TAMASCHKE A generalization of conjugacy in groups Rendiconti del Seminario Matematico della Università di Padova, tome 40 (1968), p. 408-427 <http://www.numdam.org/item?id=RSMUP_1968__40__408_0> © Rendiconti del Seminario Matematico della Università di Padova, 1968, tous droits réservés. L’accès aux archives de la revue « Rendiconti del Seminario Matematico della Università di Padova » (http://rendiconti.math.unipd.it/) implique l’accord avec les conditions générales d’utilisation (http://www.numdam.org/conditions). Toute utilisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit conte- nir la présente mention de copyright. Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques http://www.numdam.org/ A GENERALIZATION OF CONJUGACY IN GROUPS OLAF TAMASCHKE*) The category of all groups can be embedded in the category of all S-semigroups [I]. The S-semigroup is a mathematical structure that is based on the group structure. The intention is to use it as a tool in group theory. The Homomorphism Theorem and the Iso- morphism Theorems, the notions of normal subgroup and of sub- normal subgroup, the Theorem of Jordan and Holder, and some other statements of group theory have been generalized to ~S-semi- groups ([l] and [2]). The direction of these generalizations, and the intention behind them, may become clearer by the remark that the double coset semigroups form a category properly between the ca- tegory of all groups and the category of all S-semigroups. By the double coset semigroup G/H of a group G modulo an arbitrary subgroup H of G we mean the semigroup generated by all 9 E G, with respect to the « complex &#x3E;&#x3E; multiplication, considered as an S-semigroup.
    [Show full text]
  • Monoid Modules and Structured Document Algebra (Extendend Abstract)
    Monoid Modules and Structured Document Algebra (Extendend Abstract) Andreas Zelend Institut fur¨ Informatik, Universitat¨ Augsburg, Germany [email protected] 1 Introduction Feature Oriented Software Development (e.g. [3]) has been established in computer science as a general programming paradigm that provides formalisms, meth- ods, languages, and tools for building maintainable, customisable, and exten- sible software product lines (SPLs) [8]. An SPL is a collection of programs that share a common part, e.g., functionality or code fragments. To encode an SPL, one can use variation points (VPs) in the source code. A VP is a location in a pro- gram whose content, called a fragment, can vary among different members of the SPL. In [2] a Structured Document Algebra (SDA) is used to algebraically de- scribe modules that include VPs and their composition. In [4] we showed that we can reason about SDA in a more general way using a so called relational pre- domain monoid module (RMM). In this paper we present the following extensions and results: an investigation of the structure of transformations, e.g., a condi- tion when transformations commute, insights into the pre-order of modules, and new properties of predomain monoid modules. 2 Structured Document Algebra VPs and Fragments. Let V denote a set of VPs at which fragments may be in- serted and F(V) be the set of fragments which may, among other things, contain VPs from V. Elements of F(V) are denoted by f1, f2,... There are two special elements, a default fragment 0 and an error . An error signals an attempt to assign two or more non-default fragments to the same VP within one module.
    [Show full text]
  • Zappa-Szép Products of Semigroups
    Applied Mathematics, 2015, 6, 1047-1068 Published Online June 2015 in SciRes. http://www.scirp.org/journal/am http://dx.doi.org/10.4236/am.2015.66096 Zappa-Szép Products of Semigroups Suha Wazzan Mathematics Department, King Abdulaziz University, Jeddah, Saudi Arabia Email: [email protected] Received 12 May 2015; accepted 6 June 2015; published 9 June 2015 Copyright © 2015 by author and Scientific Research Publishing Inc. This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/ Abstract The internal Zappa-Szép products emerge when a semigroup has the property that every element has a unique decomposition as a product of elements from two given subsemigroups. The external version constructed from actions of two semigroups on one another satisfying axiom derived by G. Zappa. We illustrate the correspondence between the two versions internal and the external of Zappa-Szép products of semigroups. We consider the structure of the internal Zappa-Szép product as an enlargement. We show how rectangular band can be described as the Zappa-Szép product of a left-zero semigroup and a right-zero semigroup. We find necessary and sufficient conditions for the Zappa-Szép product of regular semigroups to again be regular, and necessary conditions for the Zappa-Szép product of inverse semigroups to again be inverse. We generalize the Billhardt λ-semidirect product to the Zappa-Szép product of a semilattice E and a group G by constructing an inductive groupoid. Keywords Inverse Semigroups, Groups, Semilattice, Rectangular Band, Semidiret, Regular, Enlargement, Inductive Groupoid 1.
    [Show full text]
  • Linear Algebra Review 3
    INTRODUCTION TO GROUP REPRESENTATIONS JULY 1, 2012 LINEAR ALGEBRA REVIEW 3 Here we describe some of the main linear algebra constructions used in representation theory. Since we are working with finite-dimensional vector spaces, a choice of basis iden- n tifies each new space with some C : What makes these interesting is how they behave with respect to linear transformation, which in turn gives ways to construct new representations from old ones. Let V and W be finite-dimensional vector spaces over C, and choose bases B = fv1; : : : ; vmg for V and C = fw1; : : : ; wng for W . Direct Sum: There are two types of direct sums, internal and external. The internal direct sum expresses a given vector space V 0 in terms of two (or more) subspaces V and W . Definition: We say V 0 is the internal direct sum of subspaces V and W , written V 0 = V + W; if each vector in V 0 can be written uniquely as a sum v0 = v + w with v in V and w in W . Equivalently, this condition holds if and only if B [ C is a basis for V 0: In turn, we also have this condition if dim(V ) + dim(W ) = dim(V 0) and V \ W = f0g: In the special case where V 0 admits an inner product and W = V ?, we call V 0 = V ⊕W an orthogonal direct sum. If B and C are orthonormal bases, then B [C is an orthonormal basis for V 0: On the other hand, the main idea here can be applied to combine two known vector spaces.
    [Show full text]
  • Simple Semirings
    International Journal of Engineering Inventions e-ISSN: 2278-7461, p-ISSN: 2319-6491 Volume 2, Issue 7 (May 2013) PP: 16-19 Simple Semirings P. Sreenivasulu Reddy1, Guesh Yfter tela2 Department of mathematics, Samara University, Samara, Afar Region, Ethiopia Post Box No.131 Abstract: Author determine different additive structures of simple semiring which was introduced by Golan [3]. We also proved some results based on the papers of Fitore Abdullahu [1]. I. Introduction This paper reveals the additive structures of simple semirings by considering that the multiplicative semigroup is rectangular band. 1.1. Definition: A semigroup S is called medial if xyzu = xzyu, for every x, y, z, u in S. 1.2. Definition: A semigroup S is called left (right) semimedial if it satisfies the identity x2yz = xyxz (zyx2 = zxyx), where x,y,z S and x, y are idempotent elements. 1.3. Definition: A semigroup S is called a semimedial if it is both left and right semimedial. Example: The semigroup S is given in the table is I-semimedial * a b c a b b b b b b b c c c c 1.4. Definition: A semigroup S is called I- left (right) commutative if it satisfies the identity xyz = yxz (zxy = zyx), where x, y are idempotent elements. 1.5. Definition: A semigroup S is called I-commutative if it satisfies the identity xy = yx, where x,y S and x, y are idempotent elements. Example: The semigroup S is given in the table is I-commutative. * a b c a b b a b b b b c c b c 1.6.
    [Show full text]
  • Some Aspects of Semirings
    Appendix A Some Aspects of Semirings Semirings considered as a common generalization of associative rings and dis- tributive lattices provide important tools in different branches of computer science. Hence structural results on semirings are interesting and are a basic concept. Semi- rings appear in different mathematical areas, such as ideals of a ring, as positive cones of partially ordered rings and fields, vector bundles, in the context of topolog- ical considerations and in the foundation of arithmetic etc. In this appendix some algebraic concepts are introduced in order to generalize the corresponding concepts of semirings N of non-negative integers and their algebraic theory is discussed. A.1 Introductory Concepts H.S. Vandiver gave the first formal definition of a semiring and developed the the- ory of a special class of semirings in 1934. A semiring S is defined as an algebra (S, +, ·) such that (S, +) and (S, ·) are semigroups connected by a(b+c) = ab+ac and (b+c)a = ba+ca for all a,b,c ∈ S.ThesetN of all non-negative integers with usual addition and multiplication of integers is an example of a semiring, called the semiring of non-negative integers. A semiring S may have an additive zero ◦ defined by ◦+a = a +◦=a for all a ∈ S or a multiplicative zero 0 defined by 0a = a0 = 0 for all a ∈ S. S may contain both ◦ and 0 but they may not coincide. Consider the semiring (N, +, ·), where N is the set of all non-negative integers; a + b ={lcm of a and b, when a = 0,b= 0}; = 0, otherwise; and a · b = usual product of a and b.
    [Show full text]
  • Isomorphism of Binary Operations in Differential Geometry
    S S symmetry Article Isomorphism of Binary Operations in Differential Geometry Nikita E. Barabanov Department of Mathematics, North Dakota State University, Fargo, ND 58108, USA; [email protected] Received: 28 August 2020; Accepted: 30 September 2020; Published: 3 October 2020 Abstract: We consider smooth binary operations invariant with respect to unitary transformations that generalize the operations of the Beltrami–Klein and Beltrami–Poincare ball models of hyperbolic geometry, known as Einstein addition and Möbius addition. It is shown that all such operations may be recovered from associated metric tensors that have a canonical form. Necessary and sufficient conditions for canonical metric tensors to generate binary operations are found. A definition of algebraic isomorphism of binary operations is given. Necessary and sufficient conditions for binary operations to be isomorphic are provided. It is proved that every algebraic automorphism gives rise to isomorphism of corresponding gyrogroups. Necessary and sufficient conditions in terms of metric tensors for binary operations to be isomorphic to Euclidean addition are given. The problem of binary operations to be isomorphic to Einstein addition is also solved in terms of necessary and sufficient conditions. We also obtain necessary and sufficient conditions for binary operations having the same function-parameter in the canonical representation of metric tensors to be isomorphic. Keywords: differential geometry; canonical metric tensor; binary operation; Einstein addition; Euclidean addition; isomorphism 1. Introduction The theory of the binary operation of the Beltrami–Klein ball model, known as Einstein addition, and the binary operation of the Beltrami–Poincare ball model of hyperbolic geometry, known as Möbius addition has been extensively developed for the last twenty years [1–36].
    [Show full text]
  • Vector Spaces
    Chapter 2 Vector Spaces 2.1 INTRODUCTION In various practical and theoretical problems, we come across a set V whose elements may be vectors in two or three dimensions or real-valued functions, which can be added and multi- plied by a constant (number) in a natural way, the result being again an element of V. Such concrete situations suggest the concept of a vector space. Vector spaces play an important role in many branches of mathematics and physics. In analysis infinite dimensional vector spaces (in fact, normed vector spaces) are more important than finite dimensional vector spaces while in linear algebra finite dimensional vector spaces are used, because they are simple and linear transformations on them can be represented by matrices. This chapter mainly deals with finite dimensional vector spaces. 2.2 DEFINITION AND EXAMPLES VECTOR SPACE. An algebraic structure (V, F, ⊕, ) consisting of a non-void set V , a field F, a binary operation ⊕ on V and an external mapping : F ×V → V associating each a ∈ F,v ∈ V to a unique element a v ∈ V is said to be a vector space over field F, if the following axioms are satisfied: V -1 (V, ⊕) is an abelian group. V -2 For all u, v ∈ V and a, b ∈ F, we have (i) a (u ⊕ v)=a u ⊕ a v, (ii) (a + b) u = a u ⊕ b u, (iii) (ab) u = a (b u), (iv) 1 u = u. The elements of V are called vectors and those of F are called scalars. The mapping is called scalar multiplication and the binary operation ⊕ is termed vector addition.
    [Show full text]
  • Chapter I: Groups 1 Semigroups and Monoids
    Chapter I: Groups 1 Semigroups and Monoids 1.1 Definition Let S be a set. (a) A binary operation on S is a map b : S × S ! S. Usually, b(x; y) is abbreviated by xy, x · y, x ∗ y, x • y, x ◦ y, x + y, etc. (b) Let (x; y) 7! x ∗ y be a binary operation on S. (i) ∗ is called associative, if (x ∗ y) ∗ z = x ∗ (y ∗ z) for all x; y; z 2 S. (ii) ∗ is called commutative, if x ∗ y = y ∗ x for all x; y 2 S. (iii) An element e 2 S is called a left (resp. right) identity, if e ∗ x = x (resp. x ∗ e = x) for all x 2 S. It is called an identity element if it is a left and right identity. (c) The set S together with a binary operation ∗ is called a semigroup if ∗ is associative. A semigroup (S; ∗) is called a monoid if it has an identity element. 1.2 Examples (a) Addition (resp. multiplication) on N0 = f0; 1; 2;:::g is a binary operation which is associative and commutative. The element 0 (resp. 1) is an identity element. Hence (N0; +) and (N0; ·) are commutative monoids. N := f1; 2;:::g together with addition is a commutative semigroup, but not a monoid. (N; ·) is a commutative monoid. (b) Let X be a set and denote by P(X) the set of its subsets (its power set). Then, (P(X); [) and (P(X); \) are commutative monoids with respective identities ; and X. (c) x∗y := (x+y)=2 defines a binary operation on Q which is commutative but not associative.
    [Show full text]
  • Traced Monoidal Categories As Algebraic Structures in Prof
    Traced monoidal categories as algebraic structures in Prof Nick Hu Jamie Vicary University of Oxford University of Cambridge [email protected] [email protected] Abstract We define a traced pseudomonoid as a pseudomonoid in a monoidal bicategory equipped with extra structure, giving a new characterisation of Cauchy complete traced monoidal cat- egories as algebraic structures in Prof, the monoidal bicategory of profunctors. This enables reasoning about the trace using the graphical calculus for monoidal bicategories, which we illustrate in detail. We apply our techniques to study traced ∗-autonomous categories, prov- ing a new equivalence result between the left ⊗-trace and the right -trace, and describing a new condition under which traced ∗-autonomous categories become` autonomous. 1 Introduction One way to interpret category theory is as a theory of systems and processes, whereby monoidal structure naturally lends itself to enable processes to be juxtaposed in parallel. Following this analogy, the presence of a trace structure embodies the notion of feedback: some output of a process is directly fed back in to one of its inputs. For instance, if we think of processes as programs, then feedback is some kind of recursion [11]. This becomes clearer still when we consider how tracing is depicted in the standard graphical calculus [16, § 5], as follows: A X A f f X (1) B X B Many important algebraic structures which are typically defined as sets-with-structure, like mon- oids, groups, or rings, may be described abstractly as algebraic structure, which when interpreted in Set yield the original definition.
    [Show full text]
  • Differential Geometry and Binary Operations
    S S symmetry Article Differential Geometry and Binary Operations Nikita E. Barabanov and Abraham A. Ungar * Department of Mathematics, North Dakota State University, Fargo, ND 58108, USA; [email protected] * Correspondence: [email protected] Received: 15 August 2020; Accepted: 13 September 2020; Published: 16 September 2020 Abstract: We derive a large set of binary operations that are algebraically isomorphic to the binary operation of the Beltrami–Klein ball model of hyperbolic geometry, known as the Einstein addition. We prove that each of these operations gives rise to a gyrocommutative gyrogroup isomorphic to Einstein gyrogroup, and satisfies a number of nice properties of the Einstein addition. We also prove that a set of cogyrolines for the Einstein addition is the same as a set of gyrolines of another binary operation. This operation is found directly and it turns out to be commutative. The same results are obtained for the binary operation of the Beltrami–Poincare disk model, known as Möbius addition. We find a canonical representation of metric tensors of binary operations isomorphic to the Einstein addition, and a canonical representation of metric tensors defined by cogyrolines of these operations. Finally, we derive a formula for the Gaussian curvature of spaces with canonical metric tensors. We obtain necessary and sufficient conditions for the Gaussian curvature to be equal to zero. Keywords: differential geometry; canonical metric tensor; binary operation; Einstein addition; gyrogroup; gyrovector space; curvature 1. Introduction The theory of gyrogroups and gyrovector spaces has been intensively developed over recent years. The structure of gyrovector subspaces and orthogonal gyrodecomposition are studied in [1].
    [Show full text]