Remove unnecessary use of ref-capture in code example.

This commit is contained in:
Vincent Rabaud 2022-01-05 13:42:55 +01:00
parent 53b89e1ee4
commit bf5e09d5ab

View File

@ -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];