I = imread('union-terrace.jpg');
%I= imread('union-terrace.jpg');
%E = imenergy(I);
%h = imagesc(E);
%saveas(h, 'skobov.2a.jpg');
%S = horizontal_seam(E);
%J = remove_horizontal_seam(I, S);

%num_rows_removed = 100;
%J = shrnk(I, 5, 5);
a = shrnk(I, 0, 100);
b = shrnk(I, 100, 0);
c = shrnk(I, 100, 100);

imwrite(a, 'skobov.1a.jpg');
imwrite(b, 'skobov.1b.jpg');
imwrite(c, 'skobov.1c.jpg');