mirror of
https://github.com/opencv/opencv.git
synced 2026-10-02 04:02:40 +03:00
fixed build errors on Linux + fixed Farneback optical flow sample
This commit is contained in:
1 parent
b38a11e837
commit
4b7aaf2e48
2 files changed
+30
-9
No files matched your search
@@ -46,7 +46,7 @@ int main(int, char**)
|
||||
|
||||
if( prevgray.data )
|
||||
{
|
||||
(prevgray, gray, flow, 0.5, 3, 15, 3, 5, 1.2, 0);
|
||||
calcOpticalFlowFarneback(prevgray, gray, flow, 0.5, 3, 15, 3, 5, 1.2, 0);
|
||||
cvtColor(prevgray, cflow, CV_GRAY2BGR);
|
||||
drawOptFlowMap(flow, cflow, 16, 1.5, CV_RGB(0, 255, 0));
|
||||
imshow("flow", cflow);
|
||||
|
||||
Reference in new issue
Block a user