Afficher commentaires plus anciens
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);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!