fung

所属分类:matlab编程
开发工具:matlab
文件大小:19KB
下载次数:148
上传日期:2006-11-10 08:49:15
上 传 者zhyankun
说明:  The original source codes works on morphing two people faces as a whole and then combine them by cross dissolve. In this project, I have modified the code so that it works on one face and morph partially on the face, such as the mouth, left eye and right eye.
(The original source codes works on morphin g two people faces as a whole and then combine the m by cross dissolve. In this project, I have modified the code so that it works on one fa ce and morph partially on the face, such as the mouth, left eye and right eye.)

文件列表:
project_code\changeSpline.m (1345, 2003-05-01)
project_code\face_spline.m (1495, 2003-05-04)
project_code\getControllines.m (434, 2003-05-04)
project_code\getLEyeControllines.m (399, 2003-05-04)
project_code\getMouthControllines.m (401, 2003-05-04)
project_code\getREyeControllines.m (411, 2003-05-04)
project_code\inputFace.m (64, 2003-04-24)
project_code\leftEyeDimension.m (293, 2003-05-04)
project_code\Locate.m (852, 2001-04-07)
project_code\locateNose.m (129, 2003-04-25)
project_code\Morph_face.m (1548, 2003-05-04)
project_code\mouthDimension.m (290, 2003-04-25)
project_code\mwarp.m (1573, 2003-05-16)
project_code\noseDimension.m (143, 2003-04-25)
project_code\perp.m (276, 2001-04-10)
project_code\plot_other_segments.m (590, 2001-04-08)
project_code\project.fig (50448, 2003-05-03)
project_code\project.m (5384, 2003-05-03)
project_code\psplinalize.m (2942, 2003-04-28)
project_code\pwCEval.m (854, 2001-04-07)
project_code\rightEyeDimension.m (303, 2003-05-04)
project_code\splineLocation.m (684, 2003-05-01)
project_code\test1.m (7767, 2003-04-24)
project_code\warpengine.m (5474, 2003-05-04)

README The code is modified from the source code downloaded from the Internet, http://www.francischang.com/morph/ The original source codes works on morphing two people’s faces as a whole and then combine them by cross dissolve. In this project, I have modified the code so that it works on one face and morph partially on the face, such as the mouth, left eye and right eye. ****************************************************************************************** To run the program Morph_face('filename.jpg'); When a face image appear, click on the two edges of nostrils. Press Enter. User will be asked to choose which part to morph, and the user can choose to morph mouth, left and right eyes. An oval lines is formed on the part the user choose to morph, click and drag the line to the shape wanted. Click outside of the image to end. The morphing process starts and user can choose to continue with other parts or end. ******************************************************************************************* Code submitted: Morph_face.m Main function to locate the feature and call the corresponding fucntions. inputFace.m Get the size of the image locateNose.m Locate the nostrils noseDimension.m Calcuate the dimension of the nose getMouthControllines.m Call mouthDimension.m to calculate the dimension of mouth Call splineLocation to get the points to form spline Call psplinalize.m to form a periodic spline Call changeSpline to modify the shape of the spline to get the control lines mouthDimension.m Calculate the dimension of mouth. splineLocation.m Get the points to form spline Adopted from reference psplinalize.m Call pwCEval.m to form a periodic spline Adopted from reference pwCEval.m Use vector to represent a piecewise cubic polynomial Adopted from reference Locate.m Help forming the spline Adopted from reference changeSpline.m modify the shape of the spline to get the control lines Call plot_other_segments.m to plot the points on the lines modified from reference plot_other_segments.m Draw line segment Adopted from reference getLEyeControllines.m Call leftEyeDimension.m to calculate the dimension of left eye Call splineLocation to get the points to form spline Call psplinalize.m to form a periodic spline Call changeSpline to modify the shape of the spline to get the control lines leftEyeDimension.m Calculate the dimension of left eye getREyeControllines.m Call rightEyeDimension.m to calculate the dimension of right eye Call splineLocation to get the points to form spline Call psplinalize.m to form a periodic spline Call changeSpline to modify the shape of the spline to get the control lines rightEyeDimension.m Calculate the dimension of right eye mwarp.m Morphing function Call warpengine.m to start the morphing Adopted from reference warpengine.m Map the corresponding source and target pixels, and cross dissove by interpolation Adopted from reference perp.m Called by warpengine.m to form perpendicular line Adopted from reference face_spline.m Form three masks on the mouth, right and left eyes Obsolated codes: getControllines.m project.fig project.m test1.m

近期下载者

相关文件


收藏者