Error in Reading Gif with imread

With the following code I'm trying to import a gif into Matlab and view it:
fileName = 'lightning.gif';
[G1, cmap] = imread('lightning.gif', 'frames', 'all'); %Read image file
size(G1)
implay(G1);
However I keep getting the following error:
Error using imread (line 403)
Java exception occurred:
java.lang.ArrayIndexOutOfBoundsException
Error in GifManipulation (line 2)
[G1, cmap] = imread('lightning.gif', 'frames', 'all'); %Read image file
I don't understand what's causing it.

Respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Nov. de 2019

Comentada:

el 6 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by