Why do the MATLAB Movie Player not accurately display a MATLAB-generated animated GIF?

2 views (last 30 days)
I have generated animated GIF files using MATLAB. The GIF animation files can be read correctly in different viewers (including ImageJ, different browsers, and also in Microsoft PowerPoint). However, if I use the MATLAB Movie Player to read the file, the image color and intensity (or the dynamic range) is very weird in most of the frames. I have attached a generated GIF file. Please help me to know how to correctly load the animated GIF in the Movie Player. Thank you.
ps. this is the part of the code that loaded the file and display it in the Movie Player. Am I doing it worng?
%%
....
[gifImage, map] = imread([file_path, file_name2], 'frames', 'all');
mov = immovie (gifImage, map);
implay(mov, 5)

Answers (0)

Categories

Find more on Animation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!