generalized barycentric coordinates€¦ · 22 generalized barycentric coordinates – spm, bilbao...

41
Kai Hormann Faculty of Informatics Università della Svizzera italiana, Lugano School of Computer Science and Engineering Nanyang Technological University, Singapore Generalized Barycentric Coordinates

Upload: others

Post on 22-Jul-2020

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

Kai Hormann

Faculty of InformaticsUniversità della Svizzera italiana, Lugano

School of Computer Science and EngineeringNanyang Technological University, Singapore

Generalized Barycentric Coordinates

Page 2: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

Generalized Barycentric Coordinates

Page 3: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

2 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Coordinates

Page 4: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

3 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Coordinates

coordinates of Bilbao

43° 15′ 25″ N, 2° 55′ 25″ W

Page 5: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

4 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Latitude and longitude

1693 world map by Louis de Courcillon, abbé de Dangeau (1643 – 1723)

Page 6: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

5 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Latitude and longitude

c.194 BC world map by Eratosthenes (c. 276 BC – c.194 BC)[19th century reconstruction]

Page 7: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

6 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Cartesian coordinates

René Descartes(1596 – 1650)

Appendix “La Géométrie”1637

x

y

1 2 3–3 –2 –1

1

2

3

–3

–2

–1

(0,0)

(1,–2)

(–3,1)

(2,2)

Page 8: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

7 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Cartesian coordinates

René Descartes(1596 – 1650)

(0,0)

x

y

1 2 3–3 –2 –1

1

2

3

–3

–2

–1

(1,–2)

(–3,1)

(2,2)

point (2, 2) with

x-coordinate: 2 y-coordinate: 2

mathematically:

(2, 2) = (0, 0) + 2 · (1, 0)+ 2 · (0, 1)

in general:

(x, y) = (0, 0)+ x · (1, 0)+ y · (0, 1)

x- and y-coordinatesw.r.t. base points

(0,0), (1,0), (0,1)

Page 9: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

8 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Cartesian coordinates

link between geometry and algebra

essential for Newton and Leibniz to develop calculus

x

y

1 2 3–3 –2 –1

1

2

3

–3

–2

–1

x2 + y2 = 4 y = x2 − 2

x

y

1 2 3–3 –2 –1

1

2

3

–3

–2

–1

Page 10: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

Generalized Barycentric Coordinates

Page 11: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

10 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Barycentric coordinates

“Der barycentrische Calcul”1827

August Ferdinand Möbius(1790 – 1868)

(1,0,0)

(0,1,0)

(0,0,1)(0.25,–0.25,1)

(0.25,0.25,0.5)

(0.5,0.5,0)

Page 12: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

11 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Barycentric coordinates

August Ferdinand Möbius(1790 – 1868)

(1,0,0)

(0.5,0.5,0)

(0,1,0)

(0,0,1)(0.25,–0.25,1)

(0.25,0.25,0.5)

point (a, b, c) with 3 coordinates w.r.t. base points A, B, C

mathematically:

(a, b, c) = a · A+ b · B+ c · C

whereA = (1, 0, 0)B = (0, 1, 0)C = (0, 0, 1)

anda + b + c = 1

Page 13: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

12 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Law of the lever

Archimedes(c. 287 BC – c. 212 BC)

Page 14: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

13 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Law of the lever

Archimedes(c. 287 BC – c. 212 BC)

Page 15: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

14 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

system of masses at positions

position of the system’s barycentre :

Barycentric coordinates

Page 16: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

15 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Page 17: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

16 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

system of masses at positions

position of the system’s barycentre :

are the barycentric coordinates of

not unique

at leastpoints

needed tospan

Barycentric coordinates

Page 18: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

17 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Theorem [Möbius, 1827]

The barycentric coordinates of with respect to are unique up to a common factor

example:

Barycentric coordinates

Page 19: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

18 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Page 20: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

19 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Barycentric coordinates for triangles

normalized barycentric coordinates

properties

partition of unity

reproduction

positivity

Lagrange property

application

linear interpolation of data

Page 21: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

Generalized Barycentric Coordinates

Page 22: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

21 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Arbitrary polygons

barycentric coordinates

normalized coordinates

properties

partition of unity

reproduction

for all

linear precision

Page 23: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Convex polygons

Theorem: If all , then

positivity

Lagrange property

linear along boundary

application

interpolation of data given at the vertices

inside the convex hull of the

direct and efficient evaluation

[Floater, H. & Kós 2006]

Page 24: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

23 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Wachspress coordinates

mean value coordinates

discrete harmonic coordinates

Examples

Page 25: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

24 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Theorem: Common form

Three-point coordinates[Floater, H. & Kós 2006]

Wachspress mean value discrete harmonic

Page 26: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

25 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Non-convex polygons

poles, if , because

Wachspress mean value discrete harmonic

Page 27: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

26 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Colour interpolation

Page 28: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

27 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Vector fields

Page 29: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

28 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Smooth shading

Page 30: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

29 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Rendering of quadrilateral elements

Page 31: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

30 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Transfinite interpolation

mean value coordinates radial basis functions

Page 32: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

31 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Multi-sided Bézier patches

[Loop & DeRose 1986][Smith & Schaefer 2015]

[Salvi & Varády 2018]

[Varády et al. 2016]

Page 33: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

32 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Mesh animation

Page 34: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

33 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Image warping

original image warped imagemask

Page 35: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

34 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Mesh warping

animation for Ratatouille [Joshi et al. 2007]

[H. & Sukumar 2008][Ju et al. 2005]

Page 36: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

35 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Closed-form coordinates

Wachspress [Wachspress 1975]

discrete harmonic [Pinkall & Polthier 1993]

mean value [Floater 2003]

positive mean value [Lipman et al. 2007]

metric [Malsch et al. 2005]

Gordon–Wixom [Belyaev 2006]

positive Gordon–Wixom [Manson et al. 2011]

Poisson [Li & Hu 2013]

power [Budninsky et al. 2016]

blended [Anisimov et al. 2017]

Page 37: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

36 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Computational coordinates

harmonic coordinates [Joshi et al. 2007]

define normalized coordinate as the solution of Laplace’s equation

subject to

maximum entropy coordinates [H. & Sukumar 2008]

maximize the Shannon–Jaynes entropy

subject to

local barycentric coordinates [Zhang et al. 2014]

minimize the sum of total variation

subject to

Page 38: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

37 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Comparison

mean value blended harmonic max entropy local

Page 39: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

38 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

If you want to know more …

Page 40: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

39 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018

Summary

Wachspress coordinates

inside convex polygon (exterior angles not too small)

mean value coordinates

arbitrary polygons, well-defined in R2, but can be negative

harmonic coordinates

inside arbitrary polygons, but no closed form

holy-grail coordinates

arbitrary polygons, closed form, shape similar to harmonic coordinates

Page 41: Generalized Barycentric Coordinates€¦ · 22 Generalized Barycentric Coordinates – SPM, Bilbao – 11 June 2018 Convex polygons Theorem: If all , then positivity Lagrange property

Kai Hormann

Faculty of InformaticsUniversità della Svizzera italiana, Lugano

School of Computer Science and EngineeringNanyang Techonological University, Singapore

Generalized Barycentric Coordinates