Numerical geometry of nonrigid shapes Discrete Geometry 1

  • Slides: 46
Download presentation
Numerical geometry of non-rigid shapes Discrete Geometry 1 The world is continuous, but the

Numerical geometry of non-rigid shapes Discrete Geometry 1 The world is continuous, but the mind is discrete. D. Mumford Discrete Geometry Alexander Bronstein, Michael Bronstein © 2008 All rights reserved. Web: tosca. cs. technion. ac. il

Numerical geometry of non-rigid shapes Discrete Geometry Sampling n So far, we assumed continuous

Numerical geometry of non-rigid shapes Discrete Geometry Sampling n So far, we assumed continuous shapes. n Computers can only work with discrete data. n Sampling: represent shape as a cloud of points 2

Numerical geometry of non-rigid shapes Discrete Geometry Sampling density n How to quantify density

Numerical geometry of non-rigid shapes Discrete Geometry Sampling density n How to quantify density of sampling? n is an -covering of if Alternatively: for all , where is the point-to-set distance. 3

Numerical geometry of non-rigid shapes Discrete Geometry Sampling efficiency n Are all points necessary?

Numerical geometry of non-rigid shapes Discrete Geometry Sampling efficiency n Are all points necessary? n An -covering may be unnecessarily dense (may even not be a discrete set). n Quantify how well the samples are separated. n is -separated if for all n For . , an set is finite if -separated is compact. Also an r-covering! 4

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Good sampling has

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Good sampling has to be dense and efficient at the same time. n Find and -separated -covering n Achieved using farthest point sampling. n We defer the discussion on n How to select n How to compute ? ? of . 5

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Start with some

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Start with some . n Determine sampling radius n If stop. n Find the farthest point from n Add to 6

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling Farthest point 7

Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling Farthest point 7

8 Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Outcome: -separated

8 Numerical geometry of non-rigid shapes Discrete Geometry Farthest point sampling n Outcome: -separated -covering of . n Produces sampling with progressively increasing density. n A greedy algorithm: previously added points remain in n There might be another -separated . -covering containing less points. n In practice used to sub-sample a densely sampled shape. n Straightforward time complexity: number of points in dense sampling, number of points in n Using efficient data structures can be reduced to . .

9 Numerical geometry of non-rigid shapes Discrete Geometry Sampling as representation n Sampling represents

9 Numerical geometry of non-rigid shapes Discrete Geometry Sampling as representation n Sampling represents a region on as a single point n Region of points on than to any other closer to . n Voronoi region (a. k. a. Dirichlet or Voronoi-Dirichlet region, Thiessen polytope or polygon, Wigner-Seitz zone, domain of action). n To avoid degenerate cases, assume points in in general position: n No three points lie on the same geodesic. (Euclidean case: no three collinear points). n No four points lie on the boundary of the same metric ball. (Euclidean case: no four cocircular points).

10 Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition Voronoi region n A

10 Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition Voronoi region n A point Voronoi edge can belong to one of the following n Voronoi region ( is closer to n Voronoi edge ( n Voronoi vertex three points Voronoi vertex than to any other is equidistant from ( ). and is equidistant from ).

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition 11

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition 11

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition n Voronoi regions are disjoint.

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi decomposition n Voronoi regions are disjoint. n Their closure covers the entire n Cutting . along Voronoi edges produces a collection of tiles . n In the Euclidean case, the tiles are convex polygons. n Hence, the tiles are topological disks (are homeomorphic to a disk). 12

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi tesellation n Tessellation of (a. k.

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi tesellation n Tessellation of (a. k. a. cell complex): a finite collection of disjoint open topological disks, whose closure cover the entire . n In the Euclidean case, Voronoi decomposition is always a tessellation. n In the general case, Voronoi regions might not be topological disks. n A valid tessellation is obtained is the sampling is sufficiently dense. 13

14 Numerical geometry of non-rigid shapes Discrete Geometry Non-Euclidean Voronoi tessellations n Convexity radius

14 Numerical geometry of non-rigid shapes Discrete Geometry Non-Euclidean Voronoi tessellations n Convexity radius at a point closed ball is the largest is convex in every , i. e. , minimal geodesics between lie in n Convexity radius of for which the . = infimum of convexity radii over all . n Theorem (Leibon & Letscher, 2000): An -separated -covering of with convexity radius of is guaranteed to produce a valid Voronoi tessellation. n Gives sufficient sampling density conditions.

Numerical geometry of non-rigid shapes Discrete Geometry Sufficient sampling density conditions Invalid tessellation Valid

Numerical geometry of non-rigid shapes Discrete Geometry Sufficient sampling density conditions Invalid tessellation Valid tessellation 15

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi tessellations in Nature 16

Numerical geometry of non-rigid shapes Discrete Geometry Voronoi tessellations in Nature 16

17 Numerical geometry of non-rigid shapes Discrete Geometry Representation error n Voronoi decomposition replaces

17 Numerical geometry of non-rigid shapes Discrete Geometry Representation error n Voronoi decomposition replaces n Mapping copying each with the closest point into n Quantify the representation error introduced by n Let . . be picked randomly with uniform distribution on n Representation error = variance of . .

18 Numerical geometry of non-rigid shapes Discrete Geometry Optimal sampling n In the Euclidean

18 Numerical geometry of non-rigid shapes Discrete Geometry Optimal sampling n In the Euclidean case: (mean squared error). n Optimal sampling: given a fixed sampling size Alternatively: Given a fixed representation error , minimize sampling size n Vector quantization (a. k. a. clustering, and unsupervised learning).

19 Numerical geometry of non-rigid shapes Discrete Geometry Centroidal Voronoi tessellation n In a

19 Numerical geometry of non-rigid shapes Discrete Geometry Centroidal Voronoi tessellation n In a sampling minimizing , each has to satisfy n In the Euclidean case – center of mass n In general case: intrinsic centroid of . n Centroidal Voronoi tessellation (CVT): Voronoi tessellation generated by in which each is the intrinsic centroid of .

20 Numerical geometry of non-rigid shapes Discrete Geometry Lloyd-Max algorithm (a. k-means) n Vector

20 Numerical geometry of non-rigid shapes Discrete Geometry Lloyd-Max algorithm (a. k-means) n Vector quantization algorithm for fixed sampling size n Start with some sampling . (e. g. , produced by FPS) n Construct Voronoi decomposition n For each , compute intrinsic centroids n Update n In the limit , approaches the hexagonal honeycomb shape – the densest possible tessellation.

Numerical geometry of non-rigid shapes Discrete Geometry ® MATLAB intermezzo Farthest point sampling and

Numerical geometry of non-rigid shapes Discrete Geometry ® MATLAB intermezzo Farthest point sampling and Voronoi decomposition 21

Numerical geometry of non-rigid shapes Discrete Geometry Neighborhood of point in Discrete equivalent of

Numerical geometry of non-rigid shapes Discrete Geometry Neighborhood of point in Discrete equivalent of metric ball 22

Numerical geometry of non-rigid shapes Discrete Geometry Nearest neighbors K nearest neighbors of 23

Numerical geometry of non-rigid shapes Discrete Geometry Nearest neighbors K nearest neighbors of 23

Numerical geometry of non-rigid shapes Discrete Geometry Connectivity n Neighborhood is a topological definition

Numerical geometry of non-rigid shapes Discrete Geometry Connectivity n Neighborhood is a topological definition independent of a metric n Two points are adjacent (directly connected) if they belong to the same neighborhood n The connectivity structure can be represented as an undirected graph with vertices and Vertices Edges edges n Connectivity graph can be represented as a matrix 24

25 Numerical geometry of non-rigid shapes Discrete Geometry Shape representation Cloud of points Graph

25 Numerical geometry of non-rigid shapes Discrete Geometry Shape representation Cloud of points Graph

26 Numerical geometry of non-rigid shapes Discrete Geometry Connectivity in the plane Four-neighbor Six-neighbor

26 Numerical geometry of non-rigid shapes Discrete Geometry Connectivity in the plane Four-neighbor Six-neighbor Eight-neighbor

27 Numerical geometry of non-rigid shapes Discrete Geometry Delaunay tessellation Define connectivity as follows:

27 Numerical geometry of non-rigid shapes Discrete Geometry Delaunay tessellation Define connectivity as follows: a pair of points whose Voronoi cells are adjacent are connected The obtained connectivity graph is dual to the Voronoi diagram and is called Delaunay tesselation Boris Delaunay (1890 -1980) Voronoi regions Connectivity Delaunay tesselation

Numerical geometry of non-rigid shapes Discrete Geometry 28 Delaunay tessellation For surfaces, the triangles

Numerical geometry of non-rigid shapes Discrete Geometry 28 Delaunay tessellation For surfaces, the triangles are replaced by geodesic triangles [Leibon & Letscher]: under conditions that guarantee the existence of Voronoi tessellation, Delaunay triangles form a valid tessellation Replacing geodesic triangles by planar ones gives Delaunay triangulation Geodesic triangles Euclidean triangles

29 Numerical geometry of non-rigid shapes Discrete Geometry Shape representation Cloud of points Triangular

29 Numerical geometry of non-rigid shapes Discrete Geometry Shape representation Cloud of points Triangular mesh Graph

30 Numerical geometry of non-rigid shapes Discrete Geometry Triangular meshes A structure of the

30 Numerical geometry of non-rigid shapes Discrete Geometry Triangular meshes A structure of the form consisting of n Vertices n Edges n Faces is called a triangular mesh The mesh is a purely topological object and does not contain any geometric properties The faces can be represented as an row is a vector of the form matrix of indices, where each , and

Numerical geometry of non-rigid shapes Discrete Geometry Triangular meshes The geometric realization of the

Numerical geometry of non-rigid shapes Discrete Geometry Triangular meshes The geometric realization of the mesh is defined by specifying the coordinates of the vertices for all The coordinates can be represented as an matrix The mesh is a piece-wise planar approximation obtained by gluing the triangular faces together, Triangular face 31

Numerical geometry of non-rigid shapes Discrete Geometry Example of a triangular mesh Vertices Coordinates

Numerical geometry of non-rigid shapes Discrete Geometry Example of a triangular mesh Vertices Coordinates Edges Faces Topological Geometric 32

Numerical geometry of non-rigid shapes Discrete Geometry Barycentric coordinates Any point on the mesh

Numerical geometry of non-rigid shapes Discrete Geometry Barycentric coordinates Any point on the mesh n index can be represented providing of the triangle enclosing it; n coefficients of the convex combination of the triangle vertices Vector is called barycentric coordinates 33

Numerical geometry of non-rigid shapes Discrete Geometry Manifold meshes n is a manifold n

Numerical geometry of non-rigid shapes Discrete Geometry Manifold meshes n is a manifold n Neighborhood of each interior vertex is homeomorphic to a disc n Neighborhood of each boundary vertex is homeomorphic to a half-disc n Each interior edge belongs to two triangles n Each boundary edge belongs to one triangle 34

Numerical geometry of non-rigid shapes Discrete Geometry Non-manifold meshes Edge shared by four triangles

Numerical geometry of non-rigid shapes Discrete Geometry Non-manifold meshes Edge shared by four triangles Non-manifold mesh 35

Numerical geometry of non-rigid shapes Discrete Geometry images Surface Geometry image Global parametrization Sampling

Numerical geometry of non-rigid shapes Discrete Geometry images Surface Geometry image Global parametrization Sampling of parametrization domain on a Cartesian grid 36

Numerical geometry of non-rigid shapes Discrete Geometry images Six-neighbor Eight-neighbor Manifold mesh Non-manifold mesh

Numerical geometry of non-rigid shapes Discrete Geometry images Six-neighbor Eight-neighbor Manifold mesh Non-manifold mesh 37

Numerical geometry of non-rigid shapes Discrete Geometry 38 Geometric validity Topologically valid Geometrically invalid

Numerical geometry of non-rigid shapes Discrete Geometry 38 Geometric validity Topologically valid Geometrically invalid Topological validity (manifold mesh) is insufficient! Geometric validity means that the realization of the triangular mesh does not contain self-intersections

39 Numerical geometry of non-rigid shapes Discrete Geometry Skeleton For a smooth compact surface

39 Numerical geometry of non-rigid shapes Discrete Geometry Skeleton For a smooth compact surface containing , there exists an envelope ) such that every point is continuously mappable to a unique point on The mapping is realized as the closest point on from Problem when is equidistant from two points on (such points are called medial axis or skeleton of If the mesh is contained in the envelope (does not intersect the medial axis), it is valid (open set in )

Numerical geometry of non-rigid shapes Discrete Geometry Skeleton Points equidistant from the boundary form

Numerical geometry of non-rigid shapes Discrete Geometry Skeleton Points equidistant from the boundary form the skeleton of a shape 40

41 Numerical geometry of non-rigid shapes Discrete Geometry Local feature size Distance from point

41 Numerical geometry of non-rigid shapes Discrete Geometry Local feature size Distance from point on to the medial axis of is called the local feature size, denoted Local feature size related to curvature (not an intrinsic property!) [Amenta&Bern, Leibon&Letscher]: if the surface is sampled such that for every that an open ball of radius contains a point of , it is guaranteed does not intersect the medial axis of Conclusion: there exists sufficiently dense sampling guaranteeing that is geometrically valid

42 Numerical geometry of non-rigid shapes Discrete Geometry Geometric validity Insufficient density Invalid mesh

42 Numerical geometry of non-rigid shapes Discrete Geometry Geometric validity Insufficient density Invalid mesh Sufficient density Valid mesh

43 Numerical geometry of non-rigid shapes Discrete Geometry Approximation quality How well does the

43 Numerical geometry of non-rigid shapes Discrete Geometry Approximation quality How well does the mesh approximate the underlying surface n Sampling quality n Topological equivalence (manifold meshes) n Geometric properties such as area, normals, etc. computed on are close to those computed on ?

44 Numerical geometry of non-rigid shapes Discrete Geometry Schwarz lantern M=10, N=10 M=20, N=20

44 Numerical geometry of non-rigid shapes Discrete Geometry Schwarz lantern M=10, N=10 M=20, N=20 M=20, N=10

45 Numerical geometry of non-rigid shapes Discrete Geometry Schwarz lantern Set . Then, in

45 Numerical geometry of non-rigid shapes Discrete Geometry Schwarz lantern Set . Then, in the limit Reason: triangles become infinitely thin [Morvan & Thibert 2002]: if the triangulation is sufficiently fat, the area approximation error is bounded Hermann Schwarz (1843 -1921)

46 Numerical geometry of non-rigid shapes Discrete Geometry Conclusion Sampling Farthest point sampling Voronoi

46 Numerical geometry of non-rigid shapes Discrete Geometry Conclusion Sampling Farthest point sampling Voronoi tessellation Connectivity Delaunay tessellation Triangular meshes Geometric validity Sufficiently dense sampling Topological validity Manifold meshes Schwarz lantern