mirror of
https://github.com/opencv/opencv.git
synced 2026-10-05 04:03:32 +03: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:
1 parent
7eaddb8aa4
commit
2364f4b0b9
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user