Merge pull request #810 from pengx17:master_fix_ocl_tmflag

This commit is contained in:
Andrey Kamaev 2013-04-13 16:33:53 +04:00 committed by OpenCV Buildbot
commit a54a307386

View File

@ -101,11 +101,11 @@ namespace cv
static bool useNaive(int method, int depth, Size size)
{
#ifdef HAVE_CLAMDFFT
if (method == CV_TM_SQDIFF && (depth == CV_32F || !Context::getContext()->supportsFeature(Context::CL_DOUBLE)))
if (method == TM_SQDIFF && (depth == CV_32F || !Context::getContext()->supportsFeature(Context::CL_DOUBLE)))
{
return true;
}
else if(method == CV_TM_CCORR || (method == CV_TM_SQDIFF && depth == CV_8U))
else if(method == TM_CCORR || (method == TM_SQDIFF && depth == CV_8U))
{
return size.height < 18 && size.width < 18;
}