disable OpenCL difference norms with mask, since some of the tests fail

pull/3010/head
Vadim Pisarevsky 11 years ago
parent 1310dc4ca2
commit f42bb0bd65
  1. 2
      modules/core/src/stat.cpp

@ -2540,7 +2540,7 @@ static bool ocl_norm( InputArray _src1, InputArray _src2, int normType, InputArr
normType &= ~NORM_RELATIVE;
bool normsum = normType == NORM_L1 || normType == NORM_L2 || normType == NORM_L2SQR;
if ( !(normType == NORM_INF || normsum) )
if ( !(normType == NORM_INF || normsum) || !_mask.empty() )
return false;
if (normsum)

Loading…
Cancel
Save