Ask Your Question

Revision history [back]

theory of template matching algorithm

Hello masters. i need ur help about template matching.

my basic question is what is 'single channel' mean ? is it mean grayscale so if we have a color image, the image has '3 - channel' (RGB) ? i just want to make it sure.

in cvMatchTemplate() function, should image and template in single channel ( single channel what i mean is grayscale ) ? because i have tested the function with color image and grayscale template and it works. the template is cropped from the image that had been converted to grayscale. my second and also last question, how is cvMatchTemplate function work when the image is color and the template is grayscale ? is the image converted to grayscale automatically ?

thank you.