I used a map<CString, vector<double>> structure to store the mapping of file name to its HSV color histogram.And there are 100 elements in this map as a image DB.If now comes a image,and I have get the input image’s histogram,how can I do the compare?
I know a method called “quadratic distance”, but I do not understand it.
One simple method would be using a distance calculator like this:
And then determine which histogram has the smallest distance. Please note that this is for
demonstration purposes only, you must add vector size checks etc.