Why is greyscale yellow and blue?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marcin Zyskowski
el 23 de Oct. de 2016
Respondida: Image Analyst
el 23 de Oct. de 2016
I got rid of the third dimension in the array, but now when I display grayscale picture using command:
image(Obrazek)
I get this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157364/image.png)
Why is supposed grayscale picture yellow-blue, instead of gray?
0 comentarios
Respuesta aceptada
Image Analyst
el 23 de Oct. de 2016
It looks like a colormap is being applied without your knowledge. I'd use imshow() instead of image. Otherwise you can set the colormap to gray(256);
colormap(handleToAxes, gray(256));
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!