From: yan on
Hi,
I am reading in a bmp image file, and wanna convert the color image into grayscale image. However, getting the following error messages:
Can anyone help me here?


thanks

>> imshow(I)
??? Undefined function or method 'imshow' for input arguments of type 'uint8'.

>> J = rgb2gray(I);
??? Undefined function or method 'rgb2gray' for input arguments of type 'uint8'.
From: Justus Skorps on
On 26 Feb., 05:27, "yan " <katrina1...(a)msn.com> wrote:
> Hi,
> I am reading in a bmp image file, and wanna convert the color image into grayscale image. However, getting the following error messages:
> Can anyone help me here?
>
> thanks
>
> >> imshow(I)
>
> ??? Undefined function or method 'imshow' for input arguments of type 'uint8'.
>
> >> J = rgb2gray(I);
>
> ??? Undefined function or method 'rgb2gray' for input arguments of type 'uint8'.

are you sure that you have the image processing toolbox?