Saturday, July 27, 2013

Matlab: Convert GIF image to BMP/JPG image

[img map] = imread('mypic.gif');
if ~isempty(map), img = ind2rgb(img, map); end
imshow(img);

% imwrite(img, 'mypic.jpg');
% imwrite(img, 'mypic.bmp');

No comments:

Post a Comment