MORPHING
description
Transcript of MORPHING
![Page 1: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/1.jpg)
MORPHING
Presentation By:
SWARUP DEEPIKA JAGMOHAN
Date:
22 OCT 2002
Course:
COMPUTER GRAPHICS
![Page 2: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/2.jpg)
BRIEF INTRODUCTION
![Page 3: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/3.jpg)
Brief Introduction:
• Morphing – derived from the word metamorphosis.
• Metamorphosis means to change shape, appearance or form.Example:
![Page 4: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/4.jpg)
WHAT IS MORPHING?
![Page 5: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/5.jpg)
What is morphing?
• Morphing can be defined as:
- Transition from one object to another.
- Process of transforming one image into another.
• An animation technique that allows you to blend two
still images, creating a sequence of in – between
pictures that when played in Quick Time,
metamorphoses the first image into the second.
![Page 6: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/6.jpg)
HOW IS MORPHING DONE?
![Page 7: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/7.jpg)
General Idea
• As the metamorphosis proceeds ,
- The first image is gradually distorted and is faded out.
- The second image starts out totally distorted
toward the first and is faded in.
![Page 8: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/8.jpg)
Steps Involved:
• The morph process consists of :-
1) Warping two images so that they have the same
“shape’’.
2) Cross dissolving the resulting images .
![Page 9: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/9.jpg)
WARPING
![Page 10: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/10.jpg)
Warping:
• A warp is a 2-D geometric transformation and generates a distorted image when it is applied to an image.
• Warping an image means : apply a given deformation to it.
• Two ways to warp an image:- Forward mapping. Reverse mapping.
![Page 11: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/11.jpg)
Forward Mapping
• Each pixel in source image is mapped to an appropriate
pixel in destination image.
• Some pixels in the destination image may not be
mapped.
![Page 12: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/12.jpg)
Reverse Mapping
• This method goes through each pixel in the destination
image and samples an appropriate source image pixel.
• All destination image pixels are mapped to some
source image pixel.
• This mapping is used in the Beier/Neely line morphing
method.
![Page 13: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/13.jpg)
CROSS DISSOLVING
![Page 14: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/14.jpg)
Cross Dissolving
• A cross-dissolve is a sequence of images which implements a gradual fade from one to the other.
![Page 15: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/15.jpg)
THE MORPHING PROCESS
![Page 16: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/16.jpg)
Morphing Process
• Step I : Interpolating the lines: Interpolate the coordinates of the end points of every pair of lines.
• Step II : Warping the Images Each of the source images has to be deformed towards the
needed frame. The deformation works pixel by pixel is based on the reverse mapping. This algorithm is called Beier-Neely Algorithm.
![Page 17: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/17.jpg)
BEIER-NEELY ALGORITHM IDEA
IDEA IS TO:
1) Compute position of pixel X in destination image relative to the line drawn in destination image.(x,y) (u,v)
![Page 18: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/18.jpg)
BEIER-NEELY ALGORITHM IDEA Contd..2) Compute coordinates of pixel in source image whose position relative to the line drawn in source image is (u,v). (u,v) (x’,y’)
![Page 19: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/19.jpg)
BEIER-NEELY ALGORITHM IDEA Contd..
![Page 20: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/20.jpg)
Beier-Neely AlgorithmFor each pixel X=(x,y) in the destination image DSUM=(0,0) , weightsum=0 for each line(Pi, Qi) calculate(ui,vi) based on Pi, Qi calculate (xi’, yi’) based on u,v and Pi, Qi calculate displacement Di = Xi’ – X for this line compute weight for line(Pi,Qi)
DSUM+=Di*weight
weightsum+=weight
(x’y’) = (x,y)+DSUM/weightsum color at destination pixel(x,y) = color at source pixel(x’y’)
![Page 21: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/21.jpg)
MORPHING EXAMPLES
![Page 22: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/22.jpg)
Examples
![Page 23: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/23.jpg)
Examples Contd..
![Page 24: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/24.jpg)
APPLICATIONS OF MORPHING
![Page 25: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/25.jpg)
Applications
• Used to produce special effects in entertainment industry.
Example : Michael Jackson’s Black or white music video.
![Page 26: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/26.jpg)
Application Contd.. In the Terminator Movie
![Page 27: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/27.jpg)
MORPHING SOFTWARE
![Page 28: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/28.jpg)
Morphing Software
• There are many morphing softwares available on the internet: 1) Morph Man 3.1 http://www.stoik.com/morphman/morphman.htm
2) Morpheus Software http://www.morpheussoftware.net/
![Page 29: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/29.jpg)
Examples I Tried Using Morph Man 3.1
![Page 30: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/30.jpg)
References: Warping and Morphing of Graphical Objects by Bruno
Costa, Jonas Gomes ,1998.
Morphing Magic by Scott Anderson , 1993
Beier T. Neely S. Feature based image metamorphosis. Proceedings of SIGGRAPH’92
http://www.cs.rochester.edu/u/www/u/kyros/Courses/CS290B/Lectures/lecture-18/sld002.htm
![Page 31: MORPHING](https://reader035.fdocuments.us/reader035/viewer/2022062518/568149de550346895db703b2/html5/thumbnails/31.jpg)
THANK YOU