mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
fixed bug #2679
This commit is contained in:
parent
47df8f4c2a
commit
e383d39598
@ -346,7 +346,10 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
|
||||
}
|
||||
|
||||
if( numType == 2 )
|
||||
{
|
||||
num = wndSum2 - 2*num + templSum2;
|
||||
num = MAX(num, 0.);
|
||||
}
|
||||
}
|
||||
|
||||
if( isNormed )
|
||||
|
Loading…
Reference in New Issue
Block a user