close all
RGB = imread('tiger.JPG');
imshow(RGB)

I = rgb2gray(RGB);
figure
imshow(I)

imwrite(I,'bwtiger.JPG')

                             