% Jingting Zeng (Nikki)
% HW2 Task #1:

%read 8 images
for i=1:8
    in=strcat('new',num2str(i),'.jpg');
    img{i} = inputimage(in);
    subplot(3,8,i);
    imshow(img{i});
end

%find the top 2 results for image similarity comparison
for i=1:8
    [im1,im2] = query(img{i},img);
    subplot(3,8,i+8);
    imshow(im1);
    subplot(3,8,i+16);
    imshow(im2);
end

