From af83884dc7171bc1c9a5efaa9cef5de79c7d0984 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 28 Jul 2014 19:35:06 +0400 Subject: [PATCH] disabled ocl_minmaxloc on 32-bit data completely --- modules/core/src/stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 43abf7a6c..888fd7cac 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -1452,7 +1452,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int* CV_Assert(!haveSrc2 || _src2.type() == type); - if (depth == CV_32F) + if (depth == CV_32S || depth == CV_32F) return false; if ((depth == CV_64F || ddepth == CV_64F) && !doubleSupport)