function [im1,im2]=query(img, pic)

ha = zeros(1,8);

for i=1:8
    sim(i) = histogramSimilarity(img, pic(:,:,i));
end

[a, idx] = sort(sim);

im1 = pic(:,:,idx(1));
im2 = pic(:,:,idx(2));
