• Heinz Hofbauer's avatar
    Bugfix for an overlapping size of image and template for matchTemplate. · a26c4fa2
    Heinz Hofbauer authored
    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.
    a26c4fa2
templmatch.cpp 13.4 KB