```
diff.convertTo(diff, CV_8UC1);
```

will lose errors < 1, for example, 0.1 is still an error with eps 0.001