fixed
This commit is contained in:
@@ -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);
|
bool swapNotNeed = (_img.size().height >= _templ.size().height && _img.size().width >= _templ.size().width);
|
||||||
if (!swapNotNeed)
|
if (!swapNotNeed)
|
||||||
|
{
|
||||||
CV_Assert(_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width);
|
CV_Assert(_img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width);
|
||||||
|
}
|
||||||
|
|
||||||
bool use_opencl = ocl::useOpenCL() && _result.isUMat();
|
bool use_opencl = ocl::useOpenCL() && _result.isUMat();
|
||||||
if ( use_opencl && (swapNotNeed ? ocl_matchTemplate(_img,_templ,_result,method) : ocl_matchTemplate(_templ,_img,_result,method)))
|
if ( use_opencl && (swapNotNeed ? ocl_matchTemplate(_img,_templ,_result,method) : ocl_matchTemplate(_templ,_img,_result,method)))
|
||||||
|
Reference in New Issue
Block a user