Each image has a specific number of features. The difference is what these features are based on. In this example, image retrieval is based on color features. It is undeniable that color is one of the most important features of an image. For gray-scale images, we can use a gray-scale histogram, color images can be detected based on color histograms.
Advantages of color histogram Detection: detection errors are insensitive to image size, translation, and rotation, and are easy to calculate.
Step: calculate n color frequency values for N colors with a width of N1 and a height of N2, and then calculate the distance between the two images using the absolute distance. When the values of N color frequencies are subtract, the absolute values are obtained, and then the sum is obtained. The minimum values are considered to be the most similar for the two images.