From: peng xiao Date: Fri, 12 Apr 2013 03:36:17 +0000 (+0800) Subject: Fix a compilation error when HAVE_CLAMDFFT is on. X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3916^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33361929fe19e63cb396f6b61dfb3cfa7ecb457e;p=platform%2Fupstream%2Fopencv.git Fix a compilation error when HAVE_CLAMDFFT is on. --- diff --git a/modules/ocl/src/match_template.cpp b/modules/ocl/src/match_template.cpp index 362231f..9adbc60 100644 --- a/modules/ocl/src/match_template.cpp +++ b/modules/ocl/src/match_template.cpp @@ -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; }