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

Warping different image using OpticalFlow #11

Open
CJHFUTURE opened this issue Mar 4, 2018 · 2 comments
Open

Warping different image using OpticalFlow #11

CJHFUTURE opened this issue Mar 4, 2018 · 2 comments

Comments

@CJHFUTURE
Copy link

Hi, I'm just wondering if you think I could modify this to calculate the optical flow for 2 images(As it currently does) but warp a third image of my choosing, instead of the first image(as it currently does)?

Thanks in advance.

@juliohm
Copy link

juliohm commented Mar 9, 2018

I have the same question, and this seems like a very common use case. Could you please share what can be done?

@juliohm
Copy link

juliohm commented Mar 9, 2018

Nevermind, I found this example in opencv, the function warp_flow should do the job: https://github.com/opencv/opencv/blob/master/samples/python/opt_flow.py#L50-L56

Will try it later, may also switch to the Farneback method implemented therein.

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

No branches or pull requests

2 participants