In geometry, the Minkowski sum 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:
A+B=\{a+b|a\inA, b\inB\}
The Minkowski difference (also Minkowski subtraction, Minkowski decomposition, or geometric difference) is the corresponding inverse, where
(A-B)
-B=\{-b|b\inB\}
A-B=(A\complement+(-B))\complement
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.
(A-B)+B\subseteqA
(A+B)-B\supseteqA
A-B=(A\complement+(-B))\complement
A+B=(A\complement-(-B))\complement
In 2D image processing the Minkowski sum and difference are known as dilation and erosion.
An alternative definition of the Minkowski difference is sometimes used for computing intersection of convex shapes.[2] 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|a\inA, b\inB\}=A+(-B)
The concept is named for Hermann Minkowski.
For example, if we have two sets A and B, each consisting of three position vectors (informally, three points), representing the vertices of two triangles in
R2
A=\{(1,0),(0,1),(0,-1)\}
B=\{(0,0),(1,1),(1,-1)\}
A+B=\{(1,0),(2,1),(2,-1),(0,1),(1,2),(1,0),(0,-1),(1,0),(1,-2)\},
For Minkowski addition, the,
\{0\},
S+\{0\}=S.
The empty set 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
K,
\R
\C.
Br:=\{s\inK:|s|\leqr\}
r\in[0,infty]
0
K
r,s\in[0,infty],
Br+Bs=Br+s
cBr=B|c|r
c\inK
|c|r
c ≠ 0
r ≠ infty
r,s,
c
Br
0
0
If
G=\{(x,1/x):0 ≠ x\in\R\}
f(x)=
1 | |
x |
Y=\{0\} x \R
y
X=\R2
G+Y=\{(x,y)\in\R2:x ≠ 0\}=\R2\setminusY
y
Minkowski addition behaves well with respect to the operation of taking convex hulls, as shown by the following proposition:
For all non-empty subsets
S1
S2
\operatorname{Conv}(S1+S2)=\operatorname{Conv}(S1)+\operatorname{Conv}(S2).
This result holds more generally for any finite collection of non-empty sets:
In mathematical terminology, the operations of Minkowski summation and of forming convex hulls are commuting operations.[3] [4]
If
S
\muS+λS
\muS+λS=(\mu+λ)S
for every
\mu,λ\geq0
\mu,λ
The figure to the right shows an example of a non-convex set for which
A+A\subsetneq2A.
An example in
1
B=[1,2]\cup[4,5].
2B=[2,4]\cup[8,10]
B+B=[2,4]\cup[5,7]\cup[8,10],
B+B\subsetneq2B.
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
K
180\circ
Minkowski addition plays a central role in mathematical morphology. It arises in the brush-and-stroke paradigm of 2D computer graphics (with various uses, notably by Donald E. Knuth in Metafont), and as the solid sweep operation of 3D computer graphics. It has also been shown to be closely connected to the Earth mover's distance, and by extension, optimal transport.[7]
Minkowski sums are used in motion planning 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.
In numerical control 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.
In OpenSCAD Minkowski sums are used to outline a shape with another shape creating a composite of both shapes.
Minkowski sums are also frequently used in aggregation theory when individual objects to be aggregated are characterized via sets.[8] [9]
Minkowski sums, specifically Minkowski differences, are often used alongside GJK algorithms to compute collision detection for convex hulls in physics engines.
For two convex polygons 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 arrows 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 will in fact be a convex polygon which is the Minkowski sum of and .
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).
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\{z\inRn|A\cap(z-B) ≠ \emptyset\right\}.
Thus, the essential Minkowski sum is defined by
A+eB=\left\{z\inRn|\mu\left[A\cap(z-B)\right]>0\right\},
1A(z)=
\sup | |
x\inRn |
1A(x)1B(z-x),
1 | |
A+eB |
(z)=
esssup | |
x\inRn |
1A(x)1B(z-x),
For K and L compact convex subsets in
Rn
hK+L=hK+hL.
For p ≥ 1, Firey defined the Lp Minkowski sum of compact convex sets K and L in
Rn
p | |
h | |
K+pL |
=
p | |
h | |
K |
+
p. | |
h | |
L |
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 Lp Brunn-Minkowski theory.