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

2 Ansichten (letzte 30 Tage)
Can someone illustrate in MATLAB the given effect with complete code?
Convert gradually from first image to last image(total 6 images);

Akzeptierte Antwort

darova
darova am 30 Okt. 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 Kommentare
edusadiq
edusadiq am 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 am 3 Nov. 2019
  • I'll be happy if you reply for later questions of mine!
I'll be happy too. Ask!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by