SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

머피의 머신러닝 13 Sparse Linear Model
머피의 머신러닝 13 Sparse Linear Model머피의 머신러닝 13 Sparse Linear Model
머피의 머신러닝 13 Sparse Linear Model
Jungkyu Lee
 

Mais procurados (20)

Regularization
RegularizationRegularization
Regularization
 
高速フーリエ変換
高速フーリエ変換高速フーリエ変換
高速フーリエ変換
 
RLCode와 A3C 쉽고 깊게 이해하기
RLCode와 A3C 쉽고 깊게 이해하기RLCode와 A3C 쉽고 깊게 이해하기
RLCode와 A3C 쉽고 깊게 이해하기
 
Handling Missing Values for Machine Learning.pptx
Handling Missing Values for Machine Learning.pptxHandling Missing Values for Machine Learning.pptx
Handling Missing Values for Machine Learning.pptx
 
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
 
StarGAN
StarGANStarGAN
StarGAN
 
Variational Autoencoder를 여러 가지 각도에서 이해하기 (Understanding Variational Autoencod...
Variational Autoencoder를 여러 가지 각도에서 이해하기 (Understanding Variational Autoencod...Variational Autoencoder를 여러 가지 각도에서 이해하기 (Understanding Variational Autoencod...
Variational Autoencoder를 여러 가지 각도에서 이해하기 (Understanding Variational Autoencod...
 
Generative adversarial networks
Generative adversarial networksGenerative adversarial networks
Generative adversarial networks
 
動的計画法を極める!
動的計画法を極める!動的計画法を極める!
動的計画法を極める!
 
SVM
SVMSVM
SVM
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Learning loss for active learning
Learning loss for active learningLearning loss for active learning
Learning loss for active learning
 
プログラミングコンテストでのデータ構造 2 ~動的木編~
プログラミングコンテストでのデータ構造 2 ~動的木編~プログラミングコンテストでのデータ構造 2 ~動的木編~
プログラミングコンテストでのデータ構造 2 ~動的木編~
 
Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)
 
NeurIPS'21参加報告 tanimoto_public
NeurIPS'21参加報告 tanimoto_publicNeurIPS'21参加報告 tanimoto_public
NeurIPS'21参加報告 tanimoto_public
 
머피의 머신러닝 13 Sparse Linear Model
머피의 머신러닝 13 Sparse Linear Model머피의 머신러닝 13 Sparse Linear Model
머피의 머신러닝 13 Sparse Linear Model
 
Svm vs ls svm
Svm vs ls svmSvm vs ls svm
Svm vs ls svm
 
Machine Learning Foundations
Machine Learning FoundationsMachine Learning Foundations
Machine Learning Foundations
 
Stochastic gradient descent and its tuning
Stochastic gradient descent and its tuningStochastic gradient descent and its tuning
Stochastic gradient descent and its tuning
 
The Kernel Trick
The Kernel TrickThe Kernel Trick
The Kernel Trick
 

Destaque

사설토토 사설토토 <&&>∃‰∩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
 

Destaque (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

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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...
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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...
 

Minkowski Sum on 2D geometry