From 97f6dd1820294a2b2a197839559cf824923ff447 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 28 Jul 2014 17:16:02 +0400 Subject: [PATCH] trying to make OpenCL builder green --- modules/core/src/stat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index a141565..d99a187 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -2185,6 +2185,9 @@ static bool ocl_norm( InputArray _src, int normType, InputArray _mask, double & (!doubleSupport && depth == CV_64F)) return false; + if( depth == CV_32F && !_mask.empty() ) + return false; + UMat src = _src.getUMat(); if (normType == NORM_INF) -- 2.7.4