where the first one is the base (to be compared to the others), the other 2 are the test images. We will also compare the first image with respect to itself and with respect of half the base image.

We should expect a perfect match when we compare the base image histogram with itself. Also, compared with the histogram of half the base image, it should present a high match since both are from the same source. For the other two test images, we can observe that they have very different lighting conditions, so the matching should not be very good:

Here the numeric results:

Method

Base - Base

Base - Half

Base - Test 1

Base - Test 2

Correlation

1.000000

0.930766

0.182073

0.120447

Chi-square

0.000000

4.940466

21.184536

49.273437

Intersection

24.391548

14.959809

3.889029

5.775088

Bhattacharyya

0.000000

0.222609

0.646576

0.801869

For the Correlation and Intersection methods, the higher the metric, the more accurate the match. As we can see, the match base-base is the highest of all as expected. Also we can observe that the match base-half is the second best match (as we predicted). For the other two metrics, the less the result, the better the match. We can observe that the matches between the test 1 and test 2 with respect to the base are worse, which again, was expected.