#

## Contents

- MyMainScript
- Q1 (a)
- Q1 (b)
- Q1 (c)

## MyMainScript

## Q1 (a)

    tic;
    im = imread('../data/circles_concentric.png');
    figure;
    subplot(2,2,1);
    displayImage(im, 'Original Image');

    subplot(2,2,3);
    displayImage(myShrinkImageByFactorD(im, 2), 'Shrinked by factor 2');

    subplot(2,2,4);
    displayImage(myShrinkImageByFactorD(im, 3), 'Shrinked by factor 3');

    toc;

    Elapsed time is 0.362417 seconds.

## Q1 (b)

    tic;
    im = imread('../data/barbaraSmall.png');
    figure;
    subplot(1,2,1);
    displayImage(im, 'Original Image');
    subplot(1,2,2);
    displayImage(myBilinearInterpolation(im), 'Resized with Bilinear Interpolation');
    toc;

    Elapsed time is 0.279954 seconds.

## Q1 (c)

    tic;
    im = imread('../data/barbaraSmall.png');
    figure;
    subplot(1,2,1);
    displayImage(im, 'Original Image');
    subplot(1,2,2);
    displayImage(myNearestNeighborInterpolation(im), 'Resized with Nearest Neighbor Interploation');
    toc;

    Elapsed time is 0.278882 seconds.