The documentation of opencv matchtemplate says that
In case of a color image, template summation in the numerator and each sum in the denominator is done over all of the channels and separate mean values are used for each channel. That is, the function can take a color template and a color image. The result will still be a single-channel image, which is easier to analyze.
I can't figure out what it means. For a color template and a color image, is the single-channel image (the result) the average of the results of all the channels?
templmatch.cpp
source code: github