Why doesn't my image load properly in MATLAB?

后端 未结 2 1495
悲哀的现实
悲哀的现实 2020-12-20 23:58

This is my original image:

\"enter

But when I load it up on MATLAB and use ims

2条回答
  •  难免孤独
    2020-12-21 00:32

    GIF is indexed format, and each image can have its own colormap. So you need to read the colormap together with the image:

    [I, Imap] = imread('D:\Matty\pout.gif');
    imshow(I,Imap)
    

    I've tested it on your image and it works very well. i don't understand what was the problem @Lucas described in his answer.

提交回复
热议问题