mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Remove unnecessary use of ref-capture in code example.
This commit is contained in:
parent
53b89e1ee4
commit
bf5e09d5ab
@ -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…
Reference in New Issue
Block a user