Remove unnecessary use of ref-capture in code example.

pull/21394/head
Vincent Rabaud 3 years ago
parent 53b89e1ee4
commit bf5e09d5ab
  1. 2
      modules/core/include/opencv2/core/mat.hpp

@ -2100,7 +2100,7 @@ public:
Mat_<Pixel> image = Mat::zeros(3, sizes, CV_8UC3);
image.forEach<Pixel>([&](Pixel& pixel, const int position[]) -> void {
image.forEach<Pixel>([](Pixel& pixel, const int position[]) -> void {
pixel.x = position[0];
pixel.y = position[1];
pixel.z = position[2];

Loading…
Cancel
Save