Skip to content

Autocast 16-bit images to 32-bit for matchTemplate

Compare
Choose a tag to compare
@LauLauThom LauLauThom released this 19 Dec 10:06
· 126 commits to master since this release

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.