1 | initial version |
It should be assumed that an operator is always faster than a loop, as OpenCV can use its own, optimized code. Similarly, an assignment is always faster than multiplication and anything multiplied by 0 is 0, so one should use simple zeroing