Commit f42bb0bd authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent 1310dc4c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment