how to use colorbar and colormap?
1 次查看(过去 30 天)
显示 更早的评论
How to set the color at image same as color at color bar? How color map works?
0 个评论
采纳的回答
Chandra Kurniawan
2011-12-7
clear; clc;
I = imread('cameraman.tif');
imagesc(I); colormap(jet); colorbar;
2 个评论
Image Analyst
2011-12-7
You might be able to call it but it won't apply to any true color images residing on your figure. A colormap just doesn't make any sense for an image that is already in color, it only makes sense to apply a color to a gray level.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!