Morphing Pseudocode
GenerateAnimation(Image0, L0[…], Image1, L1[…])
foreach intermediate frame time t do
for i = 1 to number of line pairs do
L[i] = line t-th of the way from L0 [i] to L1 [i]
Warp0 = WarpImage(Image0, L0, L)
Warp1 = WarpImage(Image1, L1, L)
foreach pixel p in FinalImage do
Result(p) = (1-t) Warp0 + t Warp1