Morphological Operations
   HOME

TheInfoList



OR:

Mathematical morphology (MM) is a theory and technique for the analysis and processing of
geometrical Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is c ...
structures, based on
set theory Set theory is the branch of mathematical logic that studies sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory, as a branch of mathematics, is mostly concer ...
,
lattice theory A lattice is an abstract structure studied in the mathematical subdisciplines of order theory and abstract algebra. It consists of a partially ordered set in which every pair of elements has a unique supremum (also called a least upper bou ...
,
topology In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
, and
random function In probability theory and related fields, a stochastic () or random process is a mathematical object usually defined as a family of random variables. Stochastic processes are widely used as mathematical models of systems and phenomena that appea ...
s. MM is most commonly applied to
digital image A digital image is an image composed of picture elements, also known as ''pixels'', each with '' finite'', '' discrete quantities'' of numeric representation for its intensity or gray level that is an output from its two-dimensional functions f ...
s, but it can be employed as well on
graphs Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties * Graph (topology), a topological space resembling a graph in the sense of discr ...
, surface meshes,
solids Solid is one of the four fundamental states of matter (the others being liquid, gas, and plasma). The molecules in a solid are closely packed together and contain the least amount of kinetic energy. A solid is characterized by structura ...
, and many other spatial structures.
Topological In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ...
and
geometrical Geometry (; ) is, with arithmetic, one of the oldest branches of mathematics. It is concerned with properties of space such as the distance, shape, size, and relative position of figures. A mathematician who works in the field of geometry is c ...
continuous Continuity or continuous may refer to: Mathematics * Continuity (mathematics), the opposing concept to discreteness; common examples include ** Continuous probability distribution or random variable in probability and statistics ** Continuous g ...
-space concepts such as size,
shape A shape or figure is a graphical representation of an object or its external boundary, outline, or external surface, as opposed to other properties such as color, texture, or material type. A plane shape or plane figure is constrained to lie on ...
,
convexity Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytope ...
,
connectivity Connectivity may refer to: Computing and technology * Connectivity (media), the ability of the social media to accumulate economic capital from the users connections and activities * Internet connectivity, the means by which individual terminals ...
, and
geodesic distance In the mathematics, mathematical field of graph theory, the distance between two vertex (graph theory), vertices in a Graph (discrete mathematics), graph is the number of edges in a shortest path problem, shortest path (also called a graph geodes ...
, were introduced by MM on both continuous and
discrete space In topology, a discrete space is a particularly simple example of a topological space or similar structure, one in which the points form a , meaning they are ''isolated'' from each other in a certain sense. The discrete topology is the finest top ...
s. MM is also the foundation of morphological
image processing An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimension ...
, which consists of a set of operators that transform images according to the above characterizations. The basic morphological operators are
erosion Erosion is the action of surface processes (such as water flow or wind) that removes soil, rock, or dissolved material from one location on the Earth's crust, and then transports it to another location where it is deposited. Erosion is di ...
,
dilation Dilation (or dilatation) may refer to: Physiology or medicine * Cervical dilation, the widening of the cervix in childbirth, miscarriage etc. * Coronary dilation, or coronary reflex * Dilation and curettage, the opening of the cervix and surgic ...
,
opening Opening may refer to: * Al-Fatiha, "The Opening", the first chapter of the Qur'an * The Opening (album), live album by Mal Waldron * Backgammon opening * Chess opening * A title sequence or opening credits * , a term from contract bridge * , a te ...
and
closing Closing may refer to: Business and law * Closing (law), a closing argument, a summation * Closing (real estate), the final step in executing a real estate transaction * Closing (sales), the process of making a sale * Closing a business, the proc ...
. MM was originally developed for
binary image A binary image is one that consists of pixels that can have one of exactly two colors, usually black and white. Binary images are also called ''bi-level'' or ''two-level'', Pixelart made of two colours is often referred to as ''1-Bit'' or ''1b ...
s, and was later extended to
grayscale In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Graysc ...
functions Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-orie ...
and images. The subsequent generalization to
complete lattice In mathematics, a complete lattice is a partially ordered set in which ''all'' subsets have both a supremum (join) and an infimum (meet). A lattice which satisfies at least one of these properties is known as a ''conditionally complete lattice.'' S ...
s is widely accepted today as MM's theoretical foundation.


History

Mathematical Morphology was developed in 1964 by the collaborative work of
Georges Matheron Georges François Paul Marie Matheron (2 December 1930 – 7 August 2000) was a French mathematician and civil engineer of mines, known as the founder of geostatistics and a co-founder (together with Jean Serra) of mathematical morphology. In 196 ...
and
Jean Serra Jean Paul Frédéric Serra (born 1940 in Algeria) is a French mathematician and engineer, and known as one of the co-founders (together with Georges Matheron) of mathematical morphology. Biography Education Serra received a scientific baccalau ...
, at the ''
École des Mines de Paris Mines Paris - PSL, officially École nationale supérieure des mines de Paris (until May 2022 Mines ParisTech, also known as École des mines de Paris, ENSMP, Mines de Paris, les Mines, or Paris School of Mines), is a French grande école and a c ...
'',
France France (), officially the French Republic ( ), is a country primarily located in Western Europe. It also comprises of overseas regions and territories in the Americas and the Atlantic, Pacific and Indian Oceans. Its metropolitan ar ...
. Matheron supervised the
PhD PHD or PhD may refer to: * Doctor of Philosophy (PhD), an academic qualification Entertainment * '' PhD: Phantasy Degree'', a Korean comic series * ''Piled Higher and Deeper ''Piled Higher and Deeper'' (also known as ''PhD Comics''), is a newsp ...
thesis A thesis ( : theses), or dissertation (abbreviated diss.), is a document submitted in support of candidature for an academic degree or professional qualification presenting the author's research and findings.International Standard ISO 7144 ...
of Serra, devoted to the quantification of mineral characteristics from thin
cross section Cross section may refer to: * Cross section (geometry) ** Cross-sectional views in architecture & engineering 3D *Cross section (geology) * Cross section (electronics) * Radar cross section, measure of detectability * Cross section (physics) **Ab ...
s, and this work resulted in a novel practical approach, as well as theoretical advancements in
integral geometry In mathematics, integral geometry is the theory of measures on a geometrical space invariant under the symmetry group of that space. In more recent times, the meaning has been broadened to include a view of invariant (or equivariant) transformat ...
and
topology In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
. In 1968, the ''
Centre de Morphologie Mathématique ''Centre de Morphologie Mathématique'' (or Center of Mathematical Morphology, or CMM) is a research center of the ''École des Mines de Paris'', France, devoted to the research and promotion of mathematical morphology. It was created in 1968 as a ...
'' was founded by the École des Mines de Paris in
Fontainebleau Fontainebleau (; ) is a commune in the metropolitan area of Paris, France. It is located south-southeast of the centre of Paris. Fontainebleau is a sub-prefecture of the Seine-et-Marne department, and it is the seat of the ''arrondissement ...
, France, led by Matheron and Serra. During the rest of the 1960s and most of the 1970s, MM dealt essentially with
binary image A binary image is one that consists of pixels that can have one of exactly two colors, usually black and white. Binary images are also called ''bi-level'' or ''two-level'', Pixelart made of two colours is often referred to as ''1-Bit'' or ''1b ...
s, treated as
sets Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
, and generated a large number of
binary operator In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two. More specifically, an internal binary op ...
s and techniques:
Hit-or-miss transform In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration (or pattern) in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements. The result of the hit-or-m ...
,
dilation Dilation (or dilatation) may refer to: Physiology or medicine * Cervical dilation, the widening of the cervix in childbirth, miscarriage etc. * Coronary dilation, or coronary reflex * Dilation and curettage, the opening of the cervix and surgic ...
,
erosion Erosion is the action of surface processes (such as water flow or wind) that removes soil, rock, or dissolved material from one location on the Earth's crust, and then transports it to another location where it is deposited. Erosion is di ...
,
opening Opening may refer to: * Al-Fatiha, "The Opening", the first chapter of the Qur'an * The Opening (album), live album by Mal Waldron * Backgammon opening * Chess opening * A title sequence or opening credits * , a term from contract bridge * , a te ...
,
closing Closing may refer to: Business and law * Closing (law), a closing argument, a summation * Closing (real estate), the final step in executing a real estate transaction * Closing (sales), the process of making a sale * Closing a business, the proc ...
, granulometry,
thinning Thinning is a term used in agricultural sciences to mean the removal of some plants, or parts of plants, to make room for the growth of others. Selective removal of parts of a plant such as branches, buds, or roots is typically known as prunin ...
,
skeletonization Skeletonization is the state of a dead organism after undergoing decomposition.The Australian Museum. (2018). Decomposition-Body Changes. Retrieved from: https://australianmuseum.net.au/about/history/exhibitions/death-the-last-taboo/decomposit ...
,
ultimate erosion Ultimate or Ultimates may refer to: Arts, entertainment, and media Music Albums * ''Ultimate'' (Jolin Tsai album) * ''Ultimate'' (Pet Shop Boys album) *'' Ultimate!'', an album by The Yardbirds *''The Ultimate (Bryan Adams Album)'', a compilati ...
,
conditional bisector Conditional (if then) may refer to: *Causal conditional, if X then Y, where X is a cause of Y *Conditional probability, the probability of an event A given that another event B has occurred *Conditional proof, in logic: a proof that asserts a co ...
, and others. A random approach was also developed, based on novel image models. Most of the work in that period was developed in Fontainebleau. From the mid-1970s to mid-1980s, MM was generalized to
grayscale In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Graysc ...
functions and
image An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensio ...
s as well. Besides extending the main concepts (such as dilation, erosion, etc.) to functions, this generalization yielded new operators, such as morphological gradients,
top-hat transform In mathematical morphology and digital image processing, a top-hat transform is an operation that extracts small elements and details from given images. There exist two types of top-hat transform: the ''white top-hat transform'' is defined as the ...
and the
Watershed Watershed is a hydrological term, which has been adopted in other fields in a more or less figurative sense. It may refer to: Hydrology * Drainage divide, the line that separates neighbouring drainage basins * Drainage basin, called a "watershe ...
(MM's main segmentation approach). In the 1980s and 1990s, MM gained a wider recognition, as research centers in several countries began to adopt and investigate the method. MM started to be applied to a large number of imaging problems and applications, especially in the field of non-linear filtering of noisy images. In 1986, Serra further generalized MM, this time to a theoretical framework based on
complete lattice In mathematics, a complete lattice is a partially ordered set in which ''all'' subsets have both a supremum (join) and an infimum (meet). A lattice which satisfies at least one of these properties is known as a ''conditionally complete lattice.'' S ...
s. This generalization brought flexibility to the theory, enabling its application to a much larger number of structures, including color images, video,
graphs Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties * Graph (topology), a topological space resembling a graph in the sense of discr ...
,
mesh A mesh is a barrier made of connected strands of metal, fiber, or other flexible or ductile materials. A mesh is similar to a web or a net in that it has many attached or woven strands. Types * A plastic mesh may be extruded, oriented, e ...
es, etc. At the same time, Matheron and Serra also formulated a theory for morphological
filtering Filter, filtering or filters may refer to: Science and technology Computing * Filter (higher-order function), in functional programming * Filter (software), a computer program to process a data stream * Filter (video), a software component th ...
, based on the new lattice framework. The 1990s and 2000s also saw further theoretical advancements, including the concepts of ''
connections Connections may refer to: Television * '' Connections: An Investigation into Organized Crime in Canada'', a documentary television series * ''Connections'' (British documentary), a documentary television series and book by science historian Jam ...
'' and '' levelings''. In 1993, the first International Symposium on Mathematical Morphology (ISMM) took place in
Barcelona Barcelona ( , , ) is a city on the coast of northeastern Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second most populous municipality of Spain. With a population of 1.6 million within ...
,
Spain , image_flag = Bandera de España.svg , image_coat = Escudo de España (mazonado).svg , national_motto = '' Plus ultra'' ( Latin)(English: "Further Beyond") , national_anthem = (English: "Royal March") , ...
. Since then, ISMMs are organized every 2–3 years:
Fontainebleau Fontainebleau (; ) is a commune in the metropolitan area of Paris, France. It is located south-southeast of the centre of Paris. Fontainebleau is a sub-prefecture of the Seine-et-Marne department, and it is the seat of the ''arrondissement ...
,
France France (), officially the French Republic ( ), is a country primarily located in Western Europe. It also comprises of overseas regions and territories in the Americas and the Atlantic, Pacific and Indian Oceans. Its metropolitan ar ...
(1994);
Atlanta Atlanta ( ) is the capital and most populous city of the U.S. state of Georgia. It is the seat of Fulton County, the most populous county in Georgia, but its territory falls in both Fulton and DeKalb counties. With a population of 498,71 ...
,
USA The United States of America (U.S.A. or USA), commonly known as the United States (U.S. or US) or America, is a country primarily located in North America. It consists of 50 states, a federal district, five major unincorporated territor ...
(1996);
Amsterdam Amsterdam ( , , , lit. ''The Dam on the River Amstel'') is the Capital of the Netherlands, capital and Municipalities of the Netherlands, most populous city of the Netherlands, with The Hague being the seat of government. It has a population ...
,
Netherlands ) , anthem = ( en, "William of Nassau") , image_map = , map_caption = , subdivision_type = Sovereign state , subdivision_name = Kingdom of the Netherlands , established_title = Before independence , established_date = Spanish Netherl ...
(1998);
Palo Alto Palo Alto (; Spanish for "tall stick") is a charter city in the northwestern corner of Santa Clara County, California, United States, in the San Francisco Bay Area, named after a coastal redwood tree known as El Palo Alto. The city was es ...
, CA,
USA The United States of America (U.S.A. or USA), commonly known as the United States (U.S. or US) or America, is a country primarily located in North America. It consists of 50 states, a federal district, five major unincorporated territor ...
(2000); Sydney, Australia (2002);
Paris Paris () is the capital and most populous city of France, with an estimated population of 2,165,423 residents in 2019 in an area of more than 105 km² (41 sq mi), making it the 30th most densely populated city in the world in 2020. ...
,
France France (), officially the French Republic ( ), is a country primarily located in Western Europe. It also comprises of overseas regions and territories in the Americas and the Atlantic, Pacific and Indian Oceans. Its metropolitan ar ...
(2005);
Rio de Janeiro Rio de Janeiro ( , , ; literally 'River of January'), or simply Rio, is the capital of the Rio de Janeiro (state), state of the same name, Brazil's List of Brazilian states by population, third-most populous state, and the List of largest citi ...
,
Brazil Brazil ( pt, Brasil; ), officially the Federative Republic of Brazil (Portuguese: ), is the largest country in both South America and Latin America. At and with over 217 million people, Brazil is the world's fifth-largest country by area ...
(2007);
Groningen Groningen (; gos, Grunn or ) is the capital city and main municipality of Groningen province in the Netherlands. The ''capital of the north'', Groningen is the largest place as well as the economic and cultural centre of the northern part of t ...
,
Netherlands ) , anthem = ( en, "William of Nassau") , image_map = , map_caption = , subdivision_type = Sovereign state , subdivision_name = Kingdom of the Netherlands , established_title = Before independence , established_date = Spanish Netherl ...
(2009); Intra (
Verbania Verbania (, , ) is the most populous ''comune'' (municipality) and the capital city of the province of Verbano-Cusio-Ossola in the Piedmont region of northwest Italy. It is situated on the shore of Lake Maggiore, about north-west of Milan and a ...
),
Italy Italy ( it, Italia ), officially the Italian Republic, ) or the Republic of Italy, is a country in Southern Europe. It is located in the middle of the Mediterranean Sea, and its territory largely coincides with the homonymous geographical ...
(2011);
Uppsala Uppsala (, or all ending in , ; archaically spelled ''Upsala'') is the county seat of Uppsala County and the List of urban areas in Sweden by population, fourth-largest city in Sweden, after Stockholm, Gothenburg, and Malmö. It had 177,074 inha ...
, Sweden (2013);
Reykjavík Reykjavík ( ; ) is the capital and largest city of Iceland. It is located in southwestern Iceland, on the southern shore of Faxaflói bay. Its latitude is 64°08' N, making it the world's northernmost capital of a sovereign state. With a pop ...
, Iceland (2015); and
Fontainebleau Fontainebleau (; ) is a commune in the metropolitan area of Paris, France. It is located south-southeast of the centre of Paris. Fontainebleau is a sub-prefecture of the Seine-et-Marne department, and it is the seat of the ''arrondissement ...
,
France France (), officially the French Republic ( ), is a country primarily located in Western Europe. It also comprises of overseas regions and territories in the Americas and the Atlantic, Pacific and Indian Oceans. Its metropolitan ar ...
(2017).


References

* "Introduction" by Pierre Soille, in ( Serra ''et al.'' (Eds.) 1994), pgs. 1-4. * "Appendix A: The 'Centre de Morphologie Mathématique', an overview" by Jean Serra, in ( Serra ''et al.'' (Eds.) 1994), pgs. 369-374. *"Foreword" in ( Ronse ''et al.'' (Eds.) 2005)


Binary morphology

In binary morphology, an image is viewed as a
subset In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
of a
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean sp ...
\mathbb^d or the integer grid \mathbb^d, for some dimension ''d''.


Structuring element

The basic idea in binary morphology is to probe an image with a simple, pre-defined shape, drawing conclusions on how this shape fits or misses the shapes in the image. This simple "probe" is called the
structuring element In mathematical morphology, a structuring element is a shape, used to probe or interact with a given image, with the purpose of drawing conclusions on how this shape fits or misses the shapes in the image. It is typically used in morphological oper ...
, and is itself a binary image (i.e., a subset of the space or grid). Here are some examples of widely used structuring elements (denoted by ''B''): * Let E = \mathbb^2; ''B'' is an open disk of radius ''r'', centered at the origin. * Let E = \mathbb^2; ''B'' is a 3 × 3 square, that is, ''B'' = . * Let E = \mathbb^2; ''B'' is the "cross" given by ''B'' = .


Basic operators

The basic operations are shift-invariant ( translation invariant) operators strongly related to
Minkowski addition In geometry, the Minkowski sum (also known as dilation) of two sets of position vectors ''A'' and ''B'' in Euclidean space is formed by adding each vector in ''A'' to each vector in ''B'', i.e., the set : A + B = \. Analogously, the Minkowski ...
. Let ''E'' be a Euclidean space or an integer grid, and ''A'' a binary image in ''E''.


Erosion

The
erosion Erosion is the action of surface processes (such as water flow or wind) that removes soil, rock, or dissolved material from one location on the Earth's crust, and then transports it to another location where it is deposited. Erosion is di ...
of the binary image ''A'' by the structuring element ''B'' is defined by : A \ominus B = \, where ''B''''z'' is the translation of ''B'' by the vector ''z'', i.e., B_z = \, \forall z \in E. When the structuring element ''B'' has a center (e.g., ''B'' is a disk or a square), and this center is located on the origin of ''E'', then the erosion of ''A'' by ''B'' can be understood as the
locus Locus (plural loci) is Latin for "place". It may refer to: Entertainment * Locus (comics), a Marvel Comics mutant villainess, a member of the Mutant Liberation Front * ''Locus'' (magazine), science fiction and fantasy magazine ** ''Locus Award ...
of points reached by the center of ''B'' when ''B'' moves inside ''A''. For example, the erosion of a square of side 10, centered at the origin, by a disc of radius 2, also centered at the origin, is a square of side 6 centered at the origin. The erosion of ''A'' by ''B'' is also given by the expression A \ominus B = \bigcap_ A_. Example application: Assume we have received a fax of a dark photocopy. Everything looks like it was written with a pen that is bleeding. Erosion process will allow thicker lines to get skinny and detect the hole inside the letter "o".


Dilation

The
dilation Dilation (or dilatation) may refer to: Physiology or medicine * Cervical dilation, the widening of the cervix in childbirth, miscarriage etc. * Coronary dilation, or coronary reflex * Dilation and curettage, the opening of the cervix and surgic ...
of ''A'' by the structuring element ''B'' is defined by : A \oplus B = \bigcup_ A_b. The dilation is commutative, also given by A \oplus B = B \oplus A = \bigcup_ B_a. If ''B'' has a center on the origin, as before, then the dilation of ''A'' by ''B'' can be understood as the locus of the points covered by ''B'' when the center of ''B'' moves inside ''A''. In the above example, the dilation of the square of side 10 by the disk of radius 2 is a square of side 14, with rounded corners, centered at the origin. The radius of the rounded corners is 2. The dilation can also be obtained by A \oplus B = \, where ''B''''s'' denotes the
symmetric Symmetry (from grc, συμμετρία "agreement in dimensions, due proportion, arrangement") in everyday language refers to a sense of harmonious and beautiful proportion and balance. In mathematics, "symmetry" has a more precise definit ...
of ''B'', that is, B^s = \. Example application: dilation is the dual operation of the erosion. Figures that are very lightly drawn get thick when "dilated". Easiest way to describe it is to imagine the same fax/text is written with a thicker pen.


Opening

The
opening Opening may refer to: * Al-Fatiha, "The Opening", the first chapter of the Qur'an * The Opening (album), live album by Mal Waldron * Backgammon opening * Chess opening * A title sequence or opening credits * , a term from contract bridge * , a te ...
of ''A'' by ''B'' is obtained by the erosion of ''A'' by ''B'', followed by dilation of the resulting image by ''B'': : A \circ B = (A \ominus B) \oplus B. The opening is also given by A \circ B = \bigcup_ B_x, which means that it is the locus of translations of the structuring element ''B'' inside the image ''A''. In the case of the square of side 10, and a disc of radius 2 as the structuring element, the opening is a square of side 10 with rounded corners, where the corner radius is 2. Example application: Let's assume someone has written a note on a non-soaking paper and that the writing looks as if it is growing tiny hairy roots all over. Opening essentially removes the outer tiny "hairline" leaks and restores the text. The side effect is that it rounds off things. The sharp edges start to disappear.


Closing

The
closing Closing may refer to: Business and law * Closing (law), a closing argument, a summation * Closing (real estate), the final step in executing a real estate transaction * Closing (sales), the process of making a sale * Closing a business, the proc ...
of ''A'' by ''B'' is obtained by the dilation of ''A'' by ''B'', followed by erosion of the resulting structure by ''B'': : A \bullet B = (A \oplus B) \ominus B. The closing can also be obtained by A \bullet B = (A^c \circ B^s)^c, where ''X''''c'' denotes the
complement A complement is something that completes something else. Complement may refer specifically to: The arts * Complement (music), an interval that, when added to another, spans an octave ** Aggregate complementation, the separation of pitch-clas ...
of ''X'' relative to ''E'' (that is, X^c = \). The above means that the closing is the complement of the locus of translations of the symmetric of the structuring element outside the image ''A''.


Properties of the basic operators

Here are some properties of the basic binary morphological operators (dilation, erosion, opening and closing): * They are translation invariant. * They are
increasing In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of orde ...
, that is, if A\subseteq C, then A\oplus B \subseteq C\oplus B, and A\ominus B \subseteq C\ominus B, etc. * The dilation is
commutative In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name o ...
: A\oplus B = B\oplus A . * If the origin of ''E'' belongs to the structuring element ''B'', then A\ominus B\subseteq A\circ B\subseteq A\subseteq A\bullet B\subseteq A\oplus B. * The dilation is
associative In mathematics, the associative property is a property of some binary operations, which means that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement ...
, i.e., (A\oplus B)\oplus C = A\oplus (B\oplus C). Moreover, the erosion satisfies (A\ominus B)\ominus C = A\ominus (B\oplus C). * Erosion and dilation satisfy the duality A \oplus B = (A^ \ominus B^)^. * Opening and closing satisfy the duality A \bullet B = (A^ \circ B^)^. * The dilation is distributive over
set union In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection. It is one of the fundamental operations through which sets can be combined and related to each other. A refers to a union of ze ...
* The erosion is distributive over
set intersection In set theory, the intersection of two sets A and B, denoted by A \cap B, is the set containing all elements of A that also belong to B or equivalently, all elements of B that also belong to A. Notation and terminology Intersection is writ ...
* The dilation is a
pseudo-inverse In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element ''x'' is an element ''y'' that has some properties of an inverse element but not necessarily all of them. The purpose of constructing a generalized in ...
of the erosion, and vice versa, in the following sense: A\subseteq (C\ominus B) if and only if (A\oplus B)\subseteq C. * Opening and closing are
idempotent Idempotence (, ) is the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application. The concept of idempotence arises in a number of pl ...
. * Opening is anti-extensive, i.e., A\circ B\subseteq A, whereas the closing is ''extensive'', i.e., A\subseteq A\bullet B.


Other operators and tools

*
Hit-or-miss transform In mathematical morphology, hit-or-miss transform is an operation that detects a given configuration (or pattern) in a binary image, using the morphological erosion operator and a pair of disjoint structuring elements. The result of the hit-or-m ...
* Pruning transform *
Morphological skeleton In digital image processing, morphological skeleton is a skeleton (or medial axis) representation of a shape or binary image, computed by means of morphological operators. Morphological skeletons are of two kinds: * Those defined by means of mor ...
*
Filtering by reconstruction In a mixed-signal system (analog and digital), a reconstruction filter, sometimes called an anti-imaging filter, is used to construct a smooth analog signal from a digital input, as in the case of a digital to analog converter ( DAC) or other sampl ...
*
Ultimate erosions Ultimate or Ultimates may refer to: Arts, entertainment, and media Music Albums * ''Ultimate'' (Jolin Tsai album) * ''Ultimate'' (Pet Shop Boys album) *'' Ultimate!'', an album by The Yardbirds *''The Ultimate (Bryan Adams Album)'', a compilati ...
and
conditional bisector Conditional (if then) may refer to: *Causal conditional, if X then Y, where X is a cause of Y *Conditional probability, the probability of an event A given that another event B has occurred *Conditional proof, in logic: a proof that asserts a co ...
s * Granulometry *
Geodesic distance function In geometry, a geodesic () is a curve representing in some sense the shortest path ( arc) between two points in a surface, or more generally in a Riemannian manifold. The term also has meaning in any differentiable manifold with a connection. ...
s


Grayscale morphology

In
grayscale In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Graysc ...
morphology, images are
functions Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-orie ...
mapping a
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean sp ...
or grid ''E'' into \mathbb\cup\, where \mathbb is the set of reals, \infty is an element larger than any real number, and -\infty is an element smaller than any real number. Grayscale structuring elements are also functions of the same format, called "structuring functions". Denoting an image by ''f''(''x'') the structuring function by ''b''(''x'') and the support of ''g'' by ''B'', the grayscale dilation of ''f'' by ''b'' is given by : (f \oplus b)(x) = \sup_ (y) + b(x - y) where "sup" denotes the
supremum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest l ...
. Similarly, the erosion of ''f'' by ''b'' is given by : (f \ominus b)(x) = \inf_ (y) - b(y - x) where "inf" denotes the
infimum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest ...
. Just like in binary morphology, the opening and closing are given respectively by : f \circ b = (f \ominus b) \oplus b, : f \bullet b = (f \oplus b) \ominus b.


Flat structuring functions

It is common to use flat structuring elements in morphological applications. Flat structuring functions are functions ''b''(''x'') in the form : b(x) = \begin 0, & x \in B, \\ -\infty & \text, \end where B \subseteq E. In this case, the dilation and erosion are greatly simplified, and given respectively by : (f \oplus b)(x) = \sup_ f(x + z), : (f \ominus b)(x) = \inf_ f(x + z). In the bounded, discrete case (''E'' is a grid and ''B'' is bounded), the
supremum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest l ...
and
infimum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest ...
operators can be replaced by the
maximum In mathematical analysis, the maxima and minima (the respective plurals of maximum and minimum) of a function, known collectively as extrema (the plural of extremum), are the largest and smallest value of the function, either within a given r ...
and
minimum In mathematical analysis, the maxima and minima (the respective plurals of maximum and minimum) of a function, known collectively as extrema (the plural of extremum), are the largest and smallest value of the function, either within a given r ...
. Thus, dilation and erosion are particular cases of
order statistics In statistics, the ''k''th order statistic of a statistical sample is equal to its ''k''th-smallest value. Together with rank statistics, order statistics are among the most fundamental tools in non-parametric statistics and inference. Importa ...
filters, with dilation returning the maximum value within a moving window (the symmetric of the structuring function support ''B''), and the erosion returning the minimum value within the moving window ''B''. In the case of flat structuring element, the morphological operators depend only on the relative ordering of
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device. In most digital display devices, pixels are the s ...
values, regardless their numerical values, and therefore are especially suited to the processing of
binary images A binary image is one that consists of pixels that can have one of exactly two colors, usually black and white. Binary images are also called ''bi-level'' or ''two-level'', Pixelart made of two colours is often referred to as ''1-Bit'' or ''1b ...
and
grayscale images In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample representing only an ''amount'' of light; that is, it carries only intensity information. Gray ...
whose
light transfer function Light or visible light is electromagnetic radiation that can be visual perception, perceived by the human eye. Visible light is usually defined as having wavelengths in the range of 400–700 nanometres (nm), corresponding to frequency, fr ...
is not known.


Other operators and tools

*
Morphological gradient In mathematical morphology and digital image processing, a morphological gradient is the difference between the dilation and the erosion of a given image. It is an image where each pixel value (typically non-negative) indicates the contrast intensi ...
s *
Top-hat transform In mathematical morphology and digital image processing, a top-hat transform is an operation that extracts small elements and details from given images. There exist two types of top-hat transform: the ''white top-hat transform'' is defined as the ...
*
Watershed algorithm In the study of image processing, a watershed is a transformation defined on a grayscale image. The name refers metaphorically to a geological ''watershed'', or drainage divide, which separates adjacent drainage basins. The watershed transformation ...
By combining these operators one can obtain algorithms for many image processing tasks, such as feature detection,
image segmentation In digital image processing and computer vision, image segmentation is the process of partitioning a digital image into multiple image segments, also known as image regions or image objects ( sets of pixels). The goal of segmentation is to simpl ...
,
image sharpening Image editing encompasses the processes of altering images, whether they are digital photographs, traditional photo-chemical photographs, or illustrations. Traditional analog image editing is known as photo retouching, using tools such as a ...
, image filtering, and
classification Classification is a process related to categorization, the process in which ideas and objects are recognized, differentiated and understood. Classification is the grouping of related facts into classes. It may also refer to: Business, organizat ...
. Along this line one should also look into
Continuous Morphology Continuity or continuous may refer to: Mathematics * Continuity (mathematics), the opposing concept to discreteness; common examples include ** Continuous probability distribution or random variable in probability and statistics ** Continuous ...
G. Sapiro, R. Kimmel, D. Shaked, B. Kimia, and A. M. Bruckstein.
''Implementing continuous-scale morphology via curve evolution''
Pattern Recognition, 26(9):1363–1372, 1993.


Mathematical morphology on complete lattices

Complete lattice In mathematics, a complete lattice is a partially ordered set in which ''all'' subsets have both a supremum (join) and an infimum (meet). A lattice which satisfies at least one of these properties is known as a ''conditionally complete lattice.'' S ...
s are
partially ordered set In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binar ...
s, where every subset has an
infimum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest ...
and a
supremum In mathematics, the infimum (abbreviated inf; plural infima) of a subset S of a partially ordered set P is a greatest element in P that is less than or equal to each element of S, if such an element exists. Consequently, the term ''greatest l ...
. In particular, it contains a
least element In mathematics, especially in order theory, the greatest element of a subset S of a partially ordered set (poset) is an element of S that is greater than every other element of S. The term least element is defined dually, that is, it is an ele ...
and a
greatest element In mathematics, especially in order theory, the greatest element of a subset S of a partially ordered set (poset) is an element of S that is greater than every other element of S. The term least element is defined dually, that is, it is an el ...
(also denoted "universe").


Adjunctions (dilation and erosion)

Let (L,\leq) be a complete lattice, with infimum and supremum symbolized by \wedge and \vee, respectively. Its universe and least element are symbolized by ''U'' and \emptyset, respectively. Moreover, let \ be a collection of elements from ''L''. A dilation is any operator \delta\colon L\rightarrow L that distributes over the supremum, and preserves the least element. I.e.: * \bigvee_\delta(X_i)=\delta\left(\bigvee_ X_i\right), * \delta(\emptyset)=\emptyset. An erosion is any operator \varepsilon\colon L\rightarrow L that distributes over the infimum, and preserves the universe. I.e.: * \bigwedge_\varepsilon(X_i)=\varepsilon\left(\bigwedge_ X_i\right), * \varepsilon(U)=U. Dilations and erosions form
Galois connection In mathematics, especially in order theory, a Galois connection is a particular correspondence (typically) between two partially ordered sets (posets). Galois connections find applications in various mathematical theories. They generalize the fu ...
s. That is, for every dilation \delta there is one and only one erosion \varepsilon that satisfies : X\leq \varepsilon(Y)\Leftrightarrow \delta(X)\leq Y for all X,Y\in L. Similarly, for every erosion there is one and only one dilation satisfying the above connection. Furthermore, if two operators satisfy the connection, then \delta must be a dilation, and \varepsilon an erosion. Pairs of erosions and dilations satisfying the above connection are called "adjunctions", and the erosion is said to be the adjoint erosion of the dilation, and vice versa.


Opening and closing

For every adjunction (\varepsilon,\delta), the morphological opening \gamma \colon L \to L and morphological closing \phi \colon L \to L are defined as follows: : \gamma = \delta\varepsilon, : \phi = \varepsilon\delta. The morphological opening and closing are particular cases of
algebraic opening Algebraic may refer to any subject related to algebra in mathematics and related branches like algebraic number theory and algebraic topology. The word algebra itself has several meanings. Algebraic may also refer to: * Algebraic data type, a d ...
(or simply opening) and
algebraic closing Algebraic may refer to any subject related to algebra in mathematics and related branches like algebraic number theory and algebraic topology. The word algebra itself has several meanings. Algebraic may also refer to: * Algebraic data type, a dat ...
(or simply closing). Algebraic openings are operators in ''L'' that are idempotent, increasing, and anti-extensive. Algebraic closings are operators in ''L'' that are idempotent, increasing, and extensive.


Particular cases

Binary morphology is a particular case of lattice morphology, where ''L'' is the
power set In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is ...
of ''E'' (Euclidean space or grid), that is, ''L'' is the set of all subsets of ''E'', and \leq is the
set inclusion In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
. In this case, the infimum is
set intersection In set theory, the intersection of two sets A and B, denoted by A \cap B, is the set containing all elements of A that also belong to B or equivalently, all elements of B that also belong to A. Notation and terminology Intersection is writ ...
, and the supremum is
set union In set theory, the union (denoted by ∪) of a collection of sets is the set of all elements in the collection. It is one of the fundamental operations through which sets can be combined and related to each other. A refers to a union of ze ...
. Similarly, grayscale morphology is another particular case, where ''L'' is the set of functions mapping ''E'' into \mathbb\cup\, and \leq, \vee, and \wedge, are the point-wise order, supremum, and infimum, respectively. That is, is ''f'' and ''g'' are functions in ''L'', then f\leq g if and only if f(x)\leq g(x),\forall x\in E; the infimum f\wedge g is given by (f\wedge g)(x)=f(x)\wedge g(x); and the supremum f\vee g is given by (f\vee g)(x)=f(x)\vee g(x).


See also

*
H-maxima transform In mathematical morphology Mathematical morphology (MM) is a theory and technique for the analysis and processing of geometrical structures, based on set theory, lattice theory, topology, and random functions. MM is most commonly applied to digit ...


Notes


References

* ''Image Analysis and Mathematical Morphology'' by Jean Serra, (1982) * ''Image Analysis and Mathematical Morphology, Volume 2: Theoretical Advances'' by Jean Serra, (1988) * ''An Introduction to Morphological Image Processing'' by Edward R. Dougherty, (1992) * ''Morphological Image Analysis; Principles and Applications'' by Pierre Soille, (1999), 2nd edition (2003) * ''Mathematical Morphology and its Application to Signal Processing'', J. Serra and Ph. Salembier (Eds.), proceedings of the 1st International workshop on mathematical morphology and its applications to signal processing (ISMM'93), (1993) * ''Mathematical Morphology and Its Applications to Image Processing'', J. Serra and P. Soille (Eds.), proceedings of the 2nd international symposium on mathematical morphology (ISMM'94), (1994) * ''Mathematical Morphology and its Applications to Image and Signal Processing'', Henk J.A.M. Heijmans and Jos B.T.M. Roerdink (Eds.), proceedings of the 4th international symposium on mathematical morphology (ISMM'98), (1998) * ''Mathematical Morphology: 40 Years On'', Christian Ronse, Laurent Najman, and Etienne Decencière (Eds.), (2005) * ''Mathematical Morphology and its Applications to Signal and Image Processing'', Gerald J.F. Banon, Junior Barrera, Ulisses M. Braga-Neto (Eds.), proceedings of the 8th international symposium on mathematical morphology (ISMM'07), (2007) * ''Mathematical morphology: from theory to applications'', Laurent Najman and Hugues Talbot (Eds). ISTE-Wiley. {{ISBN, 978-1-84821-215-2. (520 pp.) June 2010


External links


Online course on mathematical morphology
by Jean Serra (in English, French, and Spanish)
Center of Mathematical Morphology
Paris School of Mines
History of Mathematical Morphology
by Georges Matheron and Jean Serra
Morphology Digest, a newsletter on mathematical morphology
by Pierre Soille
Lectures on Image Processing: A collection of 18 lectures in pdf format from Vanderbilt University. Lectures 16-18 are on Mathematical Morphology
by Alan Peters

by
Robyn Owens Robyn Anne Owens is an Australian applied mathematician and computer scientist known for her research in computer vision and face recognition, and on the non-invasive imaging of lactation. Formerly a professor at the University of Western Austral ...

SMIL - A Simple (but efficient) Morphological Image Library (from Ecole des Mines de Paris)

Free SIMD Optimized Image processing library



FILTERS : a free open source image processing library


* ttp://www.johanneshjorth.se/SynD Morphological analysis of neurons using Matlab Digital geometry Image processing