vector field visualization

47
Vector Field Visualization * T. Moeller, H. Shen 의 slide 의 의의

Upload: eyad

Post on 11-Jan-2016

60 views

Category:

Documents


3 download

DESCRIPTION

Vector Field Visualization. * T. Moeller, H. Shen 의 slide 를 이용함. Vector Field Visualization. A vector field: F(U) = V U: field domain (x,y) in 2D (x,y,z) in 3D V: vector (u,v) or (u,v,w) - Like scalar fields, vectors are defined at discrete points. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Vector Field Visualization

Vector Field Visualization

* T. Moeller, H. Shen 의 slide 를 이용함 .

Page 2: Vector Field Visualization

-A vector field: F(U) = V

U: field domain (x,y) in 2D (x,y,z) in 3D V: vector (u,v) or (u,v,w)

- Like scalar fields, vectors are defined at discrete points

Vector Field Visualization

Page 3: Vector Field Visualization

Flow Visualization

• Flow visualization – classification

– Dimension (2D or 3D)

– Time-dependency: steady vs. unsteady

– Grid type

Page 4: Vector Field Visualization

Examples

• http://hint.fm/wind/

Page 5: Vector Field Visualization
Page 6: Vector Field Visualization
Page 7: Vector Field Visualization

Vector Field Visualization Challenges

• General Goal– Display the field’s directional information

• Domain Specific– Detect certain features– e.g. vortex cores

Page 8: Vector Field Visualization

Vector Field Visualization Challenges

• A good vector field visualization is difficult to get:– Displaying a vector requires more visual attributes

(u,v,w): direction and magnitude– Displaying a vector requires more screen space– more than one pixel is required to display an arrow

=> It becomes more challenging to display a dense vector field

Page 9: Vector Field Visualization

Vector Field Visualization Techniques

• Local technique– Particle Advection– Display the trajectory of a particle starting from a

particular location

• Global technique– Hedgehogs, Line Integral Convolution etc– Display the flow direction everywhere in the field

Page 10: Vector Field Visualization

Characteristic of Lines

• Streamline– tangential to the vector field

• Pathline– trajectories of massless particles in the flow

• Streakline– trace of dye that is released into the flow at a fixed

position

• Time line (Time surface)– propagation of a line (surface) of massless elements

in time

Streamline, pathline and streakline are different only when the flow is unsteady (time dependent)

Page 11: Vector Field Visualization

Streaklines

• Trace of dye that is released into the flow at a fixed position

• Connect all particles that passed through a certain position

Page 12: Vector Field Visualization

Time lines (Time surfaces)

• Propagation of a line (surface) of massless elements in time

• Idea: “consists” of many point-like particles that are traced

• Connect particles that were released simultaneouslyt0 t1 t2

Timelines or time surfaces can show the evolution of a flow.

Page 13: Vector Field Visualization

Example :streamline, pathline, streakline

The red particle moves in a flowing fluid; Its pathline is traced in red; the tip of the trail of blue ink released from the origin follows the particle, but unlike the static pathline (which records the earlier motion of the dot), ink released after the red dot departs continues to move up with the flow. (This is a streakline.) The dashed lines represent contours of the velocity field (streamlines), showing the motion of the whole field at the same time.

Page 14: Vector Field Visualization

Comparison of Lines

Page 15: Vector Field Visualization

Pathline

Page 16: Vector Field Visualization

Stream ball

• Use radii to visualize additional properties (e.g. divergence and acceleration in a flow)

Page 17: Vector Field Visualization

streaklines

Page 18: Vector Field Visualization

Stream ribbons

• The area swept out by a deformable line segment along a streamline

• Visualizes rotational behavior of a 3D flow

Page 19: Vector Field Visualization

streamtubes

• Thick tube shaped streamline whose radial extent shows the expansion of flow

Page 20: Vector Field Visualization

Local technique - Particle Tracing

Visualizing the flow directions by releasing particles and calculating a series of particle positions based on the vectorfield

The motion of particle: dx/dt = v(x)

x: particle position (x,y,z)v(x): the vector (velocity) field

Use numerical integration to compute a new particle position

x(t+dt) = x(t) + Integration( v(x(t)) dt )

Page 21: Vector Field Visualization

Numerical Integration

First Order Euler method: x(t+dt) = x(t) + v(x(t)) * dt

- Not very accurate, but fast - Other higher order methods are available: Runge-Kutta second and fourth order integration methods (more popular due to their accuracy)

Result of first orderEuler method

Page 22: Vector Field Visualization

Numerical Integration (2)

Second Runge-Kutta Method

x(t+dt) = x(t) + ½ * (K1 + K2) k1 = dt * v(x(t)) k2 = dt * v(x(t)+k1)

½ * [v(x(t))+v(x(t)+dt*v(x(t))]

x(t+dt)

x(t)

Page 23: Vector Field Visualization

Numerical Integration (3)

Standard Method: Runge-Kutta fourth order

x(t+dt) = x(t) + 1/6 (k1 + 2k2 + 2k3 + k4)

k1 = dt * v(t); k2 = dt * v(x(t) + k1/2)

k3 = dt * v(x(t) + k2/2); k4 = dt * v(x(t) + k3)

Page 24: Vector Field Visualization

Streamline

• Displaying streamlines is a local technique because you can only visualize the flow directions initiated from one or a few particles

• When the number of streamlines is increased, the scene becomes cluttered

• You need to know where to drop the particle seeds • Streamline computation is expensive

Page 25: Vector Field Visualization

Arrows and Glyphs

• Visualize local features of the vector field:– Vector itself– Extern data: temperature, pressure, etc.

• Important elements of a vector:– Direction– Magnitude– Not: components of a vector

• Approaches:– Arrow plots– Glyphs

Page 26: Vector Field Visualization

Arrows

• Arrows visualize– Direction of vector filed– Magnitude

• Length of arrows• Color coding

Page 27: Vector Field Visualization

Glyphs

• Can visualize more features of the vector field

Page 28: Vector Field Visualization

Flow Volume

• Construction of the flow volume– Seed polygon (square) is used as smoke generator– Constrained such that center is perpendicular to flow– Square can be subdivided into a finer mesh– Volume rendering – Opacity is inversely proportional to the tetrahedra’s volume

Page 29: Vector Field Visualization

Global Techniques

• Display the entire flow field in a single picture• Minimum user intervention• Example: Hedgehogs (global arrow plots)

Page 30: Vector Field Visualization

LIC : Line Integral Convolution

• Given :– Vector field and texture image– Texture image is normally white noise

• Output– Colored field correlated in the flow

direction

Convolve a random texturealong the streamlines

Page 31: Vector Field Visualization

LIC

• Visualize dense flow fields by imaging its integral curves• Cover domain with a random texture (so called ‚input

texture‘, usually stationary white noise) • Blur (convolve) the input texture along the path lines

using a specified filter kernel

Page 32: Vector Field Visualization

LIC : Idea

• Global visualization technique

• Dense representation

• Start with random texture

• Smear out along stream lines

Page 33: Vector Field Visualization

example

Page 34: Vector Field Visualization

LIC Algorithm

Page 35: Vector Field Visualization

LIC

Page 36: Vector Field Visualization

OLIC : Oriented Line Integral Convolution

• Visualizes orientation (in addition to direction)• Use

– Sparse texture– Anisotropic convolution kernel

Page 37: Vector Field Visualization

OLIC

Page 38: Vector Field Visualization

세부적인 이슈 소개

• Illumination

• Seed Placement

Page 39: Vector Field Visualization

LIC on photograph

Page 40: Vector Field Visualization

Illuminated Streamline

Page 41: Vector Field Visualization

Comparisons

Fully opaque Use transparency With Illumination

Page 42: Vector Field Visualization

Seed Placement for Streamline

• The placement of seeds directly determines the visualization quality– Too many: scene cluttering– Too little: no pattern formed

• It has to be the right number at the right places!!!

Page 43: Vector Field Visualization

Seed Placement

Page 44: Vector Field Visualization

Image-Guided Streamline Placement

• Main idea: the distribution of ink on the screen should be even [turk 96]

Page 45: Vector Field Visualization

Use Energy Function as a Metric

• An energy function is defined to measure whether ‘ink’ is distributed evenly

• I(x,y): image with streamlines• L: A low pass filter (Gaussian or Hermit interpolation)• t: A user specified threshold for average image

intensity

(L*I (x,y) - t )x y

2

Page 46: Vector Field Visualization

Iterative Algorithm

• Place an initial set of seeds and compute streamlines• Iteratively minimize the energy function (random

decent) with the following operations on the seeds: – Move – Insert– Delete– Lengthen– Shorten– Combine

• Iterate until the energy function converges

Page 47: Vector Field Visualization

Results

Seeds at regular grid After energy minimization