Data Visualization Lecture 4 Two Dimensional Scalar Visualization

Slides:



Advertisements
Similar presentations
Angstrom Care 培苗社 Quadratic Equation II
Advertisements

Section 1.8 Homework questions?. Section Concepts 1.8 Linear Equations in Two Variables Slide 2 Copyright (c) The McGraw-Hill Companies, Inc. Permission.
1 Concurrency: Deadlock and Starvation Chapter 6.
Advanced Piloting Cruise Plot.
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
Polygon Scan Conversion – 11b
Lecture 5 3D Scalar Visualization Part One: Isosurfacing
ENV Envisioning Information Lecture 13 – Scientific Visualization Scalar 3D Data: Isosurfacing Ken Brodlie
ENV Envisioning Information Lecture 12 – Scientific Visualization Scalar 2D Data Ken Brodlie
GR2 Advanced Computer Graphics AGR
Visualization Techniques -
SI23 Introduction to Computer Graphics
16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
7.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 7 Polygon Shading Techniques.
Part- I {Conic Sections}
Solve Multi-step Equations
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Break Time Remaining 10:00.
Factoring Quadratics — ax² + bx + c Topic
PP Test Review Sections 6-1 to 6-6
EU market situation for eggs and poultry Management Committee 20 October 2011.
Reconstruction from Voxels (GATE-540)
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
14 Vectors in Three-dimensional Space Case Study
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
VOORBLAD.
Name Convolutional codes Tomashevich Victor. Name- 2 - Introduction Convolutional codes map information to code bits sequentially by convolving a sequence.
Determining if a Triangle is Possible
Constant, Linear and Non-Linear Constant, Linear and Non-Linear
P Preparation for Calculus.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Using AVS/Express in an Introductory Computer Graphics Course.
1 Motion and Manipulation Configuration Space. Outline Motion Planning Configuration Space and Free Space Free Space Structure and Complexity.
Splines IV – B-spline Curves
Splines I – Curves and Properties
Mrs. Rivas International Studies Charter School. Worksheet Practice 7-1 to 7-5Section 7-1 Algebra Solve each proportion.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Equal or Not. Equal or Not
Chapter 6 Equations 6.1 Solving Trigonometric Equations 6.2 More on Trigonometric Equations 6.3 Trigonometric Equations Involving Multiples Angles 6.4.
Rational Functions and Models
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
CSE Lecture 17 – Balanced trees
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Area Of Shapes. 8cm 2cm 5cm 3cm A1 A2 16m 12m 10m 12cm 7cm.
Presentation transcript:

Data Visualization Lecture 4 Two Dimensional Scalar Visualization Part 2: Further Contouring and Other 2D Techniques

Return to Example Consider this data: -5 10 1 -2 Where does the zero level contour go? Can we draw a straight line which will approximate the contour line?

Joining Intersections Directly It is tempting to approximate by joining intersections with straight lines: 10 -5 -2 1

Ambiguity But this does not always work - look at this data: 10 -5 -3 Try it - it is ambiguous!

What is the Problem? The contour of the bilinear interpolant is NOT a straight line – it is a curve - 10 -5 -2 1 Joining intersections with straight lines was only an approximation This is curve of: f(x,y) = (1-x)(1-y)f00+x(1-y)f10+(1-x)yf01+ xyf11 = 0 BUT how can we draw it?

Tracking Contours We can track the contour in small steps through the grid rectangle - starting from the intersection with the edges take a step, probe at an equal distance to either side, then predict next point; and so on -0.3 0.9 -0.3 0.9 Next point on contour Current point on contour Probes BUT THIS IS SLOW!!

Solution by Decomposing Cell One technique – more efficient than tracking - is to split cell into four triangles Within a triangle, we can fit a linear model F(x,y) = a + bx +cy How do we split? How do we calculate a,b,c? What is the gain? f1 f2 f3

Cell Decomposition Problem of drawing the curved lines has been circumvented by decomposing cell into four pieces within which the contours are well defined straight lines -5 10 0.75 -3 1

Avoiding Cell Decomposition As an alternative to decomposing the cell, we can try to understand how the curved contours of a bilinear interpolant behave The difficult case is: + - Opposite vertices: two + and two - Where do the contour lines go?

Bilinear Interpolant The bilinear interpolant has contours which are hyperbolas, and can be one of two forms: + - A + - B In each case there is a saddle point - if saddle point is -ve, then we have case A; if +ve, case B. Saddle point: fx=fy=0 .. Max in one direction, min in other

A Possible Method This suggests following method: in ambiguous case, calculate saddle point and join intersection points according to how bilinear behaves: + - A B - + - + saddle negative saddle positive Try it on the example earlier

Saddle Point It is possible to calculate the saddle point in terms of vertex values (from fx = fy =0 ): And the corresponding value: x = (f00 - f01 ) / D; y = (f00 - f10 ) / D D = f00 + f11 - f01 -f10 Saddle value = (f00f11 - f01f10)/D

Problem In the ambiguous case, will the earlier four triangle method always give the same result as the saddle point method? 5 -150 100 -1 Try this with both approaches

Greater Accuracy The greater understanding of the bilinear leads to a more accurate method A single straight line approximation can be made more accurate by using two straight line pieces see Lopes and Brodlie paper on Web site B + - + - - + A

2D Interpolation - Scattered Data Often the data will be given, not on a regular grid, but at scattered locations: f given at each marked point Approach: (i) triangulate (ii) build interpolant in each triangle (iii) draw contours

Triangulation Triangulation is the process of forming a grid of triangles from the data points How can we construct the triangulation?

Tesselation We solve the DUAL problem: Suppose a wolf is stationed at each data point. Each wolf is equally powerful and dominates the territory closest to its own base What are the territories dominated by each wolf?

Tesselation - Two or Three Wolves

Tesselation - Two or Three Wolves

Dirichlet Tesselation The resulting tesselation is known as the Dirichlet or Voronoi tesselation Given the Dirichlet tesselation for N points P1, P2, ... PN there is an algorithm for constructing the tesselation when an extra point is added

Dirichlet Tesselation P2 Tesselation for P1, P2, P3 P3 P1 Q Point Q added

Dirichlet Tesselation P2 P3 P1 Q

Dirichlet Tesselation P2 P3 P1 Q

Dirichlet Tesselation Determine polygon containing Q - here D3, surrounding P3 Construct perpendicular bisector of P3Q and find intersection with D3 - this becomes point of modified tesselation Determine adjacent polygon - here D2 Repeat the above two steps until D3 is reached again, or there is no intersection Remove all vertices and edges interior to the new polygon

Delaunay Triangulation P2 P3 P1 Q

Delaunay Triangulation Triangulation formed by joining points whose ‘territories’ share a common boundary in the tesselation This has the nice property that it avoids long skinny triangles See the nice applets at: www.cs.cornell.edu/Info/People/chew/ Delaunay.html Note the ‘empty circle’ property of the Delaunay triangulation

Contouring from Triangulated Data The final step is to contour from the triangulated data Easy – because contours of linear interpolant are straight lines – see earlier http://www.tecplot.com

Implementing Triangle-based Contouring f1 f2 f3 Each vertex can be positive or negative (ignore zero for now) This gives 23 = 8 possible cases… … but there are only 2 distinct configurations No contour (all same sign) Contour (2 of one sign, 1 of the other) Implementation: Determine which of 8 cases Select code for the appropriate configuration All same sign f1 f2 f3 Two same sign

Implementing Rectangle-based Contouring + For a rectangle, there will be 24 = 16 cases There are 4 configurations All same sign (no contour) 3 same sign (one contour piece) 2 adjacent with same sign (one contour piece) 2 opposite with same sign (two pieces, but ambiguous) + - + - + -

Surface Views A different mapping technique for 2D scalar data is the surface view. Here a surface is created in 3D space, the height representing the scalar value Construction is quite easy - suppose we have a rectangular grid

Constructing a Surface View - 1

Constructing a Surface View - 2 Surface created as pair of triangles per grid rectangle. Rendering step is then display of triangles.

Examples - with added contours www.tecplot.com

Image Plots A further mapping technique for 2D data is the image plot There are three variants: dot array : draw a dot at each data point, coloured according to the value (very fast, but low quality)

Image Plots Grid lines:

Image Plots Areas:

Cross Sections Another option is to look at a cross-section through the data For example, if x and y are the independent variables, we could fix y and look at f in terms of just x then repeat for different y this reduces the ES2 problem to a sequence of ES1 problems