Bugfix for an overlapping size of image and template for matchTemplate.
authorHeinz Hofbauer <Hofbauer.Heinz@gmx.net>
Wed, 3 Jul 2013 12:58:40 +0000 (14:58 +0200)
committerHeinz Hofbauer <Hofbauer.Heinz@gmx.net>
Wed, 3 Jul 2013 12:58:40 +0000 (14:58 +0200)
commita26c4fa2a2bc974f8f8bdd902dce56fc8d0944aa
tree436295e9b09871090813ee22050537352000c083
parent6bf8f474fa6cb543876c2e1784badd4a98bb39b5
Bugfix for an overlapping size of image and template for matchTemplate.

Example: img of size 10x10 and templ of size 11x9.
In subsequent code this will results in either width or height of
corrSize to be zero (0).
Line 261 will call crossCorr which will then have a zero size of either
blocksize.width or blocksize.height resulting in a division by zero
crach in lines 137 or 138.
modules/imgproc/src/templmatch.cpp