We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70cc29 commit b45e784Copy full SHA for b45e784
modules/core/include/opencv2/core/utility.hpp
@@ -507,7 +507,7 @@ void Mat::forEach_impl(const Functor& operation) {
507
this->rowCall2(row, COLS);
508
}
509
} else {
510
- std::vector<int> idx(COLS); /// idx is modified in this->rowCall
+ std::vector<int> idx(DIMS); /// idx is modified in this->rowCall
511
idx[DIMS - 2] = range.start - 1;
512
513
for (int line_num = range.start; line_num < range.end; ++line_num) {
0 commit comments