fixed
authorElena Gvozdeva <elena.gvozdeva@itseez.com>
Fri, 17 Jan 2014 12:26:11 +0000 (16:26 +0400)
committerElena Gvozdeva <elena.gvozdeva@itseez.com>
Thu, 23 Jan 2014 10:50:29 +0000 (14:50 +0400)
modules/imgproc/src/templmatch.cpp

index bb3423b..aaaa833 100644 (file)
@@ -571,7 +571,9 @@ void cv::matchTemplate( InputArray _img, InputArray _templ, OutputArray _result,
     
     bool swapNotNeed = (_img.size().height >= _templ.size().height && _img.size().width >= _templ.size().width);
     if (!swapNotNeed)
+    {
         CV_Assert(_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width);
+    }
 
     bool use_opencl = ocl::useOpenCL() && _result.isUMat();
     if ( use_opencl && (swapNotNeed ? ocl_matchTemplate(_img,_templ,_result,method) : ocl_matchTemplate(_templ,_img,_result,method)))