CSC320T12
CSC320T12
CSC320T12
Image Morphing
1. Intro to basic image morphing
2. The Baier
Baier--Neely morphing algorithm
Image Morphing
Introduction to image morphing
Basic idea
Beier-Neely morphing
Image Morphing
A combination of generalized image warping with a cross-dissolve
between pixels
Morphing involves two steps:
Pre-warp the two images
Cross-dissolve their colors
Source
Image 01
Warp 0
Warp 1
Morph
Source 1
Image 1
Image 1
Image PrePre-Warping
Source
Image 01
Warp 0
No pre-warping Pre-warping
Warp 1
Image 1
Image Morphing
Both morphing steps specified by same parameter t
Warp the two images according to t
Cross-dissolve their colors according to t
Warp 0
Warp 1
Source 1
Morphing Example
Image 0
Image 1
Intermediate Images
Backward mapping:
for r = rmin to rmax
for c = cmin to cmax
u = U(r,c)
v = V(r,c)
copy pixel at source (u,v)
to destination (r,c)
Intermediate Morphs
A single parameter t defines two warps, one applied to
image 1 and one to image 2
(r,c)
(r,c)
Two cases:
1. Coordinate map defined by a single line pair
2. Coordinate map defined by multiple line pairs
source line
destination line
(r,c)
p b
length
weight =
a + dist
Warping Example
Morphing Example