how can I use warp
Show older comments
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
More Answers (0)
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!