Fix an error in the demo code for cv::Mat::forEach

pull/8221/head
Fangjun KUANG 8 years ago committed by GitHub
parent 47ae5f14f5
commit e827a5bd9e
  1. 2
      modules/core/include/opencv2/core/mat.hpp

@ -1893,7 +1893,7 @@ public:
// first. raw pointer access.
for (int r = 0; r < image.rows; ++r) {
Pixel* ptr = image.ptr<Pixel>(0, r);
Pixel* ptr = image.ptr<Pixel>(r, 0);
const Pixel* ptr_end = ptr + image.cols;
for (; ptr != ptr_end; ++ptr) {
ptr->x = 255;

Loading…
Cancel
Save