IMG = imread('./input/AlfredoBorba_TuscanLandscape.jpg');
figure(1);
imshow(IMG);
isColor = size(IMG, 3) == 3;
 if isColor
     IMG = rgb2gray(IMG);
 end
 
 figure(2);
 imshow(IMG);
 imwrite(IMG, './output/AlfredoBorba_TuscanLandscape_GRAY.jpg');