Minkowski addition explained

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)

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.[1]

-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.

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 triangles in

R2

, with coordinates

A=\{(1,0),(0,1),(0,-1)\}

and

B=\{(0,0),(1,1),(1,-1)\}

then their Minkowski sum is

A+B=\{(1,0),(2,1),(2,-1),(0,1),(1,2),(1,0),(0,-1),(1,0),(1,-2)\},

which comprises the vertices of a hexagon and its center .

For Minkowski addition, the,

\{0\},

containing only the zero vector, 0, is an identity element: for every subset S of a vector space,

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,

which is either the real numbers

\R

or complex numbers

\C.

If

Br:=\{s\inK:|s|\leqr\}

is the closed ball of radius

r\in[0,infty]

centered at

0

in

K

then for any

r,s\in[0,infty],

Br+Bs=Br+s

and also

cBr=B|c|r

will hold for any scalar

c\inK

such that the product

|c|r

is defined (which happens when

c0

or

rinfty

). If

r,s,

and

c

are all non-zero then the same equalities would still hold had

Br

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 with other set will be an open subset.

If

G=\{(x,1/x):0x\in\R\}

is the graph of

f(x)=

1
x
and if and

Y=\{0\} x \R

is the

y

-axis in

X=\R2

then the Minkowski sum of these two closed subsets of the plane is the open set

G+Y=\{(x,y)\in\R2:x0\}=\R2\setminusY

consisting of everything other than the

y

-axis. This shows that the Minkowski sum of two closed sets 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 hulls, as shown by the following proposition:

For all non-empty subsets

S1

and

S2

of a real vector space, the convex hull of their Minkowski sum is the Minkowski sum of their convex hulls:

\operatorname{Conv}(S1+S2)=\operatorname{Conv}(S1)+\operatorname{Conv}(S2).

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 hulls are commuting operations.[3] [4]

If

S

is a convex set then

\muS+λS

is also a convex set; furthermore

\muS+λS=(\mu+λ)S

for every

\mu,λ\geq0

. Conversely, if this "distributive property" holds for all non-negative real numbers,

\mu,λ

, then the set is convex.[5]

The figure to the right shows an example of a non-convex set for which

A+A\subsetneq2A.

An example in

1

dimension is:

B=[1,2]\cup[4,5].

It can be easily calculated that

2B=[2,4]\cup[8,10]

but

B+B=[2,4]\cup[5,7]\cup[8,10],

hence again

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

is (the interior of) a curve of constant width, then the Minkowski sum of

K

and of its

180\circ

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.[6]

Applications

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]

Motion planning

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.

Numerical control (NC) machining

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.

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.[8] [9]

Collision detection

Minkowski sums, specifically Minkowski differences, are often used alongside GJK algorithms to compute collision detection for convex hulls in physics engines.

Algorithms for computing Minkowski sums

Planar case

Two convex polygons in the plane

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 .

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\{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\},

where μ denotes the n-dimensional Lebesgue measure. The reason for the term "essential" is the following property of indicator functions: while

1A(z)=

\sup
x\inRn

1A(x)1B(z-x),

it can be seen that
1
A+eB

(z)=

esssup
x\inRn

1A(x)1B(z-x),

where "ess sup" denotes the essential supremum.

Lp Minkowski sum

For K and L compact convex subsets in

Rn

, the Minkowski sum can be described by the support function of the convex sets:

hK+L=hK+hL.

For p ≥ 1, Firey defined the Lp Minkowski sum of compact convex sets K and L in

Rn

containing the origin as
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.

See also

References

External links

Notes and References

  1. Li . Wei . Fall 2011 . GPU-Based Computation of Voxelized Minkowski Sums with Applications . PhD . . 13–14 . 2023-01-10.
  2. Lozano-Pérez . Tomás . February 1983 . Spatial Planning: A Configuration Space Approach . . C-32 . 2 . 111 . 10.1109/TC.1983.1676196 . 1721.1/5684 . 18978404 . 2023-01-10.
  3. Theorem 3 (pages 562–563): M.. Krein. Mark Krein. V.. Šmulian. 1940. On regularly convex sets in the space conjugate to a Banach space. Annals of Mathematics . Second Series. 41. 3 . 556–583. 10.2307/1968735. 2009 . 1968735.
  4. For the commutativity of Minkowski addition and convexification, see Theorem 1.1.2 (pages 2–3) in Schneider; this reference discusses much of the literature on the convex hulls of Minkowski sumsets in its "Chapter 3 Minkowski addition" (pages 126–196): Book: Schneider, Rolf. Convex bodies: The Brunn–Minkowski theory. Encyclopedia of mathematics and its applications. 44. Cambridge University Press. Cambridge. 1993. xiv+490. 978-0-521-35220-8. 1216521.
  5. Chapter 1: Book: Schneider, Rolf. Convex bodies: The Brunn–Minkowski theory. Encyclopedia of mathematics and its applications. 44. Cambridge University Press. Cambridge. 1993. xiv+490. 978-0-521-35220-8. 1216521.
  6. http://www.cut-the-knot.org/ctk/Barbier.shtml The Theorem of Barbier (Java)
  7. Discrete Applied Mathematics . Properties of the d-dimensional earth mover's problem . Kline . Jeffery . 265 . 2019 . 128–141 . 10.1016/j.dam.2019.02.042. 127962240 . free .
  8. Zelenyuk . V . 2015 . Aggregation of scale efficiency . European Journal of Operational Research . 240 . 1. 269–277 . 10.1016/j.ejor.2014.06.038.
  9. Mayer . A. . Zelenyuk . V. . 2014 . Aggregation of Malmquist productivity indexes allowing for reallocation of resources . European Journal of Operational Research . 238 . 3. 774–785 . 10.1016/j.ejor.2014.04.003.