Professional Documents
Culture Documents
Animation 2
Animation 2
x,y = Q(u)
for u:[0,1]
Given
Q(u ) = au 3 + bu 2 + cu + d
ds = dx 2 + dy 2 + dz 2
2 2 2
dx dy dz
= + +
du du du
Computer Animation
Spline Driven Animation
1
u dx dy dz
2 2 2
2
s = A(u ) = ∫ + + du
du du du
u0
Q(u ) → Q( A −1(s ))
Re parameterization
Find
u = A −1(s )
Computer Animation
Spline Driven Animation
Find : u = A −1(s )
A : monotonically increasing
i.e. u1 < u2
and A(u1 ) < A(u2 )
u3
Computer Animation
Spline Driven Animation
[ ]
u 2
s = ∫ Au 4 + Bu 3 + Cu 2 + Du + E du
u0
Apply Numerical Method
Computer Animation
Spline Driven Animation
Alternately
ui+1 ui+2
ui di+1
di
Computer Animation
Spline Driven Animation
Velocity (Speed) Curve
v: (s, t)
1
Q(u)
s
t 1
Computer Animation
Morphing
added point
t
Intermediate form
Computer Animation
Image Morphing
Transformation of one image (source) to another image
(target)
Source Destination
Computer Animation
Image Morphing
Correspondence
Computer Animation
Image Morphing
Triangle Method
• Feature points are marked on source and target.
• These feature are given the correspondence.
• Triangulate the points.
• Interpolate triangulation for intermediate frames.
• Warp the images, and blend colors.
Source Target
Computer Animation
Image Morphing
Triangle Method
Interpolation in triangular domain
How is P related to P1, P2 and P3 ?
Source Destination
Computer Animation
Image Morphing
Triangle Method
Example
Computer Animation
Image Morphing
Application