where P and Q are values for the number of histogram entries for X and Y axes, respectively, H(h,k) is a value of a histogram of one of the plurality of similarity criteria at the point (h,k), and min is a function that produces a minimum value between Hi(h,k) and Hj(h,k), and wherein a weight 290 from a similarity definition can be applied to the similarity value.