Autocast 16-bit images to 32-bit for matchTemplate
OpenCV match template only support 8-bit or 16-bit images
In Multi-template matching, if both the images and template are 8-bit then the function matchTemplate is called as such.
In all other cases, the template and image are casted to 32-bit to call matchTemplate.