How to add colormap on an image?
64 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Add colormap on a .png/.jpeg image.
1 Kommentar
Rik
am 7 Dez. 2021
A colormap only has meaning for indexed images. Are your image actually indexed? And what have you tried?
Antworten (2)
Constantino Carlos Reyes-Aldasoro
am 7 Dez. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu Red finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!