How to add colormap on an image?
59 次查看(过去 30 天)
显示 更早的评论
Add colormap on a .png/.jpeg image.
1 个评论
Rik
2021-12-7
A colormap only has meaning for indexed images. Are your image actually indexed? And what have you tried?
回答(2 个)
Constantino Carlos Reyes-Aldasoro
2021-12-7
I guess that this is a 2 step question, you want to add a colormap and then export as a png or jpeg, try the following, read an image, display and change colormap
a=imread('moon.tif');
imagesc(a)
colormap(autumn)
Now you can export as any format you want:
print('-dpng','-r100','myImage.png')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Red 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!