SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
The Minkowski sum
(applied to 2d geometry)
cloderic.mars@gmail.com
http://www.crowdscontrol.net
clodericmars
Formal definition
A and B are two sets
A⊕B is the Minkowski sum of A and B
A⊕B = {a+b! a∈A, b∈B}
What if A and B are 2D shapes ?
Hard to visualize ?
Let’s see some examples...
Example 1
A is any polygon
B is a convex polygon
A
B
x
y
A⊕B
x
y
Example 2
A is any polygon
B is any disc
A
B
x
y
A⊕B
x
y
Intuitive definition
What is A⊕B ?
Take B
Dip it into some paint
Put its (0,0) on A border
Translate it along the A
perimeter
The painted area is A⊕B
What can you do with that ?
Notably, motion planning
Free space
A is an obstacle
any 2D polygon
B is a moving object
2D translation : t
shape : a convex polygon or a disc
t ∈ A⊕-B collision
Example 1
A is any polygon
B is a convex polygon
A
B
x
y
-B
A⊕-B
x
y
x
y t
t ∉ A⊕-B no collision
x
y
t
t ∈ A⊕-B collision
Example 2
A is any polygon
B is any disc
A
B=-B
x
y
A⊕-B
x
y
A⊕-B
x
y
t
t ∉ A⊕-B no collision
A⊕-B
x
y
t
t ∈ A⊕-B collision
How is it computed ?
Two convex polygons
ConvexPolygon minkowskiSum(ConvexPolygon a, ConvexPolygon b)
{
Vertex[] computedVertices;
foreach(Vertex vA in a)
{
foreach(Vertex vB in b)
{
computedVertices.push_back(vA+vB);
}
}
return convexHull(computedVertices);
}
Any polygons
Method 1 : decomposition
decompose in convex polygons
compute the sum of each couple
the final sum is the union of each sub-sum
Method 2 : convolution
cf. sources
Polygon offsetting
P is a polygon
D is a disc of radius r
Computing P⊕D = Offsetting P by a radius r
Computation
Easy for a convex polygon
cf. sources
Sources
http://www.cgal.org/Manual/3.4/doc_html/
cgal_manual/Minkowski_sum_2/Chapter_main.html
http://wapedia.mobi/en/Minkowski_addition

Más contenido relacionado

La actualidad más candente

Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
Ankit Garg
 
はじパタ8章 svm
はじパタ8章 svmはじパタ8章 svm
はじパタ8章 svm
tetsuro ito
 
Multiplicative Interaction Models in R
Multiplicative Interaction Models in RMultiplicative Interaction Models in R
Multiplicative Interaction Models in R
htstatistics
 
パターン認識 08 09 k-近傍法 lvq
パターン認識 08 09 k-近傍法 lvqパターン認識 08 09 k-近傍法 lvq
パターン認識 08 09 k-近傍法 lvq
sleipnir002
 

La actualidad más candente (20)

Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
パターン認識と機械学習 §6.2 カーネル関数の構成
パターン認識と機械学習 §6.2 カーネル関数の構成パターン認識と機械学習 §6.2 カーネル関数の構成
パターン認識と機械学習 §6.2 カーネル関数の構成
 
『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)
 
死にたくない
死にたくない死にたくない
死にたくない
 
MLaPP 9章 「一般化線形モデルと指数型分布族」
MLaPP 9章 「一般化線形モデルと指数型分布族」MLaPP 9章 「一般化線形モデルと指数型分布族」
MLaPP 9章 「一般化線形モデルと指数型分布族」
 
はじパタ8章 svm
はじパタ8章 svmはじパタ8章 svm
はじパタ8章 svm
 
ANIMATION SEQUENCE
ANIMATION SEQUENCEANIMATION SEQUENCE
ANIMATION SEQUENCE
 
Multiplicative Interaction Models in R
Multiplicative Interaction Models in RMultiplicative Interaction Models in R
Multiplicative Interaction Models in R
 
Lecture 9-online
Lecture 9-onlineLecture 9-online
Lecture 9-online
 
從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論從 VAE 走向深度學習新理論
從 VAE 走向深度學習新理論
 
2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)
 
Knowledge representation and reasoning
Knowledge representation and reasoningKnowledge representation and reasoning
Knowledge representation and reasoning
 
Unit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithmsUnit-2 raster scan graphics,line,circle and polygon algorithms
Unit-2 raster scan graphics,line,circle and polygon algorithms
 
パターン認識 08 09 k-近傍法 lvq
パターン認識 08 09 k-近傍法 lvqパターン認識 08 09 k-近傍法 lvq
パターン認識 08 09 k-近傍法 lvq
 
Combinatorics
CombinatoricsCombinatorics
Combinatorics
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
 
はじぱた7章F5up
はじぱた7章F5upはじぱた7章F5up
はじぱた7章F5up
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
Deep Reinforcement Learning
Deep Reinforcement LearningDeep Reinforcement Learning
Deep Reinforcement Learning
 
Prediction of Exchange Rate Using Deep Neural Network
Prediction of Exchange Rate Using Deep Neural Network  Prediction of Exchange Rate Using Deep Neural Network
Prediction of Exchange Rate Using Deep Neural Network
 

Destacado

사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
dsefdtgfgrsdgrdfh
 
Translations, rotations, reflections, and dilations
Translations, rotations, reflections, and dilationsTranslations, rotations, reflections, and dilations
Translations, rotations, reflections, and dilations
WestwardEast
 
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
dsefdtgfgrsdgrdfh
 
3002 a more with parrallel lines and anglesupdated 10 22-13
3002 a  more with parrallel lines and anglesupdated 10 22-133002 a  more with parrallel lines and anglesupdated 10 22-13
3002 a more with parrallel lines and anglesupdated 10 22-13
jbianco9910
 
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
dsefdtgfgrsdgrdfh
 
Proving quads are parralelograms
Proving quads are parralelogramsProving quads are parralelograms
Proving quads are parralelograms
jbianco9910
 
Congruent figures 2013
Congruent figures 2013Congruent figures 2013
Congruent figures 2013
jbianco9910
 
114333628 irisan-kerucut
114333628 irisan-kerucut114333628 irisan-kerucut
114333628 irisan-kerucut
hafifa asiah
 
Deductivereasoning and bicond and algebraic proofs
Deductivereasoning and bicond and algebraic proofsDeductivereasoning and bicond and algebraic proofs
Deductivereasoning and bicond and algebraic proofs
jbianco9910
 
Symmetry,rotation, reflection,translation
Symmetry,rotation, reflection,translationSymmetry,rotation, reflection,translation
Symmetry,rotation, reflection,translation
Ebin Santy
 

Destacado (20)

Translation, Dilation, Rotation, ReflectionTutorials Online
Translation, Dilation, Rotation, ReflectionTutorials OnlineTranslation, Dilation, Rotation, ReflectionTutorials Online
Translation, Dilation, Rotation, ReflectionTutorials Online
 
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
 
Translations, rotations, reflections, and dilations
Translations, rotations, reflections, and dilationsTranslations, rotations, reflections, and dilations
Translations, rotations, reflections, and dilations
 
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
 
Oliviamath problem
Oliviamath problemOliviamath problem
Oliviamath problem
 
Maths activity
Maths activity Maths activity
Maths activity
 
3002 a more with parrallel lines and anglesupdated 10 22-13
3002 a  more with parrallel lines and anglesupdated 10 22-133002 a  more with parrallel lines and anglesupdated 10 22-13
3002 a more with parrallel lines and anglesupdated 10 22-13
 
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
사설토토 <&&>∃‰∩kid85⊇∬△ <&&>사설토토 사설토토
 
Proving quads are parralelograms
Proving quads are parralelogramsProving quads are parralelograms
Proving quads are parralelograms
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Olivia’s math problem2
Olivia’s math problem2Olivia’s math problem2
Olivia’s math problem2
 
2d 3d animation and Digital services from Vinformax and Creantt
2d  3d animation and Digital services from Vinformax and Creantt 2d  3d animation and Digital services from Vinformax and Creantt
2d 3d animation and Digital services from Vinformax and Creantt
 
Math project
Math projectMath project
Math project
 
Congruent figures 2013
Congruent figures 2013Congruent figures 2013
Congruent figures 2013
 
114333628 irisan-kerucut
114333628 irisan-kerucut114333628 irisan-kerucut
114333628 irisan-kerucut
 
Power series
Power seriesPower series
Power series
 
Deductivereasoning and bicond and algebraic proofs
Deductivereasoning and bicond and algebraic proofsDeductivereasoning and bicond and algebraic proofs
Deductivereasoning and bicond and algebraic proofs
 
Symmetry,rotation, reflection,translation
Symmetry,rotation, reflection,translationSymmetry,rotation, reflection,translation
Symmetry,rotation, reflection,translation
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Graphing inverse functions
Graphing inverse functionsGraphing inverse functions
Graphing inverse functions
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Minkowski Sum on 2D geometry