Adding to MATLAB gif images using imwrite() (white images beyond certain point) -
i've tried finding answer on place, i've had no luck far. see, i've ran problem i'm generating gif files appending images single gif using loop. after while, imwrite seems stop adding images gif file - adds white spaces instead.
so, file large enough (250mb) feasibly have right number of images in, when open , play it, once gets past point have white images. i'm pretty damn sure it's nothing loop - i've had print out image file it's working on each loop iteration , that's correct. filenames correct.
it seems give after number of images, thought maybe there's maximum number? have on 50 frames want stitch together.
the code snippet i'm working on:
delay_time = 0; % each frequency, read in iso-contour , stitch plots % make gif counter_frequency = freq_min:freq_inc:freq_max im_in = imread(['2d fft, ' num2str(counter_frequency, '%3.2f') ' ghz.png'], 'png'); [imind,cm] = rgb2ind(im_in,256); disp([num2str(counter_frequency)]); if counter_frequency == freq_min imwrite(imind,cm,[directory.plot.iso_plots '\iso-frequency animation.gif'],'gif','delaytime',delay_time,'loopcount',inf); else imwrite(imind,cm,[directory.plot.iso_plots '\iso-frequency animation.gif'],'gif','delaytime',delay_time,'writemode','append'); end; end;
solved it! there nothing wrong code after - program using view gif! internet explorer bad idea guys. always. can't believe forgot that! found out computer using coding had chrome, opened in chrome out of curiosity - , fine.
damn you, ie!
Comments
Post a Comment