mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04: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:
@@ -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