Colormaps
    5 次查看(过去 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 中查找有关 Color and Styling 的更多信息
			
	产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!