Colormaps

6 visualizaciones (últimos 30 días)
Raldi
Raldi el 15 de En. de 2012
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);

Respuesta aceptada

Image Analyst
Image Analyst el 15 de En. de 2012
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.
  1 comentario
Raldi
Raldi el 15 de En. de 2012
yes my bad i forgot that, thanks for the reply

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Red en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by