How to Store this attached rgbimage with a colormap. I tried the following code but could not write the image with colormap.
Show older comments
I tried the following code to write the image with map. But again the colormap is null.
[img, map] = imread('1.jpg');

map = []
>> [indimg,map1] = rgb2ind(img,32);
>> imwrite(indimg,map1,'new.jpg');
>> [img, map] = imread('new.jpg');
>> map
map = []
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!