%makes picture in grayscale
x = imread('project5original.jpg');
xd=double(x);
r=xd(:,:,1);
g=xd(:,:,2);
b=xd(:,:,3);
Xgray =0.2126*r+0.7152*g+0.0722*b;
xgray = uint8(Xgray);
imagesc(xgray); colormap(gray);
imshow(xgray)
