January 2018
Intermediate to advanced
486 pages
11h 28m
English
Two histograms calculated by using the calcHist function, or loaded from disk and filled into a Mat class, or literally created with any method, can be compared with each other to find the distance or difference (or divergence) between them, by using the compareHist method. Note that this is true as long as the Mat structure of the histograms is consistent with what we saw before, meaning the number of columns, depth, and channels.
The compareHist function takes two histograms stored in Mat classes and a comparison method, which can be one of the following constants:
Note that the return value of ...