Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do you specify cv::OPTFLOW_USE_INITIAL_FLOW in cv::calcOpticalFlowPyrLK? #256

Closed
erlenner opened this issue Aug 21, 2019 · 1 comment

Comments

@erlenner
Copy link

Ref:

4, termcrit, cv::OPTFLOW_USE_INITIAL_FLOW);
.

The opencv documentation (https://docs.opencv.org/3.1.0/dc/d6b/group__video__track.html) says OPTFLOW_USE_INITIAL_FLOW should be used when you provide an initial flow estimation, which you don't do. When I try to do the same, I get completely wrong flow estimates, which might be an opencv bug. When I remove the OPTFLOW_USE_INITIAL_FLOW option, the estimation works fine again.

@erlenner
Copy link
Author

Might be an issue with my opencv version (4.1.1), but I think you should remove the OPTFLOW_USE_INITIAL_FLOW anyway if you don't use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant