What\'s the way OpenCV handles transparency in image during template matching?
The problem is that the template image needs to have transparent parts, because in the
I think you're trying to do what in OpenCV is called template matching with a mask. I think you could try setting a ROI (region of interest) on the template. This SO question shows how to do it. (note that in that question the ROI is set on the target image, not the template, but the procedure is the same).