@mlyashko , I see no reason adding such a simple function to `TestUtils::`.
Can you just write:
```
...
Mat diff;
absdiff(mat1, mat2, diff);
EXPECT_LE( countNonZero(diff.reshape(1)), num)
...
```