DSPRelated.com
Forums

gray scale image

Started by Laiq Azam October 4, 2007
Hello all,

I m trying to use imread command to read a jpg file. When I use image
command to show the matrix, it gives me color, although the file I read was
gray scale. Even with imshow, it shows weird colors, any help??????

A=imread('babby.jpg');

image(A)

figure; imshow(A); title('Original Picture');

--
Laiq