How to create fade gif image OUT OF 6 IMAGES AS GIVEN IN PICTURE?

3 views (last 30 days)
Can someone illustrate in MATLAB the given effect with complete code?
Convert gradually from first image to last image(total 6 images);

Accepted Answer

darova
darova on 30 Oct 2019
Read about gif animation in help
Here is an idea:
n = 5 % number of changes between images
for i = 1:n
I = (I1*(i-1) + I2*(n-i))/(n-1); % average image
end
% I = (I1*0 + I2*4)/4
% I = (I1*1 + I2*3)/4
% I = (I1*2 + I2*2)/4
% and so on
  4 Comments
edusadiq
edusadiq on 3 Nov 2019
It works 100%.
Thank you darova. You really did it.
I'll be happy if you reply for later questions of mine!
darova
darova on 3 Nov 2019
  • I'll be happy if you reply for later questions of mine!
I'll be happy too. Ask!

Sign in to comment.

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!