1 | initial version |
OpenCV is more orientated in speed, i.e. there is no array-index-out-of-bounds-exception like it is in Java or if you use .at()
by a vector. Since iterating over huge matrix is already time consuming, these checks would make it worse. You can surpass this problem by writing your own at()
method which checks your boundaries, or use MatIterators (then you are independent of cols/rows).