我通过以下方式阅读 GIF 文件:
[image, map] = imread(imagePath, 'frames', 1);
但是,阅读下面发布的 GIF 图片时,我收到以下错误消息:
Subscripted assignment dimension mismatch.
Error in readgif>read_multiframe_gif (line 117)
[X(:,:,:,j) undisposed_index] =
handle_positive_base_frame(data{j},info(j),X(:,:,:,undisposed_index),X(:,:,:,j-1),undisposed_index,j);
Error in readgif (line 36)
[X,map] = read_multiframe_gif(filename);
Error in imread (line 435)
[X, map] = feval(fmt_s.read, filename, extraArgs{:});
是因为 GIF 文件已损坏还是有其他问题?