mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 03:33:28 +08:00
Update optical_flow.cpp
ref: push_back is changed to emplace_back in order to avoid unnecessary conversions [Scalar(r, g, b))] .
This commit is contained in:
parent
7eaddb8aa4
commit
2364f4b0b9
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
||||
int r = rng.uniform(0, 256);
|
||||
int g = rng.uniform(0, 256);
|
||||
int b = rng.uniform(0, 256);
|
||||
colors.push_back(Scalar(r,g,b));
|
||||
colors.emplace_back(r,g,b);
|
||||
}
|
||||
|
||||
Mat old_frame, old_gray;
|
||||
|
Loading…
Reference in New Issue
Block a user