day1

filename ='09.jpg';

rgb = imread(filename);

rgb_small = imresize(rgb,0.5);

imshow(rgb_small);
info = imfinfo(filename)
info = 

           Filename: 'C:\ece564\day1\09.jpg'
        FileModDate: '30-Mar-2003 15:05:28'
           FileSize: 46527
             Format: 'jpg'
      FormatVersion: ''
              Width: 512
             Height: 768
           BitDepth: 24
          ColorType: 'truecolor'
    FormatSignature: ''
    NumberOfSamples: 3
       CodingMethod: 'Huffman'
      CodingProcess: 'Sequential'
            Comment: {}

rect = [348.5100  374.5100  124.9800   97.9800];
%[rgbcrop rect] = imcrop(rgb);
rgbcrop = imcrop(rgb,rect);
scl = 8.0;
rgb2 = imresize(rgbcrop,scl,'nearest');
imshow(rgb2);
Warning: Image is too big to fit on screen; displaying at 67%