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!