how can I use warp

hi,
I have making image morphing with two image.I wrote some script but I don't know how can use warp for deforming image 1 to image 2, please help me
pic1=imread('james.jpg')
pic2=imread('jenny.jpg')
cpselect(pic1,pic2)
p1=cp5.inputPoints;
p2=cp5.basePoints;
tri1=DelaunayTri(p1(:,1),p1(:,2));
tri2=DelaunayTri(p2(:,1),p2(:,2));
[x,y]=meshgrid(p1(:,:),p2(:,:));
p3=[p1,p2];
zi=griddata(p1(:,:),p2(:,:),p3(:,:),x,y);

 Accepted Answer

doc imwarp
?

1 Comment

sanaz
sanaz on 28 Jun 2013
means I use imwarp after griddata? I don't know imwarp

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!