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

   X=imread('Rose.jpg');
   size(X);  % MATLAB converts file to a 3-D array
   X=rgb2gray(X); % convert to a 2-D black/white array 
   figure;
   imshow(X);  % see full image
   Rose_image=X(101:612,401:912);  % choose 512x512 subset
    small_rose=X(300:399,601:700);  % choose 100 x 100 subset
   figure;
   imshow(Rose_image);   %  view selected subset
   Rose_full=X;
   return

