spatial data
play

Spatial Data CS444 Chapter 8, VA&D - PowerPoint PPT Presentation

Spatial Data CS444 Chapter 8, VA&D http://www.sci.utah.edu/~miriah/cs6630/lectures/L17-isosurfaces.pdf http://www.slate.com/blogs/future_tense/2013/12/06/ winter_storm_cleon_record_lows_us_weather_map_today_is_completely_insane.html Recap


  1. Spatial Data CS444 Chapter 8, VA&D http://www.sci.utah.edu/~miriah/cs6630/lectures/L17-isosurfaces.pdf http://www.slate.com/blogs/future_tense/2013/12/06/ winter_storm_cleon_record_lows_us_weather_map_today_is_completely_insane.html

  2. Recap • So far, we’ve studied methods to determine the position of a data point on the screen • graph drawing, treemaps, scatterplots, PCA • However, some datasets come with very good positional information • Wind maps, weather simulations, CT scans

  3. How do we represent spatial data? • In the real world, there’s infinitely many data points in a weather map • In a computer, we only have finite memory and finite time • How do we solve this problem?

  4. Finite-dimensional function spaces • Some functions can be represented succinctly ⇢ if − 1 2 ≤ x ≤ 1 1 , f ( x ) = 2 0 , otherwise 1 -2 0 1 2

  5. Finite-dimensional function spaces • Some functions can be represented succinctly  1 + x, if − 1 ≤ x ≤ 0  f ( x ) = 1 − x, if 0 ≤ x ≤ 1 0 , otherwise  1 -2 0 1 2

  6. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions

  7. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  8. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  9. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  10. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  11. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  12. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  13. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  14. Finite-dimensional function spaces • Build complicated functions by sums of shifted , scaled versions of these simple functions 1 -2 -1 0 1 2

  15. X f ( x ) = ϕ ( x − i ) c i i ϕ ( x ) 1 -2 -1 0 1 2

  16. sums shifts scales X f ( x ) = ϕ ( x − i ) c i simple i functions ϕ ( x ) 1 -2 -1 0 1 2

  17. Example: nearest-neighbor interpolation ϕ ( x ) 1 -2 0 1 2

  18. Example: linear interpolation Alternative formulation: ϕ ( x ) f ( x ) = v 0 (1 − x ) + v 1 x 1 -2 -1 0 1 2

  19. Cubic Interpolation ϕ ( x )

  20. What is “Correct” Interpolation? Cubic Interpolation ϕ ( x ) Alternative formulation:

  21. What is “Correct” Interpolation? ϕ ( x )

  22. Cubic, (etc) Approximation http://www.cs.berkeley.edu/~sequin/CS284/IMGS/ makingbasisfunctions.gif

  23. Why go through this trouble? • Why not just define these functions “procedurally”? • At the end of the day they’re just arrays and if statements, after all • Because we can do math on those sums more easily

  24. Derivatives of finite- dimensional function spaces X f ( x ) = c i ϕ ( x − i ) i dx ( x ) = d d f X c i ϕ ( x − i ) dx i

  25. Derivatives of finite- dimensional function spaces X f ( x ) = c i ϕ ( x − i ) i d f d X dx ( x ) = dxc i ϕ ( x − i ) i

  26. Derivatives of finite- dimensional function spaces X f ( x ) = c i ϕ ( x − i ) i d f d ϕ X dx ( x ) = dx ( x − i ) c i i

  27. Derivatives of finite- dimensional function spaces X f ( x ) = c i ϕ ( x − i ) i d f d ϕ X dx ( x ) = dx ( x − i ) c i i • Derivatives are just another type of function space where all we do is change the “simple function”

  28. Derivatives of finite- dimensional function spaces d ϕ ϕ ( x ) dx ( x )

  29. Multidimensional functions (1 − x ) (1 − y ) + v 00 ( x ) (1 − y ) + v 10 f ( x, y ) = (1 − x ) ( y ) + v 01 ( x ) ( y ) v 11 ϕ ( x ) Basis function for bilinear interpolation

  30. Interlude: The Gradient of a Function  @ f/ @ x � r f ( ~ x ) = @ f/ @ y But what is that?

  31. Interlude: The Gradient of a Function First we remember our friend the Taylor series: ✓ x ✓ x 0 ✓ x 0 �◆ T  x � x 0 �◆ �◆ � f = f + r f + ε y y 0 y 0 y � y 0 Now we ask ourselves: if we move a little away from , ( x 0 , y 0 ) in what direction does grow the fastest? f

  32. Interlude: The Gradient of a Function ✓ x ✓ x 0 ✓ x 0 �◆ T  x � x 0 �◆ �◆ � f = f + r f + ε y y 0 y 0 y � y 0 ✓ x 0 �◆ T  dx � r f y 0 dy � T  dx  ∂ f/ ∂ x � = ∂ f/ ∂ y dy

  33. Interlude: The Gradient of a Function � T   � ∂ f/ ∂ x dx max ∂ f/ ∂ y dy  ∂ f/ ∂ x  dx � � ∂ f/ ∂ y dy

  34. Interlude: The Gradient of a Function � T   � = r f  � dx ∂ f/ ∂ x dx max dy ∂ f/ ∂ y dy | r f |  ∂ f/ ∂ x  dx � � ∂ f/ ∂ y dy

  35. Interlude: The Gradient of a Function � T   � = r f  � dx ∂ f/ ∂ x dx max dy ∂ f/ ∂ y dy | r f | The gradient points in the direction of greatest increase and its length is the rate of greatest increase

  36. Visualizing Scalar Fields

  37. Colormapping • “Default” strategy: • create color scale using the range of the function as the domain of the scale • create a position scale to convert from the domain of the function to positions on the screen • set the pixel color according to the scale

  38. Colormapping guidelines apply!

  39. Applies to “abstract” spaces too http://www.nytimes.com/interactive/2015/04/16/upshot/ marriage-penalty-couples-income.html?abt=0002&abg=0

  40. Contouring: isolines

  41. Contouring: isolines http://ryanhill1.blogspot.com/2011/07/isoline-map.html

  42. Contouring: isolines How do we compute them?

  43. Contouring: isolines Approach to Contouring in 2D • Contour must cross every grid line connecting two grid points of opposite sign Identify grid Find crossings Get cell lines w/cross x Interpolate along grid lines x Primitives naturally chain together + - http://ryanhill1.blogspot.com/2011/07/isoline-map.html Oct 7, 2014, 530 - Introduction to Scientific Visualization

  44. Cases + - Case Polarity Rotation Total No Crossings x2 2 (x2 for Singlet x2 x4 8 polarity) x2 Double adjacent x2 (4) 4 x2 Double Opposite x1 (2) 2 16 = 2 4

  45. Ambiguities • How to form the lines? • How to form lines? x x x x

  46. Ambiguities • Right or wrong? • Right or Wrong? x x x x x x x x x x x x

  47. Contouring: isolines

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend