Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to get a m-by-n matrix from grayscale image?

Subject: how to get a m-by-n matrix from grayscale image?

From: luka perne

Date: 14 Jun, 2010 08:22:03

Message: 1 of 2

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!

Subject: how to get a m-by-n matrix from grayscale image?

From: Sean

Date: 14 Jun, 2010 13:45:21

Message: 2 of 2

"luka perne" <akulenrep@gmail.com> wrote in message <hv4orb$o1f$1@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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us