how to use colorbar and colormap?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to set the color at image same as color at color bar? How color map works?
0 commentaires
Réponse acceptée
Chandra Kurniawan
le 7 Déc 2011
clear; clc;
I = imread('cameraman.tif');
imagesc(I); colormap(jet); colorbar;
2 commentaires
Image Analyst
le 7 Déc 2011
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Color and Styling dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!