This is face morphing. Now I want to save and convert to a gif image format.
close all
iter=10;
A=im2double(imread(‘1.JPG’));
B=im2double(imread(‘2.JPG’));
A=imresize(A, [512 512]);
B=imresize(B, [512 512]);
D=B-A;
D=D./iter;
for i=1:iter
A=A+D;
imshow(A);
pause (0.1);
endclose all
iter=10;
A=im2double(imread(‘1.JPG’));
B=im2double(imread(‘2.JPG’));
A=imresize(A, [512 512]);
B=imresize(B, [512 512]);
D=B-A;
D=D./iter;
for i=1:iter
A=A+D;
imshow(A);
pause (0.1);
end close all
iter=10;
A=im2double(imread(‘1.JPG’));
B=im2double(imread(‘2.JPG’));
A=imresize(A, [512 512]);
B=imresize(B, [512 512]);
D=B-A;
D=D./iter;
for i=1:iter
A=A+D;
imshow(A);
pause (0.1);
end image processing, morphing, morph images MATLAB Answers — New Questions