How can I convert a color image to grayscale in MATLAB?

Use rgb2gray to strip hue and saturation (ie, convert to grayscale) Documentation.

Use rgb2gray to strip hue and saturation (ie, convert to grayscale). Documentation.

2 @Donnie: I updated the link to the newest documentation. – gnovice Nov 22 '09 at 19:25.

X = imread('bla. Jpg'); k = rgb2gray(x); figure(1),imshow(k).

I found this link: blogs.mathworks.com/steve/2007/07/20/imo... it works. It says: im=imread('your image'); m=mat2gray(im); in=gray2ind(m,256); rgb=ind2rgb(in,hot(256)); imshow(rgb).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions