Change colormap image processing
古いコメントを表示
I need a 256 intensity colormap, for which I am using the following code.
colormap(gray(256));
But when I print out the cmap using
cmap = colormap;
I still get 64*3 double instead of a 256*3 value. What am I doing wrong?
採用された回答
その他の回答 (1 件)
Joseph Cheng
2014 年 8 月 13 日
0 投票
I would check to see if the figure is still open, or is the active figure. is the cmap = colormap; directly after you create the figure? if you're confident that the figure is being displayed with a 256 grayscale then why not save the cmap when you do the colormap(gray(256))?
カテゴリ
ヘルプ センター および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!