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

This commit is contained in:
Vadim Pisarevsky 2014-07-28 15:45:54 +04:00
parent 1310dc4ca2
commit f42bb0bd65

View File

@ -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)