Fast Harmonic Mappings EDEN FEDIDA HEFETZ BAR-ILAN UNIVERSITY, - - PowerPoint PPT Presentation

โ–ถ
fast harmonic mappings
SMART_READER_LITE
LIVE PREVIEW

Fast Harmonic Mappings EDEN FEDIDA HEFETZ BAR-ILAN UNIVERSITY, - - PowerPoint PPT Presentation

Fast Harmonic Mappings EDEN FEDIDA HEFETZ BAR-ILAN UNIVERSITY, ISRAEL 1 Goal Find fast, locally injective harmonic mappings between shapes with low distortion. 1) Formulation of the optimization problem 2) Create custom-made solvers for the


slide-1
SLIDE 1

Fast Harmonic Mappings

EDEN FEDIDA HEFETZ BAR-ILAN UNIVERSITY, ISRAEL

1

slide-2
SLIDE 2

Goal

Find fast, locally injective harmonic mappings between shapes with low distortion. 1) Formulation of the optimization problem 2) Create custom-made solvers for the specific problem => Acceleration by orders of magnitude Performed on two types of harmonic mappings: 1) Planar shape deformation 2) Seamless parameterization

2

slide-3
SLIDE 3

Fast Planar Harmonic Deformations with Alternating Tangential Projections

EDEN FEDIDA HEFETZ, EDWARD CHIEN, OFIR WEBER BAR-ILAN UNIVERSITY, ISRAEL

3

slide-4
SLIDE 4

The Mapping Problem

๐‘”: ๐›ป โ†’ โ„2

  • Desirable properties:
  • Locally-injective
  • Bounded conformal distortion
  • Bounded isometric distortion
  • Real-time

4

slide-5
SLIDE 5

Previous Work

  • Cage based methods (barycentric coords):

[Hormann and Floater 2006] [Joshi et al.2007] [Lipman et al. 2007] [Weber et al. 2011] [Weber et al. 2009] โ€ฆ

  • Bounded distortion:

[Lipman 2012] [Kovalsky at al. 2015] [Chen and Weber 2015] [Levi and Weber 2016] โ€ฆ

5

slide-6
SLIDE 6

Notations

  • Distortion measures:
  • Singular values of ๐พ๐‘”

๐œ๐‘= ๐‘”

๐‘จ + ๐‘” าง ๐‘จ

๐œ๐‘= ๐‘”

๐‘จ โˆ’ ๐‘” าง ๐‘จ

6

๐‘”: ฮฉ โ†’ โ„2

  • Planar mapping:
  • Jacobian:

๐พ๐‘” = ๐‘ โˆ’๐‘ ๐‘ ๐‘ + ๐‘‘ ๐‘’ ๐‘’ โˆ’๐‘‘

  • Complex Wirtinger derivatives:

๐‘”

๐‘จ = ๐‘ + ๐‘—๐‘

๐‘”๐‘จ = ๐‘‘ + ๐‘—๐‘’ 0 โ‰ค ๐œ๐‘ โ‰ค ๐œ๐‘

Similarity Anti-similarity

slide-7
SLIDE 7

๐‘ซ๐’ƒ = ๐Ÿ๐Ÿ

Bounded Distortion Harmonic Mappings

  • The BD space: โˆ€๐‘จ โˆˆ ๐›ป

๐‘™ ๐‘จ =

๐œ๐‘โˆ’๐œ๐‘ ๐œ๐‘+๐œ๐‘ = ๐‘”เดค

๐‘จ

๐‘”

๐‘จ โ‰ค ๐ท๐‘™

๐œ๐‘ z = ๐‘”

๐‘จ + ๐‘” าง ๐‘จ โ‰ค ๐ท๐‘

๐œ๐‘ z = ๐‘”

๐‘จ โˆ’ ๐‘” าง ๐‘จ โ‰ฅ ๐ท๐‘

  • Non-convex space
  • Harmonic mapping enforce bounds only on ๐œ–ฮฉ

[Chen and Weber 2015]

7

conformal isometric Source ๐‘ซ๐’ƒ = ๐Ÿ‘. ๐Ÿ”

๐Š = ๐ง๐›๐ฒ ๐‰๐’ƒ, ๐Ÿ ๐‰๐’„

slide-8
SLIDE 8

The โ„’๐œ‰ Space

8

๐’Ž = ๐’Ž๐’‘๐’‰ ๐’ˆ๐’œ ๐ƒ = ๐’ˆ๐’œ ๐’ˆ๐’œ ๐’ˆ๐’œ = ๐’‡๐’Ž ๐’ˆเดค

๐’œ = ๐ƒ๐’‡๐’Ž

BD โ„’๐œ‰ โ„’๐œ‰ BD

[Levi and Weber 2016]

  • Change of variables:
  • BD homeomorphic to โ„’๐œ‰
slide-9
SLIDE 9

The โ„’๐œ‰ Space

๐‘™ ๐‘ฅ = ๐œ‰(๐‘ฅ) โ‰ค ๐ท๐‘™ ๐œ๐‘ w = ๐‘“๐‘†๐‘“(๐‘š(๐‘ฅ))(1 + ๐œ‰(๐‘ฅ) ) โ‰ค ๐ท๐‘ ๐œ๐‘ w = ๐‘“๐‘†๐‘“ ๐‘š ๐‘ฅ (1 โˆ’ ๐œ‰(๐‘ฅ) ) โ‰ฅ ๐ท๐‘

9

  • Near convex space

โˆ€๐‘ฅ โˆˆ ๐œ–๐›ป

Convex

slide-10
SLIDE 10

Discretization

  • Enforce distortion constraints on m densely sampled points
  • Use Cauchy complex barycentric coordinate :

๐‘š ๐‘จ = เท

๐‘˜=1 ๐‘œ

๐‘ก

๐‘˜๐ท ๐‘˜ ๐‘จ

& ๐œ‰ ๐‘จ = เท

๐‘˜=1 ๐‘œ

๐‘ข๐‘˜๐ท

๐‘˜ ๐‘จ

  • Subspace of holomorphic functions
  • 4n-dimensional

10

n vertices m sample points

Affine

๐‘ก

๐‘˜, ๐‘ข๐‘˜ โˆˆ โ„‚

slide-11
SLIDE 11

Our problem

11

Bounded distortion Convex

โˆฉ

Harmonic mapping Affine convex subspace

  • f โ„4๐‘›

4n-dimensional 4m-dimensional

slide-12
SLIDE 12

Our problem

12

  • Input: ๐‘š and ๐œ‰ values from cage data
  • Find the closest point in the intersection of an affine space and a convex

space

B A

๐‘๐‘—

slide-13
SLIDE 13

Alternating Projections

MAP ATP

13

๐ผ๐‘—

slide-14
SLIDE 14

Alternating Projections

MAP ATP

14

Proof of convergence [Bauschke and Borwein 1993] [Von Neumann 1950]

slide-15
SLIDE 15

Large-Scale Bounded Distortion Mappings

  • Alternating Projections between an affine space and non-convex space
  • No convergence guarantees
  • Upon convergence, not necessarily locally injective
  • Only bounds the conformal distortion and not isometric

15

[Kovalsky et al. 2015]

slide-16
SLIDE 16

Gathering Input Data

  • Extract ๐‘š and ๐œ‰ values from cage data
  • Linear transformations ๐‘“๐‘— โŸผ เท

๐‘“๐‘— that preserves the unit normal

16

๐’‡๐’‹ เท ๐’‡๐’‹

1 1 1 2

๐’‡๐’‹โˆ’๐Ÿ ๐’‡๐’‹+๐Ÿ เทŸ ๐’‡๐’‹โˆ’๐Ÿ เทŸ ๐’‡๐’‹+๐Ÿ

slide-17
SLIDE 17

Implementation

  • Local:
  • Project each sample point to the bounded distortion space
  • GPU kernel
  • Global:
  • Linear + fixed left hand side
  • GPU - Matrix-Vector products using cuBLAS

17

slide-18
SLIDE 18

Results

18

slide-19
SLIDE 19

ATP MAP

Near-optimality of alternating projection methods

19

MOSEK source 35 fps 3 fps 0.005 fps

slide-20
SLIDE 20

Near-optimality of alternating projection methods

20

MOSEK source MAP ATP 140 fps 15 fps 0.2 fps

slide-21
SLIDE 21

Speedup

ร— ๐Ÿ๐Ÿ๐Ÿ’ ร— ๐Ÿ’ โˆ™ ๐Ÿ๐Ÿ๐Ÿ’

21

~30 ~170

slide-22
SLIDE 22

22

๐Š = ๐ง๐›๐ฒ ๐‰๐’ƒ, ๐Ÿ ๐‰๐’„

๐Š

๐ท๐‘ = = 5 5 ๐ท๐‘ = = 0.2

slide-23
SLIDE 23

23

[Kovalsky et al. 2015] Cauchy Coords ATP Source

slide-24
SLIDE 24

Summary

  • Planar deformation
  • GPU accelerated โ€“ speedup of 3 ร— 103
  • Guaranteed local injectivity and bounded distortion
  • General proof of convergence
  • Future Work:
  • Positional constraints
  • Extension to parametrization of surfaces

24

slide-25
SLIDE 25

A Subspace Method for Fast Locally Injective Harmonic Mapping

EDEN FEDIDA HEFETZ, EDWARD CHIEN, OFIR WEBER BAR-ILAN UNIVERSITY, ISRAEL

25

slide-26
SLIDE 26

The Parametrization Problem

  • Given a 3-D triangular mesh S, find a map ๐‘” โˆถ ๐‘‡ โ†’ ฮฉ such that ฮฉ โŠ‚ ๐‘†2

26

  • Desirable properties:
  • Locally injectivity
  • Low distortion
  • Fast computation
slide-27
SLIDE 27

Motivation

  • Texture mapping
  • Mesh correspondences
  • Remeshing

27/36

slide-28
SLIDE 28

Credit: Hans-Christian Ebke

Quad Remeshing Example

28

slide-29
SLIDE 29

Previous Work

  • Linear methods

LSCM [Lรฉvy et al. โ€˜02] Angle-Based [Zayer et al. โ€˜07] Conformal Flattening [Ben-Chen et al. โ€˜08] โ€ฆ

  • Nonconvex energy-based methods

CM [Schtengel et al.] Killing [Claici et al.] SLIM [Rabinovich et al.] AQP [Kovalsky et al.] โ€ฆ

29

We aim for the speed of a linear method and the robustness of a nonconvex method

slide-30
SLIDE 30

Tutteโ€™s embedding

  • Discrete harmonic function

Convex combination map Global bijection Convex boundary

30

slide-31
SLIDE 31

Global Parametrization

1) Mesh cut to a disk along a seam graph ๐ป๐‘ก 2) Resulting disk mapped to plane 3) Seam edge copies have isometric images Seamless parametrization: The rotational part of the isometry is a rotation by some multiple of ๐œŒ/2.

31

๐’‡๐’‹๐’Œ ๐’ˆ(๐’‡๐’‹๐’Œ

๐’ƒ)

๐’ˆ(๐‘“๐‘—๐‘˜

๐’„)

๐’˜๐’Œ ๐’œ๐’‹ ๐’˜๐’‹ ๐’œ๐’Œ

๐’ƒ

๐’œ๐’Œ

๐’„

slide-32
SLIDE 32

HGP

Linear system:

  • 1. ๐‘” ๐‘“๐‘—๐‘˜

๐‘

= ๐‘“๐‘—

๐œŒ๐‘ ๐‘—๐‘˜ 2 ๐‘” ๐‘“๐‘—๐‘˜

๐‘

, ๐‘“ij โˆˆ ๐ป๐‘ก 2. 3.

32

[Bright et al. โ€˜17]

slide-33
SLIDE 33

HGP

Linear system:

  • 1. ๐‘” ๐‘“๐‘—๐‘˜

๐‘

= ๐‘“๐‘—

๐œŒ๐‘ ๐‘—๐‘˜ 2 ๐‘” ๐‘“๐‘—๐‘˜

๐‘

, ๐‘“ij โˆˆ ๐ป๐‘ก 2. 3.

33

[Bright et al. โ€˜17]

slide-34
SLIDE 34

HGP

Linear system:

  • 1. ๐‘” ๐‘“๐‘—๐‘˜

๐‘

= ๐‘“๐‘—

๐œŒ๐‘ ๐‘—๐‘˜ 2 ๐‘” ๐‘“๐‘—๐‘˜

๐‘

, ๐‘“ij โˆˆ ๐ป๐‘ก 2. 3.

34

[Bright et al. โ€˜17]

slide-35
SLIDE 35

fz

i > f าง ๐‘จ i

, ๐‘— โˆˆ ๐‘ˆ๐‘‘๐‘

HGP

35

[Bright et al. โ€˜17] HGP linear system Locally injective map Boundary and cone triangles are well-behaved [Lipman 2012] Frame field from [Bommes et al. 2009]

slide-36
SLIDE 36

Subspace construction

Linear part of HGP: Add interpolation constraints to complete the system dimension:

36

๐‘ƒ(|๐ท|)

slide-37
SLIDE 37

Subspace construction

๐ฟ๐‘จ =

๐‘‘๐‘—๐‘œ๐‘ข

๐ฟโˆ’1

๐‘‘๐‘š๐‘—๐‘œ ๐‘‘๐‘—๐‘œ๐‘ข = ๐‘จ

, ๐‘‘๐‘š๐‘—๐‘œ =

1 โ‹ฏ โ‹ฎ 1 โ‹ฎ โ‹ฏ 1

๐‘1 ๐‘2 โ‹ฏ ๐‘๐‘‘ ๐‘‘๐‘—๐‘œ๐‘ข = ๐‘จ z = ฯƒ๐‘—=1

๐‘‘

๐‘๐‘—๐‘‘๐‘—๐‘œ๐‘ข๐‘—

For ๐‘๐‘—, extract a column of ๐ฟโˆ’1! By HGP theorem, only need to extract entries near cones and boundaries!

37

๐ถ

slide-38
SLIDE 38

Subspace construction

  • Only need ๐‘ƒ( ๐ท ร— ๐ท ) elements of ๐ฟโˆ’1
  • Use selective inverse from PARDISO [KLS13, VCKS17]
  • Detailed instructions for PARDISO use.

=> Linear subspace with dimension ๐‘ƒ( ๐ท )

38

  • 1

Affine

slide-39
SLIDE 39

Boundary and cone triangles

39

Convex

, ๐‘— โˆˆ ๐‘ˆ๐‘‘๐‘

1 (2) 1 (2)

slide-40
SLIDE 40

Our problem

40

Locally injective Convex

โˆฉ

Harmonic mapping Affine

Dimension: ๐‘ƒ( ๐ท ) Dimension: 2 ๐‘ˆ๐ท๐ถ

๐ผ๐‘—

slide-41
SLIDE 41

Projected Newton

  • Symmetric Dirichlet energy is optimized
  • Nonconvex, project Hessians to the PSD

cone

  • [Chen & Weber 2017]

41

slide-42
SLIDE 42

Results!

  • Comparable quality to HGP results
  • One order of magnitude faster

than HGP; comparable to 1-2 linear solves (next slide)

  • Fairly robust results: 66 of 77

successful on a benchmark

42

slide-43
SLIDE 43

Timing Results

43

0.10 1.00 10.00 100.00 1,000.00 10,000.00 100,000.00 20,000 40,000 60,000 80,000 100,000 120,000 140,000 160,000

Runtime (s) # Triangles

Subspace Method HGP [Chien et al. 2016]

slide-44
SLIDE 44

Algorithm Parts Timing

44

0.00 0.50 1.00 1.50 2.00 2.50 3.00 3.50 4.00 4.50 1 2 3 4

Series1 Series2 Series3

slide-45
SLIDE 45

Summary

  • Surface parametrization
  • Speedup by order of magnitude
  • Locally injective
  • Analysis of linear system from HGP
  • Future Work:
  • Higher genus
  • Convexication frames

45

slide-46
SLIDE 46

Conclusion

โ–ชInput: flat 2D manifold โ–ช Continuous functions โ–ช Convex characterization of the space. โ–ช Solution is guaranteed โ–ชInput: curved 2D manifold โ–ช Triangular mesh discretization โ–ช Non-convex space โ–ช May not be feasible

46

โ–ช Two methods have been accelerated:

slide-47
SLIDE 47

The End

47