Problem on gray scale image.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi. i used gray = rgb2gray(I) at command window but why can't i get a grayscale image? thank you!
0 comentarios
Respuestas (2)
Walter Roberson
el 19 de Sept. de 2012
grayscaleimage = rgb2gray(I);
image(grayscaleimage);
colormap(gray);
Please note that "gray" is a MATLAB function for constructing grayscale colormaps. Writing to a variable named "gray" interferes with using the function "gray".
0 comentarios
Esther
el 20 de Sept. de 2012
6 comentarios
Image Analyst
el 20 de Sept. de 2012
Editada: Image Analyst
el 20 de Sept. de 2012
So you DID get a gray scale image. Why did you say you did not?
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!