1 / 30

Sven.Bergmann@unil.ch unil.ch/cbg

Sven.Bergmann@unil.ch www.unil.ch/cbg. Alex Alon. How do you connect smoothly between two points?. Cubic Bezier Splines. Smooth Connection Functions can be computed analytically using fundamental notions of theoretical physics. How do you connect smoothly between two points?.

klaus
Download Presentation

Sven.Bergmann@unil.ch unil.ch/cbg

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sven.Bergmann@unil.chwww.unil.ch/cbg

  2. Alex Alon

  3. How do you connect smoothly between two points?

  4. Cubic Bezier Splines

  5. Smooth Connection Functions can be computed analytically using fundamental notions of theoretical physics

  6. How do you connect smoothly between two points? Large curvature radius (small curvature) Small curvature radius (high curvature)

  7. A cost function sums up the curvature along the curve ds The parameter  determines the importance of having small curvature =1/r

  8. The cost function can be determined for any given function y(x) describing the curve:

  9. The Smooth Connection Function mimimizes the cost function for a given  and a set of boundary conditions = 0 [ ] Euler-Lagrange E. Noether

  10. Examples for Smooth Connection functions

  11. So how do Smooth Connection Functions relate to Shapes?

  12. Many shapes can be approximated

  13. Playing Join-the-dots http://www.meridiangames.net/game.asp?GID=292

  14. Contours can be defined as interpolation curves through a list of points

  15. Different interpolation schemes lead to different shapes

  16. B-spline interpolation Example for three points: P0 , P1 , P2 For each segment control points are chosen as Pi± di By construction this matches the slopes at each point. From C2 continuity (equal curvatures) it follows that P1 - 2(P1 - d1) + (P0 + d0) = (P2 - d2) - 2(P1 + d1) + P1 , d0 + 4d1 + d2 = P2 - P0 . In general case we get banded 3-diagonals linear equations 4d1 + d2 = P2 - P0 - d0d1 + 4d2 + d3 = P3 - P1    ... ... di + 4di+1 + di+2 = Pi+2 - Pi    ... ... dn-2 + 4dn-1 = Pn - Pn-2 - dn Which can be solved for di.

  17. How to use SCFs for joining the dots? S01 α α P0 P1 P2 S12 S = S01(α)+ S12(α) The total cost is the sum of the cost from each segment.

  18. New optimization problem + ... P3 S3 S1 P0 P1 P2 S2 The slope at each point affects the cost of the two neighboring segments Finding that minimizes corresponds to the best interpolation!

  19. Connecting points by SCFsPro vs Con Main advantage: • Single tunable parameter  controls behavior of all segment curves (while B-splines have only one solution) Main disadvantage: • Minimization procedure is computationally costly (while B-splines require only solving linear equations)

  20. Connecting points by SCFsDoes it work? Using ‘Gaussian adaptation’ for optimization reduces the cost function

  21. Connecting points by SCFsDoes it work? The curves evolve differently for each !

  22. Connecting 10 points by SCFs

  23. And the Octopus?

  24. Not much adaptation with 95 points on the curve …

  25. But there are some subtle differences Higher  promotes round shapes!

  26. Less points introduce more freedom for adaptation

  27. Less points introduce more freedom for adaptation

  28. … and sometimes too much freedom!

  29. Outlook New ways to define shapes: • Optimal trajectories in transport • Curves in Computer Aided Geometrical Design New way to analyze shapes • Assigning a typical ν to a shape or a part of it (e.g. for handwritten letters)

  30. Alex Alon Thanks! Sven.Bergmann@unil.chwww.unil.ch/cbg

More Related