mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 15:04:01 +08:00
Fix a compilation error when HAVE_CLAMDFFT is on.
This commit is contained in:
parent
e27f4da9c6
commit
33361929fe
@ -101,11 +101,11 @@ namespace cv
|
|||||||
static bool useNaive(int method, int depth, Size size)
|
static bool useNaive(int method, int depth, Size size)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CLAMDFFT
|
#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;
|
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;
|
return size.height < 18 && size.width < 18;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user