Colormaps
6 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, i wasnted to know how can i use imshow to print a matrix "X" using diferent colormaps. X is a [256x512x3] matrix with values give from the code below
X=zeros(256,512,3);
for i=1:256
X(i,:,:)=i;
end
im=im2uint8(X);
0 件のコメント
採用された回答
Image Analyst
2012 年 1 月 15 日
No. You are creating a true color RGB image, so colormaps are not applicable at all. Colormaps only apply to what MAtLAB calls "indexed" images, which are nothing more than a grayscale image with a pseudocolor look up table (a colormap) applied to it upon display.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!