D Scalar/vector/tensor

50
3D+time (n<4) Scalar/vector/tensor Source: VIS, University of Stuttgart Information data nD (n>3) Scientific data Heterogeneous Data we are discussing in the class

Transcript of D Scalar/vector/tensor

Page 1: D Scalar/vector/tensor

3D+time (n<4) Scalar/vector/tensor

Source: VIS, University of Stuttgart

Information data nD (n>3)

Scientific data

Heterogeneous

Data we are discussing in the class

Page 2: D Scalar/vector/tensor

Scalar Data Analysis

Page 3: D Scalar/vector/tensor

Scalar Fields

• The approximation of certain scalar function in physical space f(x,y,z).

• Discrete representation.

• Visualization primitives: colors, transparency, iso-contours (2D), iso-surfaces (3D), 3D textures.

Page 4: D Scalar/vector/tensor

3D Surface

• 3D surfaces can be considered some sub-sets corresponding to certain iso-values of some scalar functions (e.g. a distance field).

• Therefore, analyzing the characteristics of the surfaces can help understand the scalar function they represent.

Source: http://www.cs.utah.edu/~angel/vis/project3/

Page 5: D Scalar/vector/tensor

Shape Analysis

• What features do people care about?– Computing orientation and range of the shape

– Computing extrema (protrusion)

– Finding handles and holes

– Finding ridges and valleys or other feature lines

– Computing skeletal representation

Page 6: D Scalar/vector/tensor

Sub-Topics

• Compute bounding box

• Compute Euler Characteristic

• Estimate surface curvature

• Line description for conveying surface shape

• Morse function and surface topology--Reeb

graph

• Scalar field topology--Morse-Smale complex

Page 7: D Scalar/vector/tensor

Bounding Box

Page 8: D Scalar/vector/tensor

Shape Descriptors

• We need centers and variances of all points on

the surface.

Page 9: D Scalar/vector/tensor

Shape Descriptors

• We need centers and variances of all points on

the surface.

There are different definitions of centers

Page 10: D Scalar/vector/tensor

Center of Mass

),( ii yx

),( jj yx

Page 11: D Scalar/vector/tensor

Center of Mass

• Center of Mass

),( ii yx

),( jj yx

),( 11

N

y

N

xN

i i

N

i i ∑∑ ==

Page 12: D Scalar/vector/tensor

Geometric Center

• Geometric center

),( ii yx

),( jj yx

)2

maxmin,

2

maxmin( iiii yyxx ++

Page 13: D Scalar/vector/tensor

Centers

• Geometric center

• Center of Mass

• Which one is better and why?

),( 11

N

y

N

xN

i i

N

i i ∑∑ ==

)2

maxmin,

2

maxmin( iiii yyxx ++

Page 14: D Scalar/vector/tensor

Variance

• What are the dominant directions?

),( ii yx

),( jj yx

Page 15: D Scalar/vector/tensor

Variance

• What are the dominant directions?

• How are they defined?

• Principle components analysis

),( ii yx

),( jj yx

Page 16: D Scalar/vector/tensor

Variance

• What are the dominant directions?

),( ii yx

),( jj yx

−−−−

−−−−=

∑∑

∑∑

iyiyi

iyixi

iyixi

ixixi

cycycycx

cycxcxcxV

))(())((

))(())((Covariance matrix

Page 17: D Scalar/vector/tensor

Variance

• What are the dominant directions?

• Major, minor eigenvectors give the directions

),( ii yx

),( jj yx

Page 18: D Scalar/vector/tensor

Variance

),( ii yx

),( jj yx

[ ]ykxkyk

xk

ykykxk

ykxkxk cycxcy

cx

cycycx

cycxcx−−

−−

=

−−−−−−2

2

)())((

))(()(

),( kk yxp =

Page 19: D Scalar/vector/tensor

Variance

),( ii yx

),( jj yx

[ ]ykxkyk

xk

ykykxk

ykxkxk cycxcy

cx

cycycx

cycxcx−−

−−

=

−−−−−−2

2

)())((

))(()(

),( kk yxp =

• It is a voting scheme

Page 20: D Scalar/vector/tensor

Bounding Boxes

),( ii yx

),( jj yx

• Axis-aligned bounding box

• Oriented bounding box

Page 21: D Scalar/vector/tensor

Oriented Bounding Boxes

),( ii yx

),( jj yx

Page 22: D Scalar/vector/tensor

Oriented Bounding Boxes

),( ii yx

),( jj yx

Page 23: D Scalar/vector/tensor

Oriented Bounding Boxes

),( ii yx

),( jj yx

Page 24: D Scalar/vector/tensor

Oriented Bounding Boxes

),( ii yx

),( jj yx

Page 25: D Scalar/vector/tensor

Oriented Bounding Boxes

),( ii yx

),( jj yx

•How do you extend this to 3D?

Page 26: D Scalar/vector/tensor

Compute Euler Characteristics

Page 27: D Scalar/vector/tensor

Surface Representation

• Consider a discrete polygonal representation

– V – number of vertices

– E – number of edges

– F – number of faces

Euler characteristics L = V-E+F

Euler characteristic is a topological invariant, a

number that describes a topological space's

shape or structure regardless of the way it is

bent. (Wiki)

Page 28: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 29: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 30: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 31: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 32: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 33: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 34: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 35: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 36: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 37: D Scalar/vector/tensor

Elementary Collapse on Edges

Page 38: D Scalar/vector/tensor

Elementary Collapse on Edges

V=E for a closed and simple planar curve.

Page 39: D Scalar/vector/tensor

Elementary Collapse on Edges

V=E for a closed and simple planar curve.

What about 3D surfaces ?

Need to consider the merging of the faces!

Page 40: D Scalar/vector/tensor

Elementary Collapse for Faces

V=6

E=7

F=2

L= ?

V=6

E=6

F=1

L= ?

Page 41: D Scalar/vector/tensor

Euler Characteristic of a Cube

V=1

E=0

F=1

L= ?

V=8

E=12

F=6

L= ?

Page 42: D Scalar/vector/tensor

Dual of a Hexahedron

Page 43: D Scalar/vector/tensor

Dual of a Hexahedron

Does this dual change the Euler characteristic?

Page 44: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

L=?

Page 45: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

L=0

Page 46: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

What is its Euler characteristic?

Page 47: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

What is its Euler characteristic?

Page 48: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

L = -2!

What about 3D surfaces?

Page 49: D Scalar/vector/tensor

What Do Different Euler

Characteristics Tell us?

For 3D surfaces, L=V-E+F=?

Page 50: D Scalar/vector/tensor

Acknowledge

• Part of the materials are provided by

– Prof. Eugene Zhang at Oregon State University