From: Elena Gvozdeva Date: Fri, 17 Jan 2014 12:26:11 +0000 (+0400) Subject: fixed X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~694^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e2bdb590f781de8c2fb6c2109641e81fae4146b;p=profile%2Fivi%2Fopencv.git fixed --- diff --git a/modules/imgproc/src/templmatch.cpp b/modules/imgproc/src/templmatch.cpp index bb3423b..aaaa833 100644 --- a/modules/imgproc/src/templmatch.cpp +++ b/modules/imgproc/src/templmatch.cpp @@ -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)))