I extract an image from an animated gif file with the following code :
GIF_file = dir([PathName, '*velocity*.gif']);[im, map] = imread([GIF_file.folder, '\', GIF_file.name], 'frames', num);
Then i want to display it :
figure;imshow(im)colormap(map)
All is good when "num" (i.e. the frame number in the gif file) is set to 1 :
Now, when "num" is set to a number > 1, here is the result (num = 7) :
I don't understand what happens…
Please, is anybody is able to help me to have same color when num > 1 than when num = 1 ?
Thanks
Best Answer