how to use colorbar and colormap?
2 ビュー (過去 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!