% script to read in image of lincoln and
% select a 512 x 512 sub-image

X=imread('FallColors.jpg');
size(X) % MATLAB converts file to a 3-D array
% don't convert to black and white
%X=rgb2gray(X) % convert to a 2-D black/white array
figure
imshow(X); % see full image
% select 512 x 512 subimage
% remember to copy third dimension too
Fall_image=X(1:512,1:512,:); %
figure
imshow(Fall_image); % view selected subset
return