The difference with the smallest value then determines the two images that are the most similar, using these two distances. In this case, image 1 and image 3 are the closest. Note that it is possible that all these differences are large, and the smallest of the three may still not represent a good match.