encoding meshes in differential coordinates
play

Encoding Meshes in Differential Coordinates Daniel Cohen-Or Tel - PowerPoint PPT Presentation

Encoding Meshes in Differential Coordinates Daniel Cohen-Or Tel Aviv University Outline Differential surface representation Compact shape representation Mesh editing and manipulation about surface reconstruction


  1. Encoding Meshes in Differential Coordinates Daniel Cohen-Or Tel Aviv University

  2. Outline Differential surface representation • Compact shape representation • Mesh editing and manipulation – …about surface reconstruction •

  3. Irregular meshes In graphics, shapes are mostly • represented by triangle meshes

  4. Irregular meshes In graphics, shapes are mostly • represented by triangle meshes

  5. Irregular meshes Geometry: • Vertex coordinates – (x 1 , y 1 , z 1 ) (x 2 , y 2 , z 2 ) . . . (x n , y n , z n ) Connectivity (the • graph) List of triangles – (i 1 , j 1 , k 1 ) (i 2 , j 2 , k 2 ) . . . ( )

  6. Parallelogram Prediction

  7. Parallelogram Prediction

  8. K-way Prediction is better

  9. k-way prediction is like predicting that a vertex is in the average of its adjacent neighbors

  10. Motivation Meshes are great, but: • Topology is explicit, thus hard to handle – Geometry is represented in a global – coordinate system Single Cartesian coordinate of a vertex doesn’t say • much about the shape

  11. Differential coordinates Represent local detail at each surface • point better describe the shape – Linear transition from global to differential • Useful for operations on surfaces where • surface details are important

  12. Differential coordinates Detail = surface – smooth (surface) • Smoothing = averaging • 1 ∑ = − δ v v i i j d ∈ j N i ( ) i ( ) 1 ∑ = − δ v v i i j d ∈ j N i ( ) i

  13. Laplacian matrix The transition between the δ and xyz is • ⎛ ⎞ ⎛ ⎞ ⎛ ⎞ δ linear: ( ) x x 1 ⎜ ⎟ ⎜ ⎟ ⎜ 1 ⎟ δ ( ) x x ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ 2 2 ⎜ ⎟ ⎜ L ⎟ ⎜ ⎟ = M M ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ M ⎟ M ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ δ ( ) x ⎝ ⎠ ⎝ ⎠ x ⎝ ⎠ n n ∈ ⎧ 1 i N ( j ) = ⎨ A ij ⎩ 0 otherwise − = − 1 = ⎧ L I D A d i j = ⎨ i D ij ⎩ 0 otherwise

  14. Laplacian matrix The transition between the δ and xyz is • linear: δ x L = v x δ y L v y = ( ) ∑ = − δ w v v i ij i j ∈ j N i ( ) δ z = L v z

  15. Basic properties Rank(L) = n-c (n-1 for connected • meshes) We can reconstruct the xyz geometry from • delta up to translation L = δ x L − = δ 1 x

  16. Quantizing differential coordinates “High-pass Quantization for Mesh Encoding”, Sorkine et al. 03 Quantization is one of the major methods • to reduce storage space of geometry data What happens if we quantize the δ - • coordinates? Can we still go back to xyz ? – L = δ x How does the reconstruction error behave? – ′ → = + ε δ δ δ

  17. Quantizing differential coordinates How does the reconstruction error behave? ′ ′ − − = = + ε δ δ 1 1 ( x L L )

  18. Quantizing differential coordinates Find the differences between the horses… •

  19. Quantizing differential coordinates This one is the original horse model •

  20. Quantizing differential coordinates This is the model after quantizing δ to 8 • bits/coordinate There is one anchor point (front left leg) •

  21. Quantizing differential coordinates Original model •

  22. Quantizing differential coordinates This is the model after quantizing δ to 7 • bits/coordinate, one anchor

  23. Quantizing differential coordinates

  24. Quantizing differential coordinates

  25. • A coarsely-sampled sphere Quantization error

  26. Quantization error After quantization to 8 bits/coordinate •

  27. • A finely-sampled sphere: Quantization error

  28. Quantization error After (the same) quantization to 8 • bits/coordinate…

  29. Quantizing differential coordinates

  30. Quantizing differential coordinates

  31. Spectral properties of L Sort the eigenvalues in accending order: • λ ≤ λ ≤ ≤ λ ≤ λ K “frequencies” − 1 2 n 1 n K e , e , e , e eigenvectors − 1 2 n 1 n ⎛ ⎞ We can represent the geometry in L ’s • x 1 ⎜ ⎟ eigenbasis: x ⎜ ⎟ = + + + + 2 K [Taubin 95] c e c e c e c e ⎜ ⎟ − − 1 1 2 2 n 1 n 1 n n M ⎜ ⎟ ⎜ ⎟ low frequency high frequency ⎝ ⎠ x n components components

  32. The spectral basis “Spectral Mesh Compression”, Karni and Gotsman 00 First functions are smooth and slow, last • oscillate a lot chain topology horse topology 2 nd basis 10 th basis 100 th basis function function function spectral basis of L = the DCT basis

  33. Spectral compression [Karni and Gotsman 2000]: progressive • compression scheme (“3D JPEG”) Drop the high-frequency spectral coefficients – Both the encoder and the decoder perform spectral – decomposition of L .

  34. Spectrum of the quantization error “High-pass Quantization for Mesh Encoding”, Sorkine et al. 03 ′ ′ − − − = = + ε = + ε δ δ 1 1 1 x L L ( ) x L

  35. Spectrum of the quantization error “High-pass Quantization for Mesh Encoding”, Sorkine et al. 03 ′ = − + L ε 1 x x ε = + + + + K c e c e c e c e − − 1 1 2 2 n 1 n 1 n n 1 1 1 1 − ε = + + + + 1 K L c e c e c e c e − − λ λ λ λ 1 1 2 2 n 1 n 1 n n − 1 2 n 1 n Large numbers = Numbers < 1 = amplification attenuation

  36. Low frequency error

  37. Low frequency error

  38. Error spectrum matters Quantizing Cartesian coordinates produces error • with mostly high-frequency modes This affects the normals and thus the lighting • Human perception is sensitive to high-frequency • errors Quantizing delta-coordinates produces low- • frequency error Strives to preserve local surface properties • We are less sensitive to low-frequency errors •

  39. Low frequency error – anything we can do about it?

  40. Low frequency error – anything we can do about it?

  41. Bounding the low-frequency error “Nail” the model in place by adding more • spatial constraints The more anchors – the higher λ 1 – the • lower the error Anchors cost additional storage space – In practice, less than 1% of the model vertices – need to be anchored for visually good reconstruction

  42. Invertible square Laplacian We could simply eliminate the anchors from the system, • erasing the rows and the columns of the anchor vertices Use this “reduced” Laplacian instead of L and remember • the anchors’ ( x, y, z ) positions separately − − ⎛ ⎞ L L L d 1 0 1 0 1 ⎜ ⎟ − − 0 d 1 1 ⎜ ⎟ 2 ⎜ ⎟ M d ⎜ 3 ⎟ M O ⎜ ⎟ = ⎜ L ⎟ M O ⎜ ⎟ ⎜ M O ⎟ ⎜ ⎟ − − − 0 1 1 1 d ⎜ ⎟ − n 1 ⎜ ⎟ − − − ⎝ ⎠ 1 1 1 d n

  43. Invertible Laplacian artifacts Produces bad results when we quantize δ • because no smoothness constraints are posed on the anchors We keep the smoothness constraints and solve • the system in least-squares sense!

  44. Rectangular Laplacian We add equations for the anchor points • By adding anchors the matrix becomes • non-square, so we solve the system in ′ ⎛ ⎞ ⎛ ⎞ ′ δ ⎛ ⎞ x ⎜ ⎟ 1 least-squares sense: ⎜ ⎟ 1 ⎜ ⎟ ′ ′ δ ⎜ ⎟ x ⎜ ⎟ ⎜ ⎟ 2 2 ⎟ ⎜ ⎜ ⎟ ⎜ ⎟ L M M ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ = ⎜ M ⎜ ⎟ M ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ′ ′ δ ⎝ ⎠ x ⎜ ⎟ n ⎜ ⎟ n ⎜ L ⎟ 0 1 0 0 ⎜ ⎟ x constrained 1 ⎜ ⎟ ⎜ ⎟ anchor points ⎝ L ⎠ 0 0 1 0 ⎝ ⎠ x 2 ′ δ ′ − min A x ′ x

  45. Low-frequency error “High-pass Quantization for Mesh Encoding”, Sorkine et al. 03 Positive error – vertex moves outside of the surface 0 – Negative error – vertex moves δ -quantization 7b/c δ -quantization 7b/c δ -quantization 7b/c inside the surface 2 anchors 4 anchors 20 anchors Cartesian quantization 8b/c

  46. Some results δ -quantization, original Cartesian quantization, entropy 6.69 entropy 7.17 We compare to Touma-Gotsman predictive coder that uses Cartesian quantization

  47. Some results δ -quantization, original Cartesian quantization, entropy 7.62 entropy 7.64 We compare to Touma-Gotsman predictive coder that uses Cartesian quantization

  48. Shape from connectivity “Least-squares Meshes”, Sorkine and Cohen-Or 04 What if we reduce delta information to • zero bits?? Can we still reconstruct some geometry? • δ x L V = c 1 1 c 2 1 c k 1

  49. Shape from connectivity “Least-squares Meshes”, Sorkine and Cohen-Or 04 What if we reduce delta information to • zero bits?? Can we still reconstruct some geometry? • 0 L V = c 1 1 c 2 1 c k 1

  50. Geometry hidden in connectivity “Least-squares Meshes”, Sorkine and Cohen-Or 04 There is geometry in connectivity

Recommend


More recommend