From: luka perne on
I have a grayscale *.bmp image and I want to make some wavelet operations on it, so I need it in matrix dimensions m-by-n. But when I read the image using the command imread(), matlab puts it in m-by-n-by-3 matrix. I have already tried using the command rgb2ind() but without luck, because it darkens the picture totally. Can anyone help?
tnx!
From: kinor on
"luka perne" <akulenrep(a)gmail.com> wrote in message <hv4ot8$rfi$1(a)fred.mathworks.com>...
> I have a grayscale *.bmp image and I want to make some wavelet operations on it, so I need it in matrix dimensions m-by-n. But when I read the image using the command imread(), matlab puts it in m-by-n-by-3 matrix. I have already tried using the command rgb2ind() but without luck, because it darkens the picture totally. Can anyone help?
> tnx!

help rgb2gray
From: luka perne on
"kinor " <kinor.removethiswithdot(a)gmx.de> wrote in message <hv4pca$qn8$1(a)fred.mathworks.com>...
> "luka perne" <akulenrep(a)gmail.com> wrote in message <hv4ot8$rfi$1(a)fred.mathworks.com>...
> > I have a grayscale *.bmp image and I want to make some wavelet operations on it, so I need it in matrix dimensions m-by-n. But when I read the image using the command imread(), matlab puts it in m-by-n-by-3 matrix. I have already tried using the command rgb2ind() but without luck, because it darkens the picture totally. Can anyone help?
> > tnx!
>
> help rgb2gray

That's what I was looking for! tnx!
From: Sean on
"luka perne" <akulenrep(a)gmail.com> wrote in message <hv4orb$o1f$1(a)fred.mathworks.com>...
> I have a grayscale *.bmp image and I want to make some wavelet operations on it, so I need it in matrix dimensions m-by-n. But when I read the image using the command imread(), matlab puts it in m-by-n-by-3 matrix. I have already tried using the command rgb2ind() but without luck, because it darkens the picture totally. Can anyone help?
> tnx!

>>help rgb2gray