2- D IMAGE MORPHING
description
Transcript of 2- D IMAGE MORPHING
![Page 1: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/1.jpg)
1
2-D IMAGE MORPHING
![Page 2: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/2.jpg)
2
What is image morphing? Creating a smooth transition
between two images 3D model based or Image based Used for obtaining special effects
![Page 3: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/3.jpg)
3
Use of morphing in movies Hair-raising Wolfman Dr. Jekyll to Mr. Hyde Michael Jackson – Black & White
video
![Page 4: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/4.jpg)
4
Techniques for image morphing Cross-dissolve Field morphing Mesh morphing
![Page 5: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/5.jpg)
5
Cross-Dissolve Pixel-by-pixel color interpolation Very primitive Not smooth transitions
![Page 6: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/6.jpg)
6
Field Morphing “ Which pixel coordinate in the
source image do we sample for each pixel in destination image?”
Correspondence achieved using feature line(s) in source and destination images
![Page 7: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/7.jpg)
7
Field Morphing - Transformation with One Pair of Lines Corresponding lines define
mapping between pixels X and X’
![Page 8: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/8.jpg)
8
Transformation with One Pair of Lines For each pixel X in the destination image
Find the corresponding u, v Find the X’ in the source image for that u, v destinationImage(X) = sourceImage(X’)
![Page 9: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/9.jpg)
9
Transformation with One Pair of Lines
Original image (UL), rotated image (UR), translated image(LL), scaled image (LR)
![Page 10: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/10.jpg)
10
Transformation with Multiple Pairs of Lines Weighted average of single pair
version
a – smoothness of warping b – falloff of strength with distance p – rewarding longer lines
bp
dista
lengthweight
![Page 11: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/11.jpg)
11
Transformation with Multiple Pairs of Lines For each pixel X in destination
DSUM=(0,0) weightsum=0 For each line Pi Qi
Calculate u,v based on Pi Qi Calculate X’I based on u,v and Pi’ Qi’ Calculate displacement Di=Xi’-X Calculate weight DSUM+=Di*weight; weightsum+=weight
X’ = X+ DSUM/weightsum destinationImage(X) = SourceImage(X’)
![Page 12: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/12.jpg)
12
Transformation with Multiple Pairs of Lines “ Lines” are actually line segments Distance from a pixel to a line is
abs(v) if 0<u<1 Distance from P if u<0 Distance from Q if u>0
![Page 13: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/13.jpg)
13
Transformation with Multiple Pairs of Lines Not possible to do uniform scaling
or shear
![Page 14: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/14.jpg)
14
Transformation with Multiple Pairs of Lines Advantages
Expressive Adding control
points is easy
Disadvantages All line segments
need to be referenced for each pixel
Line segments have global impact
![Page 15: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/15.jpg)
15
Mesh Warping Source and target images are
meshed The meshes for both images are
interpolated The intermediate images are
cross-dissolved
![Page 16: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/16.jpg)
16
Mesh Warping for each frame f do
Linearly interpolate mesh M, between Ms and Mt
warp Images to I1, using meshes Ms and M
warp Imaget to I2, using meshes Mt and M Linearly interpolate image I1 and I2
end
![Page 17: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/17.jpg)
17
Mesh Warping
![Page 18: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/18.jpg)
18
Mesh Warping Hard to fit the mesh in images All control points affect the
warping equally Not enough control in certain areas
when needed
![Page 19: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/19.jpg)
19
Transition Control – Uniform Metamorphosis
![Page 20: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/20.jpg)
20
Transition Control – Non-uniform Metamorphosis
![Page 21: 2- D IMAGE MORPHING](https://reader036.fdocuments.us/reader036/viewer/2022062301/56814dec550346895dbb5ce3/html5/thumbnails/21.jpg)
21
Polymorph