HOME

TheInfoList



OR:

In
geometry Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
, the Minkowski sum of two sets of
position vector In geometry, a position or position vector, also known as location vector or radius vector, is a Euclidean vector that represents a point ''P'' in space. Its length represents the distance in relation to an arbitrary reference origin ''O'', and ...
s ''A'' and ''B'' in
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
is formed by adding each vector in ''A'' to each vector in ''B'': A + B = \ The Minkowski difference (also ''Minkowski subtraction'', ''Minkowski decomposition'', or ''geometric difference'') is the corresponding inverse, where (A - B) produces a set that could be summed with ''B'' to recover ''A''. This is defined as the complement of the Minkowski sum of the complement of ''A'' with the reflection of ''B'' about the origin. \begin -B &= \\\ A - B &= (A^\complement + (-B))^\complement \end This definition allows a symmetrical relationship between the Minkowski sum and difference. Note that alternately taking the sum and difference with ''B'' is not necessarily equivalent. The sum can fill gaps which the difference may not re-open, and the difference can erase small islands which the sum cannot recreate from nothing. \begin (A - B) + B &\subseteq A\\ (A + B) - B &\supseteq A\\ A - B &= (A^\complement + (-B))^\complement\\ A + B &= (A^\complement - (-B))^\complement\\ \end In 2D
image processing An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
the Minkowski sum and difference are known as
dilation wiktionary: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 ...
and
erosion Erosion is the action of surface processes (such as Surface runoff, water flow or wind) that removes soil, Rock (geology), rock, or dissolved material from one location on the Earth's crust#Crust, Earth's crust and then sediment transport, tran ...
. An alternative definition of the Minkowski difference is sometimes used for computing intersection of convex shapes. This is not equivalent to the previous definition, and is not an inverse of the sum operation. Instead it replaces the vector addition of the Minkowski sum with a vector subtraction. If the two convex shapes intersect, the resulting set will contain the origin. A - B = \ = A + (-B) The concept is named for
Hermann Minkowski Hermann Minkowski (22 June 1864 – 12 January 1909) was a mathematician and professor at the University of Königsberg, the University of Zürich, and the University of Göttingen, described variously as German, Polish, Lithuanian-German, o ...
.


Example

For example, if we have two sets ''A'' and ''B'', each consisting of three position vectors (informally, three points), representing the vertices of two
triangle A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
s in \mathbb^2, with coordinates A = \ and B = \ then their Minkowski sum is A + B = \, which comprises the vertices of a hexagon and its center. For Minkowski addition, the , \, containing only the
zero vector In mathematics, a zero element is one of several generalizations of the number zero to other algebraic structures. These alternate meanings may or may not reduce to the same thing, depending on the context. Additive identities An '' additive id ...
, 0, is an
identity element In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
: for every subset ''S'' of a vector space, S + \ = S. The
empty set In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
is important in Minkowski addition, because the empty set annihilates every other subset: for every subset ''S'' of a vector space, its sum with the empty set is empty: S + \emptyset = \emptyset. For another example, consider the Minkowski sums of open or closed balls in the field \mathbb, which is either the
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s \R or
complex number In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s \C. If B_r:= \ is the closed ball of radius r \in , \infty/math> centered at 0 in \mathbb then for any r, s \in , \infty/math>, B_r + B_s = B_ and also c B_r = B_ will hold for any scalar c \in \mathbb such that the product , c, r is defined (which happens when c \neq 0 or r \neq \infty). If r, s, and c are all non-zero then the same equalities would still hold had B_r been defined to be the open ball, rather than the closed ball, centered at 0 (the non-zero assumption is needed because the open ball of radius 0 is the empty set). The Minkowski sum of a closed ball and an open ball is an open ball. More generally, the Minkowski sum of an
open subset In mathematics, an open set is a generalization of an open interval in the real line. In a metric space (a set with a distance defined between every two points), an open set is a set that, with every point in it, contains all points of the met ...
with other set will be an open subset. If G = \ is the
graph 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 discret ...
of f(x) = \frac and if and Y = \ \times \R is the y-axis in X = \R^2 then the Minkowski sum of these two closed subsets of the plane is the
open set In mathematics, an open set is a generalization of an Interval (mathematics)#Definitions_and_terminology, open interval in the real line. In a metric space (a Set (mathematics), set with a metric (mathematics), distance defined between every two ...
G + Y = \ = \R^2 \setminus Y consisting of everything other than the y-axis. This shows that the Minkowski sum of two
closed set In geometry, topology, and related branches of mathematics, a closed set is a Set (mathematics), set whose complement (set theory), complement is an open set. In a topological space, a closed set can be defined as a set which contains all its lim ...
s is not necessarily a closed set. However, the Minkowski sum of two closed subsets will be a closed subset if at least one of these sets is also a compact subset.


Convex hulls of Minkowski sums

Minkowski addition behaves well with respect to the operation of taking
convex hull In geometry, the convex hull, convex envelope or convex closure of a shape is the smallest convex set that contains it. The convex hull may be defined either as the intersection of all convex sets containing a given subset of a Euclidean space, ...
s, as shown by the following proposition: This result holds more generally for any finite collection of non-empty sets: \operatorname\left(\sum\right) = \sum\operatorname(S_n). In mathematical terminology, the operations of Minkowski summation and of forming
convex hull In geometry, the convex hull, convex envelope or convex closure of a shape is the smallest convex set that contains it. The convex hull may be defined either as the intersection of all convex sets containing a given subset of a Euclidean space, ...
s are
commuting Commuting is periodically recurring travel between a place of residence and place of work or study, where the traveler, referred to as a commuter, leaves the boundary of their home community. By extension, it can sometimes be any regular o ...
operations. If S is a convex set then \mu S + \lambda S is also a convex set; furthermore \mu S + \lambda S = (\mu + \lambda)S for every \mu,\lambda \geq 0. Conversely, if this "
distributive property In mathematics, the distributive property of binary operations is a generalization of the distributive law, which asserts that the equality x \cdot (y + z) = x \cdot y + x \cdot z is always true in elementary algebra. For example, in elementary ...
" holds for all non-negative real numbers, \mu and \lambda, then the set is convex. The figure to the right shows an example of a non-convex set for which A + A \subsetneq 2 A. An example in one dimension is: B = , 2\cup
, 5 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
It can be easily calculated that 2 B = , 4\cup , 10/math> but B + B = , 4\cup , 7\cup , 10 hence again B + B \subsetneq 2 B. Minkowski sums act linearly on the perimeter of two-dimensional convex bodies: the perimeter of the sum equals the sum of perimeters. Additionally, if K is (the interior of) a curve of constant width, then the Minkowski sum of K and of its 180° rotation is a disk. These two facts can be combined to give a short proof of Barbier's theorem on the perimeter of curves of constant width.


Applications

Minkowski addition plays a central role in mathematical morphology. It arises in the brush-and-stroke paradigm of
2D computer graphics 2D computer graphics is the computer-based generation of digital images—mostly from two-dimensional models (such as 2D geometric models, text, and digital images) and by techniques specific to them. It may refer to the branch of computer s ...
(with various uses, notably by Donald E. Knuth in Metafont), and as the solid sweep operation of
3D computer graphics 3D computer graphics, sometimes called Computer-generated imagery, CGI, 3D-CGI or three-dimensional Computer-generated imagery, computer graphics, are graphics that use a three-dimensional representation of geometric data (often Cartesian coor ...
. It has also been shown to be closely connected to the
Earth mover's distance In computer science, the earth mover's distance (EMD) is a measure of dissimilarity between two frequency distributions, densities, or measures, over a metric space ''D''. Informally, if the distributions are interpreted as two different ways of ...
, and by extension, optimal transport.


Motion planning

Minkowski sums are used in
motion planning Motion planning, also path planning (also known as the navigation problem or the piano mover's problem) is a computational problem to find a sequence of valid configurations that moves the object from the source to destination. The term is used ...
of an object among obstacles. They are used for the computation of the configuration space, which is the set of all admissible positions of the object. In the simple model of translational motion of an object in the plane, where the position of an object may be uniquely specified by the position of a fixed point of this object, the configuration space are the Minkowski sum of the set of obstacles and the movable object placed at the origin and rotated 180 degrees.


Numerical control (NC) machining

In
numerical control Computer numerical control (CNC) or CNC machining is the automated control of machine tools by a computer. It is an evolution of numerical control (NC), where machine tools are directly managed by data storage media such as punched cards or ...
machining, the programming of the NC tool exploits the fact that the Minkowski sum of the cutting piece with its trajectory gives the shape of the cut in the material.


3D solid modeling

In OpenSCAD Minkowski sums are used to outline a shape with another shape creating a composite of both shapes.


Aggregation theory

Minkowski sums are also frequently used in aggregation theory when individual objects to be aggregated are characterized via sets.


Collision detection

Minkowski sums, specifically Minkowski differences, are often used alongside GJK algorithms to compute
collision detection Collision detection is the computational problem of detecting an intersection of two or more objects in virtual space. More precisely, it deals with the questions of ''if'', ''when'' and ''where'' two or more objects intersect. Collision detect ...
for convex hulls in physics engines.


Algorithms for computing Minkowski sums


Planar case


Two convex polygons in the plane

For two
convex polygon In geometry, a convex polygon is a polygon that is the boundary of a convex set. This means that the line segment between two points of the polygon is contained in the union of the interior and the boundary of the polygon. In particular, it is ...
s and in the plane with and vertices, their Minkowski sum is a convex polygon with at most + vertices and may be computed in time O( + ) by a very simple procedure, which may be informally described as follows. Assume that the edges of a polygon are given and the direction, say, counterclockwise, along the polygon boundary. Then it is easily seen that these edges of the convex polygon are ordered by polar angle. Let us merge the ordered sequences of the directed edges from and into a single ordered sequence . Imagine that these edges are solid
arrow An arrow is a fin-stabilized projectile launched by a bow. A typical arrow usually consists of a long, stiff, straight shaft with a weighty (and usually sharp and pointed) arrowhead attached to the front end, multiple fin-like stabilizers c ...
s which can be moved freely while keeping them parallel to their original direction. Assemble these arrows in the order of the sequence by attaching the tail of the next arrow to the head of the previous arrow. It turns out that the resulting
polygonal chain In geometry, a polygonal chain is a connected series of line segments. More formally, a polygonal chain is a curve specified by a sequence of points (A_1, A_2, \dots, A_n) called its vertices. The curve itself consists of the line segments co ...
will in fact be a convex polygon which is the Minkowski sum of and .


Other

If one polygon is convex and another one is not, the complexity of their Minkowski sum is O(''nm''). If both of them are nonconvex, their Minkowski sum complexity is O((''mn'')2).


Essential Minkowski sum

There is also a notion of the essential Minkowski sum +e of two subsets of Euclidean space. The usual Minkowski sum can be written as A + B = \left\. Thus, the essential Minkowski sum is defined by A +_ B = \left\, where ''μ'' denotes the ''n''-dimensional
Lebesgue measure In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of higher dimensional Euclidean '-spaces. For lower dimensions or , it c ...
. The reason for the term "essential" is the following property of
indicator function In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all other elements to zero. That is, if is a subset of some set , then the indicator functio ...
s: while 1_ (z) = \sup_ 1_ (x) 1_ (z - x), it can be seen that 1_ (z) = \mathop_ 1_ (x) 1_ (z - x), where "ess sup" denotes the
essential supremum In mathematics, the concepts of essential infimum and essential supremum are related to the notions of infimum and supremum, but adapted to measure theory and functional analysis, where one often deals with statements that are not valid for ''all' ...
.


''Lp'' Minkowski sum

For ''K'' and ''L'' compact convex subsets in \mathbb^n, the Minkowski sum can be described by the support function of the convex sets: h_ = h_K + h_L. For ''p'' ≥ 1, Firey defined the ''L''''p'' Minkowski sum of compact convex sets ''K'' and ''L'' in \mathbb^n containing the origin as h_^p = h_K^p + h_L^p. By the Minkowski inequality, the function ''h'' is again positive homogeneous and convex and hence the support function of a compact convex set. This definition is fundamental in the ''L''''p'' Brunn-Minkowski theory.


See also

* * , an inequality on the volumes of Minkowski sums * * * * * (a.k.a. Quermassintegral or intrinsic volume) * * * * *


Notes


References

* * * * * * . * . * . * . * *


External links

* *
Minkowski Sums
in Computational Geometry Algorithms Library
The Minkowski Sum of Two Triangles
an
The Minkowski Sum of a Disk and a Polygon
by George Beck,
The Wolfram Demonstrations Project The Wolfram Demonstrations Project is an open-source collection of interactive programmes called Demonstrations. It is hosted by Wolfram Research. At its launch, it contained 1300 demonstrations but has grown to over 10,000. The site won a Pa ...
.
Minkowski's addition of convex shapes
by Alexander Bogomolny: an applet * Wikibooks:OpenSCAD User Manual/Transformations#minkowski by Marius Kintel: Application
Application of Minkowski Addition to robotics
by Joan Gerard
Demonstration of Minkowski additivity, convex monotonicity, and other properties of the Earth Movers distance
{{Topological vector spaces Abelian group theory Affine geometry Binary operations Convex geometry Digital geometry Geometric algorithms Hermann Minkowski Sumsets Theorems in convex geometry Variational analysis