function testRotation

a=imread('cameraman.tif');
a=im2double(a);

tic;
b = rotateImage(a, pi/4, 'nearest');
b = rotateImage(b, -pi/4, 'nearest');
toc;
%nearestdist=imageDistance(a(100:150,100:150), b(100:150,100:150))
nearestdist=imageDistance(a, b)

tic;
c = rotateImage(a, pi/4, 'linear');
c = rotateImage(c, -pi/4, 'linear');
toc;
%lineardist=imageDistance(a(100:150,100:150), c(100:150,100:150))
lineardist=imageDistance(a, c)

imshow([b,c])