It suffices to restrict relevance to the first 8 or 16 images. Things to keep in mind. This is whole image matching. Similarity is based on the entire content of the images. The results are presented in rank order i.e. the entire database is ranked and presented.
Similarity is visual.
Functional or semantic notions of similarity are not dealt with here. The jpeg energy technique only compares images with the same number of jpeg blocks. The other technique does not have this limitation. Currently, relevance ranking is only available with the jpeg energy method. There are 1561 Assorted Images and there are 2048 Trademark Images.